/**
 * YouTube Tools Styles
 */

/* Tool Pages Base Styles */
.earnings-analytics-page,
.channel-id-finder-page,
.video-tag-extractor-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

/* Tool Header */
.tool-header {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tool-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.tool-breadcrumb a:hover {
    color: var(--primary-dark);
}

.breadcrumb-separator {
    color: var(--text-light);
    font-weight: 300;
}

.current-page {
    color: var(--text-primary);
    font-weight: 500;
}

.tool-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.tool-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.tool-description {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Tool Forms */
.analytics-tool,
.channel-finder-tool,
.tag-extractor-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.analytics-form,
.finder-form,
.extractor-form {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
    box-sizing: border-box;
    font-family: 'JetBrains Mono', monospace;
}

.tool-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
    background: var(--bg-primary);
}

.analyze-button,
.find-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.analyze-button:hover:not(:disabled),
.find-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.analyze-button svg,
.find-button svg {
    width: 18px;
    height: 18px;
}

.analyze-button:disabled,
.find-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

/* Loading States */
.analytics-loading,
.finder-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

/* Results Sections */
.analytics-results-section,
.finder-results-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.analytics-results,
.finder-results {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

/* Channel Overview for Analytics */
.channel-overview {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 0;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.channel-header-analytics {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.channel-banner-analytics {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-info-analytics {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-avatar-analytics {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.channel-details-analytics h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.channel-handle-analytics {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.channel-description-analytics {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 600px;
}

/* Time Range Selector */
.time-range-selector {
    display: flex;
    justify-content: flex-start;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-primary);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: 0;
}

.time-btn {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
}

.time-btn:hover {
    color: var(--text-primary);
    background: var(--bg-secondary);
}

.time-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

/* Summary Stats */
.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.summary-stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.summary-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.summary-stat-card h4 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.summary-stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.summary-stat-card .stat-change {
    font-size: 0.875rem;
    color: var(--success-color);
    font-weight: 500;
}

/* Charts Section */
.charts-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
}

.chart-container .time-range-selector {
    position: absolute;
    top: 1rem;
    right: 1rem;
    margin: 0;
    padding: 0.25rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
}

.chart-container .time-range-selector .time-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
}

.chart-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

/* Detailed Analytics */
.detailed-analytics {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.detailed-analytics h4 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.analytics-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.analytics-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.analytics-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Channel ID Finder Specific Styles */
.channel-id-card,
.channel-details-card,
.channel-statistics-card,
.profile-downloads-card,
.playlists-card,
.additional-info-card {
    background: var(--bg-primary);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.channel-id-card h3,
.channel-details-card h3,
.channel-statistics-card h3,
.profile-downloads-card h3,
.playlists-card h3,
.additional-info-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
    text-align: center;
}

/* ID Info Grid */
.id-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.id-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.id-info-item label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.copyable-field {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.copyable-field input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

.copy-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.copy-btn svg {
    width: 16px;
    height: 16px;
}

/* Channel Profile Section */
.channel-profile-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-light);
}

.channel-avatar-finder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.channel-info-finder h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
}

.channel-handle-finder {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-family: 'JetBrains Mono', monospace;
}

.channel-description-finder {
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 600px;
}

/* Channel Banner Section */
.channel-banner-section h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-align: left;
}

.channel-banner-finder {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.download-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    background: var(--secondary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    text-decoration: none;
    color: white;
}

.download-btn svg {
    width: 14px;
    height: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.finder-stat-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.finder-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.finder-stat-card h5 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.finder-stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Profile Downloads */
.profile-sizes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.profile-size-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.profile-size-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 2px solid var(--border-color);
}

.size-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.size-dimensions {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Playlists Grid */
.playlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.playlist-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.playlist-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.playlist-thumbnail {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border-light);
}

.playlist-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.playlist-count {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Info Table */
.info-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.info-table-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.info-table-label {
    font-weight: 500;
    color: var(--text-secondary);
}

.info-table-value {
    font-weight: 600;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
}

/* Copy Success Animation */
.copy-success {
    background: var(--success-color) !important;
    transform: scale(1.05);
}

.copy-success svg {
    animation: pulse 0.5s ease;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tool-header {
        padding: 2rem;
    }
    
    .tool-title {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .analytics-tool,
    .channel-finder-tool {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .channel-info-analytics {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .channel-profile-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .channel-info-finder h3 {
        text-align: center;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
    }
    
    .time-range-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .download-links {
        justify-content: center;
    }
    
    .id-info-grid {
        grid-template-columns: 1fr;
    }
    
    .analytics-results,
    .finder-results {
        padding: 0 1rem;
    }
    
    .chart-container .time-range-selector .time-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .chart-container .time-range-selector {
        position: static;
        margin-bottom: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tool-header {
        padding: 1.5rem;
    }
    
    .tool-title {
        font-size: 1.75rem;
    }
    
    .analytics-tool,
    .channel-finder-tool {
        padding: 1.25rem;
    }
    
    .channel-id-card,
    .channel-details-card,
    .channel-statistics-card,
    .profile-downloads-card,
    .playlists-card,
    .additional-info-card {
        padding: 1.5rem;
    }
    
    .chart-container {
        padding: 1.5rem;
    }
    
    .detailed-analytics {
        padding: 1.5rem;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-sizes {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .playlists-grid {
        grid-template-columns: 1fr;
    }
    
    /* Video Tag Extractor Mobile Styles */
    .video-info-card,
    .tags-section,
    .video-description-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .video-thumbnail-section {
        flex-direction: column;
        gap: 1rem;
    }
    
    .video-thumbnail {
        width: 100%;
        height: auto;
        max-width: 300px;
        align-self: center;
    }
    
    .video-title {
        font-size: 1.125rem;
    }
    
    .video-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .tags-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tags-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .copy-all-tags-btn,
    .export-tags-btn {
        flex: 1;
        justify-content: center;
    }
    
    .tags-container {
        gap: 0.5rem;
    }
    
    .tag-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .no-tags-tips {
        padding: 1rem;
    }
    
    .description-content {
        padding: 1rem;
    }
}

/* Chart.js Custom Styles */
.chart-container canvas {
    max-height: 300px;
}

/* Loading Animation for Charts */
.chart-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: var(--text-secondary);
}

.chart-loading .spinner {
    width: 32px;
    height: 32px;
    margin-right: 1rem;
}

/* Success Messages */
.success-message {
    background: #f0fdf4;
    color: var(--success-color);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    border: 1px solid #bbf7d0;
    margin-bottom: 1rem;
    animation: slideInRight 0.3s ease;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.verified {
    background: #dbeafe;
    color: var(--primary-color);
}

.status-badge.monetized {
    background: #d1fae5;
    color: var(--success-color);
}

.status-badge.not-monetized {
    background: #fee2e2;
    color: var(--error-color);
}

.status-badge.kids-content {
    background: #fef3c7;
    color: var(--warning-color);
}

/* Responsive Chart Containers */
@media (max-width: 1024px) {
    .charts-section {
        grid-template-columns: 1fr;
    }
}

/* Video Tag Extractor Specific Styles */
.video-info-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.video-thumbnail-section {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.video-thumbnail {
    width: 200px;
    height: 112px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

.video-basic-info {
    flex: 1;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.channel-name {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.video-stats {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.stat-item svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.video-duration,
.video-published {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.tags-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.tags-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.tags-header h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.tags-actions {
    display: flex;
    gap: 0.75rem;
}

.copy-all-tags-btn,
.export-tags-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copy-all-tags-btn:hover,
.export-tags-btn:hover {
    background: var(--secondary-dark);
    transform: translateY(-1px);
}

.copy-all-tags-btn svg,
.export-tags-btn svg {
    width: 14px;
    height: 14px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.tag-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tag-item:hover {
    background: var(--border-light);
    transform: translateY(-1px);
}

.tag-text {
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.copy-tag-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.copy-tag-btn:hover {
    color: var(--primary-color);
    background: var(--bg-primary);
}

.copy-tag-btn svg {
    width: 12px;
    height: 12px;
}

.tags-analysis {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.tags-analysis h4 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.analysis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.analysis-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.analysis-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.no-tags-message {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.no-tags-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-tags-message h4 {
    color: var(--text-primary);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.no-tags-message p {
    margin-bottom: 2rem;
    line-height: 1.6;
}

.no-tags-tips {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    max-width: 500px;
    margin: 0 auto;
}

.no-tags-tips h5 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.no-tags-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.no-tags-tips li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.no-tags-tips li:last-child {
    border-bottom: none;
}

.video-description-section {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.video-description-section h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.description-content {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid var(--border-light);
}

.description-text {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 1rem;
}

.show-more-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: var(--primary-dark);
}

/* Fake Subscriber Checker Styles */
.fake-subscriber-checker-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

.fake-subscriber-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.check-button,
.extract-button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.check-button:hover:not(:disabled),
.extract-button:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.check-button svg,
.extract-button svg {
    width: 18px;
    height: 18px;
}

.check-button:disabled,
.extract-button:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.fake-subscriber-loading,
.tag-extractor-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

.fake-subscriber-error,
.tag-extractor-error {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
    color: #c33;
}

.fake-subscriber-results-section,
.tag-extractor-results-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.fake-subscriber-results,
.tag-extractor-results {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

/* Channel Header for Fake Checker */
.channel-header-fake-checker {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    padding: 2rem;
    color: white;
}

.channel-info-fake-checker {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-avatar-fake-checker {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.channel-details-fake-checker h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.channel-handle-fake-checker {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.channel-description-fake-checker {
    opacity: 0.8;
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 600px;
}

/* Analysis Results */
.analysis-results {
    background: var(--bg-primary);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    border-top: none;
}

.authenticity-score {
    text-align: center;
    margin-bottom: 3rem;
}

.score-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2rem;
}

.fake-score,
.genuine-score {
    text-align: center;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    font-weight: 700;
    font-size: 1.25rem;
}

.score-circle.fake {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: white;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.score-circle.genuine {
    background: linear-gradient(135deg, #51cf66, #40c057);
    color: white;
    box-shadow: 0 8px 25px rgba(81, 207, 102, 0.3);
}

.score-value {
    font-size: 1.5rem;
    font-weight: 800;
}

/* Detailed Metrics */
.detailed-metrics {
    margin-bottom: 3rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.metric-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.metric-info h4 {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Suspicious Patterns */
.suspicious-patterns {
    margin-bottom: 2rem;
}

.suspicious-patterns h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.patterns-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pattern-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
}

.pattern-item.detected {
    background: #fef2f2;
    border-color: #fecaca;
}

.pattern-item.normal {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.pattern-icon {
    font-size: 1.25rem;
}

.pattern-text {
    flex: 1;
    font-weight: 500;
    color: var(--text-primary);
}

.pattern-status {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
}

.pattern-item.detected .pattern-status {
    background: #fee2e2;
    color: #dc2626;
}

.pattern-item.normal .pattern-status {
    background: #dcfce7;
    color: #16a34a;
}

/* Analysis Disclaimer */
.analysis-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fffbeb;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-lg);
    margin-top: 2rem;
}

.disclaimer-icon {
    font-size: 1.5rem;
    color: #f59e0b;
    margin-top: 0.25rem;
}

.disclaimer-text {
    color: #92400e;
    line-height: 1.6;
}

.disclaimer-text strong {
    color: #78350f;
}

/* FAQ Styles */
.faq-section {
    margin-top: 3rem;
}

.faq-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.faq-item {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-answer {
    display: none;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-light);
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Loading Spinner */
.loading-spinner-small {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .fake-subscriber-checker-page {
        padding: 1rem 0;
    }
    
    .fake-subscriber-tool {
        padding: 1.5rem;
        margin: 1rem auto 0;
    }
    
    .score-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-value {
        font-size: 1.25rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .channel-info-fake-checker {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .channel-avatar-fake-checker {
        width: 60px;
        height: 60px;
    }
    
    .analysis-disclaimer {
        flex-direction: column;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .tool-header,
    .analytics-tool,
    .channel-finder-tool,
    .fake-subscriber-tool {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .copy-btn,
    .download-btn,
    .analyze-button,
    .find-button,
    .check-button {
        display: none;
    }
}




/* YouTube CPM & RPM Calculator Styles */
.cpm-rpm-calculator-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

.cpm-rpm-calculator-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    margin-top: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: fadeInUp 0.8s ease-out;
}

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.calculator-loading {
    display: none;
    text-align: center;
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
}

.calculator-error {
    display: none;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.calculate-button {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 56px;
}

.calculate-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.calculate-button svg {
    width: 20px;
    height: 20px;
}

.calculator-results-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.calculator-results {
    display: grid;
    gap: 2rem;
}

/* Metrics Overview */
.metrics-overview-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.metrics-overview-card h3 {
    margin: 0 0 2rem 0;
    text-align: center;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.metric-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.metric-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Performance Analysis */
.performance-analysis-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.performance-indicator {
    margin-bottom: 2rem;
}

.indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.indicator-header h4 {
    margin: 0;
    color: var(--text-primary);
}

.indicator-status {
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-md);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.indicator-status.excellent {
    background: #d1fae5;
    color: #065f46;
}

.indicator-status.good {
    background: #dbeafe;
    color: #1e40af;
}

.indicator-status.fair {
    background: #fef3cd;
    color: #92400e;
}

.indicator-status.poor {
    background: #fee2e2;
    color: #991b1b;
}

.indicator-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.indicator-fill {
    height: 100%;
    border-radius: var(--radius-md);
    transition: width 0.8s ease;
}

.indicator-fill.excellent {
    background: #10b981;
}

.indicator-fill.good {
    background: #3b82f6;
}

.indicator-fill.fair {
    background: #f59e0b;
}

.indicator-fill.poor {
    background: #ef4444;
}

.indicator-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Revenue Projections */
.revenue-projections-card {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.projections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.projection-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.projection-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-weight: 600;
}

.projection-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}


/* Live Subscriber Count Tool Styles */
.live-subscriber-count-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

.live-subscriber-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subscriber-form {
    margin-bottom: 1.5rem;
}

.live-subscriber-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

.live-subscriber-error {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.live-subscriber-results-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.live-subscriber-results {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.live-subscriber-header {
    margin-bottom: 3rem;
}

.channel-banner {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.channel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.channel-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.channel-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.channel-details h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.channel-handle {
    opacity: 0.9;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.last-updated {
    opacity: 0.8;
    font-size: 0.9rem;
}

.live-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.live-stat-card {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
    position: relative;
    transition: all 0.3s ease;
}

.live-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.live-stat-card.primary {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, var(--bg-primary), rgba(30, 64, 175, 0.05));
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.stat-content h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
}

.stat-value.updated {
    color: var(--primary-color);
    transform: scale(1.05);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.refresh-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
    }
    
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.refresh-indicator.refreshed {
    animation: flash 0.5s ease;
}

@keyframes flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: 2rem;
}

.refresh-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.refresh-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
}

.auto-refresh-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-light);
}

.status-indicator.active {
    background: var(--success-color);
    animation: pulse 2s infinite;
}

.channel-description {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
}

.channel-description h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.channel-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Hashtag Generator Tool Styles */
.hashtag-generator-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    padding: 2rem 0;
}

.hashtag-generator-tool {
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin: 2rem auto 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hashtag-form {
    margin-bottom: 1.5rem;
}

.hashtag-generator-loading {
    display: none;
    text-align: center;
    padding: 3rem;
    animation: fadeIn 0.3s ease;
}

.hashtag-generator-error {
    display: none;
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-lg);
    margin-top: 1rem;
}

.hashtag-generator-results-section {
    background: var(--bg-secondary);
    padding: 4rem 0;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.hashtag-generator-results {
    max-width: 1400px;
    margin: 0 auto;
    animation: fadeInUp 0.5s ease;
}

.hashtag-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.hashtag-category {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-icon {
    font-size: 1.5rem;
    opacity: 0.8;
}

.category-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.hashtag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.hashtag-tag {
    background: var(--bg-secondary);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border-light);
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.hashtag-tag:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hashtag-tag.copied {
    background: var(--success-color);
    color: white;
}

.hashtag-actions {
    background: var(--bg-primary);
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
}

.copy-all-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.copy-all-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.copy-all-btn svg {
    width: 18px;
    height: 18px;
}

.copy-status {
    font-size: 0.9rem;
    color: var(--success-color);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.copy-status.show {
    opacity: 1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .live-stats-grid,
    .hashtag-categories {
        grid-template-columns: 1fr;
    }
    
    .live-controls {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .channel-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .channel-avatar {
        width: 60px;
        height: 60px;
    }
    
    .channel-details h2 {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .live-subscriber-tool,
    .hashtag-generator-tool {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .stat-value {
        font-size: 1.75rem;
    }
    
    .live-stat-card,
    .hashtag-category {
        padding: 1.5rem;
    }
    
    .channel-overlay {
        padding: 1rem;
    }
}


/* Logo And Banner Downloader Tool Styles */
.logo-banner-downloader-tool {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
}

.logo-banner-loading,
.logo-banner-error {
    display: none;
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    border-radius: 12px;
}

.logo-banner-loading {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.logo-banner-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.logo-banner-results-section {
    padding: 48px 0;
    background: #f8fafc;
}

.channel-assets-header {
    margin-bottom: 32px;
}

.channel-info-display {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.channel-preview-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

.channel-details-display h2 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.channel-handle-display {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.assets-grid {
    display: grid;
    gap: 32px;
}

.asset-category {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.category-icon {
    font-size: 24px;
}

.category-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.category-description {
    margin: 4px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

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

.asset-item {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.asset-item:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.asset-preview {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.banner-preview {
    aspect-ratio: 16/9;
}

.asset-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.asset-item:hover .asset-overlay {
    opacity: 1;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.download-btn:hover {
    background: #2563eb;
}

.download-btn svg {
    width: 16px;
    height: 16px;
}

.asset-info {
    padding: 16px;
}

.asset-info h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.asset-size {
    margin: 0 0 12px 0;
    color: #64748b;
    font-size: 14px;
}

.copy-url-btn {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-url-btn:hover {
    background: #e2e8f0;
    color: #334155;
}

.download-all-section {
    text-align: center;
    margin-top: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.download-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-all-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
}

.download-all-btn svg {
    width: 20px;
    height: 20px;
}

.download-note {
    margin: 12px 0 0 0;
    color: #64748b;
    font-size: 14px;
}

/* Title And Description SEO Checker Tool Styles */
.title-description-seo-tool {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.description-textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.char-count {
    font-weight: 600;
}

.char-help {
    color: #64748b;
    font-size: 13px;
}

.title-description-seo-loading,
.title-description-seo-error {
    display: none;
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    border-radius: 12px;
}

.title-description-seo-loading {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.title-description-seo-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.title-description-seo-results-section {
    padding: 48px 0;
    background: #f8fafc;
}

.seo-analysis-header {
    margin-bottom: 32px;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 24px;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.score-circle {
    width: 120px;
    height: 120px;
    border: 8px solid;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.score-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.score-grade {
    font-size: 18px;
    font-weight: 600;
    margin-top: 4px;
}

.score-details h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.score-description {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.analysis-sections {
    display: grid;
    gap: 24px;
    margin-bottom: 32px;
}

.analysis-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f1f5f9;
}

.section-icon {
    font-size: 24px;
}

.section-header h3 {
    margin: 0;
    flex: 1;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.section-score {
    font-size: 18px;
    font-weight: 700;
    padding: 8px 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.analysis-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stat-label {
    color: #64748b;
    font-weight: 500;
}

.stat-value {
    color: #1e293b;
    font-weight: 600;
}

.analysis-list {
    margin-bottom: 20px;
}

.analysis-list:last-child {
    margin-bottom: 0;
}

.analysis-list h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.analysis-list ul {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.analysis-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: #475569;
    line-height: 1.5;
}

.strengths li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #22c55e;
    font-weight: bold;
}

.issues li::before {
    content: "!";
    position: absolute;
    left: 0;
    color: #f59e0b;
    font-weight: bold;
}

.keyword-results {
    margin-bottom: 24px;
}

.keyword-results h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.keyword-list {
    display: grid;
    gap: 12px;
}

.keyword-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid;
}

.keyword-item.excellent {
    background: #f0fdf4;
    border-color: #22c55e;
}

.keyword-item.good {
    background: #fefce8;
    border-color: #eab308;
}

.keyword-item.fair {
    background: #fff7ed;
    border-color: #f97316;
}

.keyword-item.missing {
    background: #fef2f2;
    border-color: #ef4444;
}

.keyword-text {
    font-weight: 600;
    color: #1e293b;
}

.keyword-status {
    display: flex;
    gap: 8px;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.found {
    background: #22c55e;
    color: white;
}

.status-badge.missing {
    background: #ef4444;
    color: white;
}

.keyword-suggestions {
    margin-bottom: 24px;
}

.keyword-suggestions h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.suggestion-tag {
    padding: 8px 12px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.suggestion-tag:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.recommendations-section {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.recommendations-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommendations-list {
    display: grid;
    gap: 16px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.recommendation-icon {
    font-size: 20px;
    margin-top: 2px;
}

.recommendation-item p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

/* Mobile Responsive Styles for New Tools */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .overall-score {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-number {
        font-size: 24px;
    }
    
    .score-grade {
        font-size: 16px;
    }
    
    .analysis-stats {
        grid-template-columns: 1fr;
    }
    
    .asset-items {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .channel-info-display {
        flex-direction: column;
        text-align: center;
    }
    
    .keyword-status {
        flex-direction: column;
        gap: 4px;
    }
    
    .keyword-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .suggestion-tags {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo-banner-downloader-tool,
    .title-description-seo-tool {
        padding: 20px;
    }
    
    .asset-items {
        grid-template-columns: 1fr;
    }
    
    .download-all-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .section-header {
        flex-wrap: wrap;
    }
    
    .section-score {
        font-size: 16px;
        padding: 6px 12px;
    }
}


/* Keyword Explorer Tool Styles */
.keyword-explorer-tool {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
}

.keyword-explorer-loading,
.keyword-explorer-error {
    display: none;
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    border-radius: 12px;
}

.keyword-explorer-loading {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.keyword-explorer-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.keyword-explorer-results-section {
    padding: 48px 0;
    background: #f8fafc;
}

.keyword-overview {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.overview-header h2 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
}

.overview-header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.overview-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.stat-label {
    margin-top: 8px;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.keyword-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.filter-tabs {
    display: flex;
    gap: 8px;
}

.filter-tab {
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover {
    background: #e2e8f0;
    color: #334155;
}

.filter-tab.active {
    background: #3b82f6;
    color: white;
}

.sort-options select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-weight: 600;
    cursor: pointer;
}

.keywords-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px 120px;
    gap: 16px;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    max-height: 600px;
    overflow-y: auto;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 80px 120px;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.3s ease;
}

.table-row:hover {
    background: #f8fafc;
}

.table-cell {
    display: flex;
    align-items: center;
}

.keyword-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.keyword-text {
    font-weight: 600;
    color: #1e293b;
}

.keyword-type {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.volume-number {
    font-weight: 700;
    color: #059669;
}

.competition-bar {
    position: relative;
    width: 100%;
    height: 20px;
    background: #f1f5f9;
    border-radius: 10px;
    overflow: hidden;
}

.competition-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.3s ease;
}

.competition-fill.low {
    background: #22c55e;
}

.competition-fill.medium {
    background: #f59e0b;
}

.competition-fill.high {
    background: #ef4444;
}

.competition-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.difficulty-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty-badge.easy {
    background: #dcfce7;
    color: #166534;
}

.difficulty-badge.medium {
    background: #fef3c7;
    color: #92400e;
}

.difficulty-badge.hard {
    background: #fecaca;
    color: #991b1b;
}

.trend-indicator {
    font-size: 18px;
}

.actions-col {
    gap: 8px;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-1px);
}

.action-btn svg {
    width: 16px;
    height: 16px;
}

.export-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-top: 24px;
}

.export-section h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.export-buttons {
    display: flex;
    gap: 16px;
}

.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.export-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.export-btn svg {
    width: 16px;
    height: 16px;
}

/* Like vs Dislike Ratio Checker Tool Styles */
.like-dislike-ratio-tool {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-top: 32px;
}

.like-dislike-ratio-loading,
.like-dislike-ratio-error {
    display: none;
    text-align: center;
    padding: 24px;
    margin-top: 24px;
    border-radius: 12px;
}

.like-dislike-ratio-loading {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
}

.like-dislike-ratio-error {
    background: #fef2f2;
    border: 2px solid #fecaca;
    color: #dc2626;
}

.like-dislike-ratio-results-section {
    padding: 48px 0;
    background: #f8fafc;
}

.video-overview {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.video-header {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.video-thumbnail {
    flex-shrink: 0;
}

.video-thumbnail img {
    width: 320px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
}

.video-info h2 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: #64748b;
    font-size: 14px;
}

.video-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.engagement-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
}

.stat-card.primary {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.stat-card.positive {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
}

.stat-card.negative {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.stat-card.neutral {
    background: linear-gradient(135deg, #64748b, #475569);
    color: white;
}

.ratio-analysis {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.analysis-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.overall-score {
    display: flex;
    align-items: center;
    gap: 16px;
}

.score-circle {
    width: 80px;
    height: 80px;
    border: 6px solid;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-circle.excellent {
    border-color: #22c55e;
    background: #f0fdf4;
}

.score-circle.very-good {
    border-color: #84cc16;
    background: #f7fee7;
}

.score-circle.good {
    border-color: #eab308;
    background: #fefce8;
}

.score-circle.fair {
    border-color: #f97316;
    background: #fff7ed;
}

.score-circle.mixed {
    border-color: #f59e0b;
    background: #fffbeb;
}

.score-circle.poor {
    border-color: #ef4444;
    background: #fef2f2;
}

.score-number {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
}

.score-label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sentiment-level {
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
}

.sentiment-level.excellent {
    background: #dcfce7;
    color: #166534;
}

.sentiment-level.very-good {
    background: #ecfccb;
    color: #365314;
}

.sentiment-level.good {
    background: #fefce8;
    color: #713f12;
}

.sentiment-level.fair {
    background: #fff7ed;
    color: #9a3412;
}

.sentiment-level.mixed {
    background: #fffbeb;
    color: #92400e;
}

.sentiment-level.poor {
    background: #fef2f2;
    color: #991b1b;
}

.ratio-visualization {
    margin-top: 32px;
}

.ratio-bar {
    display: flex;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
}

.like-portion {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 0.5s ease;
}

.dislike-portion {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 0.5s ease;
}

.ratio-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.ratio-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.ratio-icon {
    font-size: 32px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.ratio-icon.like {
    background: #dcfce7;
}

.ratio-icon.dislike {
    background: #fecaca;
}

.ratio-count {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.ratio-percentage {
    color: #64748b;
    font-size: 14px;
}

.detailed-metrics {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.metric-card {
    padding: 24px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.metric-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.metric-value {
    font-size: 20px;
    font-weight: 700;
    color: #3b82f6;
}

.metric-description {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
}

.metric-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.recommendations-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
}

.recommendations-section h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
}

.recommendations-list {
    display: grid;
    gap: 16px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid;
}

.recommendation-item.improvement {
    background: #fef3c7;
    border-color: #f59e0b;
}

.recommendation-item.engagement {
    background: #dbeafe;
    border-color: #3b82f6;
}

.recommendation-item.optimization {
    background: #dcfce7;
    border-color: #22c55e;
}

.recommendation-icon {
    font-size: 24px;
    margin-top: 2px;
}

.recommendation-content h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.recommendation-content p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #1e293b;
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Mobile Responsive Styles for New Tools */
@media (max-width: 768px) {
    .keyword-filters {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .table-header {
        display: none;
    }
    
    .table-cell {
        justify-content: space-between;
        padding: 8px 0;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .table-cell:before {
        content: attr(data-label);
        font-weight: 600;
        color: #64748b;
        font-size: 12px;
        text-transform: uppercase;
    }
    
    .video-header {
        flex-direction: column;
        gap: 16px;
    }
    
    .video-thumbnail img {
        width: 100%;
        height: auto;
    }
    
    .analysis-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .overall-score {
        justify-content: center;
    }
    
    .ratio-details {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .export-buttons {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .keyword-explorer-tool,
    .like-dislike-ratio-tool {
        padding: 20px;
    }
    
    .overview-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .filter-tab {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .engagement-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .ratio-bar {
        height: 40px;
    }
    
    .ratio-item {
        padding: 16px;
    }
    
    .ratio-icon {
        font-size: 24px;
        width: 40px;
        height: 40px;
    }
    
    .score-circle {
        width: 60px;
        height: 60px;
    }
    
    .score-number {
        font-size: 16px;
    }
}

