/* Tool Page Common Styles */
.tool-page {
    padding-top: 0;
}

.breadcrumb {
    padding: 20px 0;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #666;
    transition: all 0.3s;
}

.breadcrumb a:hover {
    color: #667eea;
}

.breadcrumb .separator {
    margin: 0 10px;
    color: #ddd;
}

.breadcrumb .current {
    color: #333;
    font-weight: 600;
}

.tool-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.tool-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.tool-icon-large {
    font-size: 72px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.tool-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
}

.tool-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 25px;
    line-height: 1.6;
}

.tool-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    font-size: 16px;
}

.meta-separator {
    opacity: 0.5;
}

.tool-content {
    padding: 60px 20px;
    background: #f8f9fa;
}

/* YouTube Trends Specific Styles */
.yt-trends-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    background: #ffffff;
    border-radius: 25px;
    box-shadow: 0 15px 60px rgba(0,0,0,0.12);
    overflow: hidden;
}

.yt-trends-header {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    padding: 45px 30px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.yt-trends-header::before {
    content: '▶️';
    position: absolute;
    font-size: 180px;
    opacity: 0.1;
    top: -30px;
    right: -30px;
}

.yt-trends-header h2 {
    font-size: 38px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.yt-trends-header p {
    font-size: 16px;
    opacity: 0.95;
    margin: 0;
}

.yt-trends-body {
    padding: 40px 30px;
}

/* API Notice */
.yt-api-notice {
    background: #ffebee;
    border-left: 5px solid #f44336;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.yt-api-notice h4 {
    color: #c62828;
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 700;
}

.yt-api-notice p {
    color: #666;
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 14px;
}

.yt-api-notice p:last-child {
    margin-bottom: 0;
}

.yt-api-notice a {
    color: #ff0000;
    text-decoration: none;
    font-weight: 600;
}

.yt-api-notice a:hover {
    text-decoration: underline;
}

.yt-api-notice code {
    background: rgba(0,0,0,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
}

/* Search Section */
.yt-search-section {
    background: linear-gradient(135deg, #282828 0%, #181818 100%);
    padding: 35px;
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.yt-search-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

.yt-input-group {
    position: relative;
}

.yt-input-group label {
    display: block;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.yt-input-group select {
    width: 100%;
    padding: 14px 18px;
    border: 3px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.yt-input-group select:focus {
    outline: none;
    border-color: #ff0000;
    background: rgba(255,255,255,0.15);
}

.yt-input-group select:hover {
    border-color: rgba(255,255,255,0.4);
}

.yt-search-btn {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.yt-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,0,0,0.4);
}

/* Loading State */
.yt-loading {
    text-align: center;
    padding: 60px 20px;
}

.yt-loader {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #ff0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.yt-loading p {
    font-size: 16px;
    color: #666;
    font-weight: 600;
}

/* Results Section */
.yt-results {
    display: none;
}

.yt-results.show {
    display: block;
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Stats Grid */
.yt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.yt-stat-card {
    background: linear-gradient(135deg, #ff0000 0%, #cc0000 100%);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 6px 20px rgba(255,0,0,0.3);
}

.yt-stat-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.yt-stat-number {
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 5px;
}

.yt-stat-label {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
}

/* Videos Section */
.yt-videos-section h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 25px;
    font-weight: 700;
}

.yt-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
}

.yt-video-card {
    background: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
}

.yt-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

/* Video Thumbnail */
.yt-video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
    background: #000;
    overflow: hidden;
}

.yt-video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yt-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 68px;
    height: 48px;
    background: rgba(255, 0, 0, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.yt-video-card:hover .yt-video-play-btn {
    background: #ff0000;
    transform: translate(-50%, -50%) scale(1.1);
}

.yt-video-play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
}

.yt-video-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.85);
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

/* Video Info */
.yt-video-info {
    padding: 15px;
}

.yt-video-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-channel-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.yt-channel-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
}

.yt-channel-name {
    font-size: 13px;
    color: #606060;
    font-weight: 600;
}

.yt-video-stats {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #606060;
}

.yt-video-stat {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Info Box */
.yt-info-box {
    background: #fff3e0;
    border-left: 5px solid #ff9800;
    padding: 25px;
    border-radius: 12px;
    margin-top: 30px;
}

.yt-info-box h4 {
    color: #e65100;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 700;
}

.yt-info-box ul {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.yt-info-box li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.yt-info-box li:last-child {
    margin-bottom: 0;
}

.yt-info-box strong {
    color: #333;
}

/* SEO Content Section */
.seo-content {
    padding: 80px 20px;
    background: white;
}

.content-article {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-article h2 {
    font-size: 32px;
    font-weight: 800;
    margin-top: 50px;
    margin-bottom: 20px;
    color: #333;
}

.content-article h2:first-child {
    margin-top: 0;
}

.content-article h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 35px;
    margin-bottom: 15px;
    color: #333;
}

.content-article p {
    margin-bottom: 20px;
    color: #666;
    font-size: 16px;
}

.content-article ul,
.content-article ol {
    margin-bottom: 25px;
    padding-left: 30px;
    color: #666;
}

.content-article li {
    margin-bottom: 12px;
    line-height: 1.8;
}

.content-article strong {
    color: #333;
    font-weight: 700;
}

/* Related Tools */
.related-tools {
    max-width: 900px;
    margin: 60px auto 0;
    padding: 40px;
    background: #f8f9fa;
    border-radius: 15px;
}

.related-tools h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    text-align: center;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 25px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    text-align: center;
    text-decoration: none;
}

.related-tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-color: #667eea;
}

.related-tool-card .tool-icon {
    font-size: 42px;
}

.related-tool-card .tool-name {
    font-weight: 700;
    color: #333;
}
/* Fix for dropdown options visibility */
.yt-input-group select option {
    color: #333;
    background: white;
}

.x-input-group select option {
    color: #333;
    background: white;
}
/* Responsive Design */
@media (max-width: 768px) {
    .tool-header h1 {
        font-size: 32px;
    }
    
    .tool-subtitle {
        font-size: 16px;
    }
    
    .tool-icon-large {
        font-size: 52px;
    }
    
    .tool-meta {
        font-size: 14px;
    }

    .content-article h2 {
        font-size: 26px;
    }
    
    .content-article h3 {
        font-size: 20px;
    }
    
    .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .yt-search-grid {
        grid-template-columns: 1fr;
    }
    
    .yt-videos-grid {
        grid-template-columns: 1fr;
    }
    
    .yt-trends-header h2 {
        font-size: 28px;
    }
    
    .yt-search-section {
        padding: 25px 20px;
    }
    
    .yt-trends-body {
        padding: 30px 20px;
    }
    
    .yt-stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .yt-video-title {
        font-size: 14px;
    }
    
    .yt-stat-number {
        font-size: 28px;
    }
}