/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f7;
    min-height: 100vh;
    color: #1d1d1f;
}

/* Loading State */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fc0060;
    font-size: 1.1rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(252, 0, 96, 0.2);
    border-top: 4px solid #fc0060;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Error State */
.error {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    color: #fc0060;
    text-align: center;
    padding: 2rem;
}

.error h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.error p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.error code {
    background: rgba(252, 0, 96, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    color: #fc0060;
}

/* Dashboard Container */
.dashboard {
    display: none;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* Header */
.header {
    background: linear-gradient(135deg, #fc0060 0%, #e91e63 50%, #ff1744 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(252, 0, 96, 0.3);
}

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

.header-text h1 {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
}

.header-logo {
    flex-shrink: 0;
}

.logo {
    height: 60px;
    width: auto;
}

/* Navigation Tabs */
.nav-tabs {
    background: white;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.nav-list {
    display: flex;
    gap: 1rem;
}

.nav-item {
    color: #86868b;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.nav-item:hover {
    color: #fc0060;
    background: rgba(252, 0, 96, 0.08);
}

.nav-item.active {
    color: white;
    background: linear-gradient(135deg, #fc0060 0%, #e91e63 50%, #ff1744 100%);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(252, 0, 96, 0.4);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.overview-stat-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e7;
}

.overview-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.overview-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.overview-stat-label {
    color: #86868b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.overview-stat-value {
    color: #1d1d1f;
    font-size: 2rem;
    font-weight: 700;
}

/* Campaign Info Section */
.overview-breakdown-section {
    margin-top: 2rem;
}

.overview-breakdown-title {
    color: #1d1d1f;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

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

.campaign-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
}

.campaign-info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.campaign-info-icon {
    font-size: 1.75rem;
}

.campaign-info-card-title {
    color: #1d1d1f;
    font-size: 1.15rem;
    font-weight: 600;
}

.campaign-info-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: #f5f5f7;
    border-radius: 8px;
}

.info-label {
    color: #86868b;
    font-weight: 500;
}

.info-value {
    color: #1d1d1f;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-text {
    color: #1d1d1f;
    font-size: 1rem;
    line-height: 1.6;
    padding: 0.5rem;
}

/* Platform Breakdown */
.platform-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.platform-breakdown-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
}

.platform-breakdown-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f7;
}

.platform-breakdown-icon {
    font-size: 1.5rem;
}

.platform-breakdown-card-header h3 {
    color: #1d1d1f;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

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

.platform-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.platform-breakdown-item:hover {
    background: #e5e5e7;
    transform: translateX(4px);
}

.platform-breakdown-item-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.platform-breakdown-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    background: #f5f5f7;
    flex-shrink: 0;
    overflow: hidden;
}

/* When icon contains an image */
.platform-breakdown-item-icon.has-image {
    background: transparent;
    padding: 0;
}

.platform-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Fallback emoji backgrounds for content types */
.platform-breakdown-item-icon.facebook { background: linear-gradient(135deg, #1877f2, #0c63d4); }
.platform-breakdown-item-icon.linkedin { background: linear-gradient(135deg, #0a66c2, #004182); }
.platform-breakdown-item-icon.twitter { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.platform-breakdown-item-icon.x { background: linear-gradient(135deg, #000000, #2c2c2c); }
.platform-breakdown-item-icon.tiktok { background: linear-gradient(135deg, #000000, #2c2c2c); }
.platform-breakdown-item-icon.instagram { background: linear-gradient(135deg, #e4405f, #d62976); }
.platform-breakdown-item-icon.youtube { background: linear-gradient(135deg, #ff0000, #cc0000); }

/* Content type specific backgrounds (for emoji fallbacks) */
.platform-breakdown-item-icon.instagramreels { background: linear-gradient(135deg, #e4405f, #d62976); }
.platform-breakdown-item-icon.instagramstories { background: linear-gradient(135deg, #f58529, #dd2a7b); }
.platform-breakdown-item-icon.instagramcontent { background: linear-gradient(135deg, #e4405f, #d62976); }
.platform-breakdown-item-icon.facebookcontent { background: linear-gradient(135deg, #1877f2, #0c63d4); }
.platform-breakdown-item-icon.linkedincontent { background: linear-gradient(135deg, #0a66c2, #004182); }
.platform-breakdown-item-icon.twittercontent { background: linear-gradient(135deg, #1da1f2, #0d8bd9); }
.platform-breakdown-item-icon.tiktokcontent { background: linear-gradient(135deg, #000000, #2c2c2c); }
.platform-breakdown-item-icon.youtubeintegrations { background: linear-gradient(135deg, #ff0000, #cc0000); }
.platform-breakdown-item-icon.youtubecontent { background: linear-gradient(135deg, #ff0000, #cc0000); }

.platform-breakdown-item-name {
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.95rem;
}

.platform-breakdown-item-value {
    color: #1d1d1f;
    font-weight: 700;
    font-size: 1.1rem;
}

/* Paid Media Section */
.paid-media-filters {
    margin-bottom: 1.5rem;
}

.paid-media-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.paid-media-filter-btn {
    background: white;
    border: 2px solid #e5e5e7;
    color: #1d1d1f;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.paid-media-filter-btn:hover {
    border-color: #fc0060;
    color: #fc0060;
    background: rgba(252, 0, 96, 0.05);
}

.paid-media-filter-btn.active {
    background: linear-gradient(135deg, #fc0060 0%, #e91e63 50%, #ff1744 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(252, 0, 96, 0.3);
}

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

.paid-media-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.paid-media-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.paid-media-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f7;
}

.paid-media-icon {
    font-size: 1.75rem;
}

.paid-media-card-title {
    color: #1d1d1f;
    font-size: 1.15rem;
    font-weight: 600;
}

.paid-media-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.paid-media-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f5f5f7;
    border-radius: 10px;
    transition: all 0.3s ease;
    margin-bottom: 0.75rem;
}

.paid-media-item:last-child {
    margin-bottom: 0;
}

.paid-media-item:hover {
    background: #e5e5e7;
    transform: translateX(4px);
}

.paid-media-label {
    color: #86868b;
    font-weight: 500;
    font-size: 0.95rem;
}

.paid-media-value {
    color: #1d1d1f;
    font-weight: 700;
    font-size: 1.1rem;
}

.paid-media-empty {
    text-align: center;
    padding: 2rem;
    color: #86868b;
    font-style: italic;
    font-size: 0.95rem;
}

.paid-media-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .paid-media-metrics-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.paid-media-metric-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.paid-media-metric-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

.paid-media-metric-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f5f5f7;
}

.paid-media-metric-icon {
    font-size: 1.75rem;
}

.paid-media-metric-title {
    color: #1d1d1f;
    font-size: 1.15rem;
    font-weight: 600;
}

.paid-media-metric-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Platform Filters */
.platform-filters-section {
    margin-bottom: 2rem;
}

.platform-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.platform-tab {
    padding: 0.75rem 1.5rem;
    background: #f5f5f7;
    border: none;
    border-radius: 8px;
    color: #1d1d1f;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-tab:hover {
    background: #e5e5e7;
    transform: translateY(-2px);
}

.platform-tab.active {
    background: #d6336c;
    color: white;
    box-shadow: 0 4px 12px rgba(214, 51, 108, 0.3);
}

/* Controls Section */
.controls-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.time-range-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    color: #86868b;
    font-size: 0.85rem;
    font-weight: 500;
}

.date-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #1d1d1f;
    transition: border-color 0.3s ease;
}

.date-input:focus {
    outline: none;
    border-color: #fc0060;
}

.btn-apply {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #fc0060 0%, #e91e63 50%, #ff1744 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-toggle-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.view-toggle-group label {
    color: #86868b;
    font-weight: 500;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: #f5f5f7;
    border-radius: 8px;
    padding: 0.25rem;
}

.view-toggle-btn {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #86868b;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-toggle-btn:hover {
    color: #fc0060;
}

.view-toggle-btn.active {
    background: white;
    color: #fc0060;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.result-stat-box {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #e5e5e7;
    position: relative;
    overflow: hidden;
}

.result-stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fc0060, #e91e63, #ff1744);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.result-stat-box:hover::before {
    opacity: 1;
}

.result-stat-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.result-stat-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.result-stat-label {
    color: #86868b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.result-stat-value {
    color: #1d1d1f;
    font-size: 2rem;
    font-weight: 700;
}

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

.chart-container {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    min-height: 350px;
}

.chart-header {
    margin-bottom: 1.5rem;
}

.chart-title {
    color: #1d1d1f;
    font-size: 1.25rem;
    font-weight: 600;
}

.chart-container canvas {
    max-height: 300px;
}

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

@media (max-width: 768px) {
    .dashboard {
        padding: 1rem;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .header-text h1 {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 0.95rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
    }
    
    .nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .overview-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .overview-stat-card {
        padding: 1.25rem;
    }
    
    .overview-stat-icon {
        font-size: 2rem;
    }
    
    .overview-stat-value {
        font-size: 1.5rem;
    }
    
    .controls-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .time-range-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .view-toggle {
        width: 100%;
    }
    
    .view-toggle-btn {
        flex: 1;
        text-align: center;
    }
    
    .results-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .result-stat-box {
        padding: 1.25rem;
    }
    
    .result-stat-icon {
        font-size: 2rem;
    }
    
    .result-stat-value {
        font-size: 1.5rem;
    }
    
    .charts-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .chart-container {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .campaign-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .overview-stats-row {
        grid-template-columns: 1fr;
    }
    
    .results-stats-container {
        grid-template-columns: 1fr;
    }
    
    .platform-tabs {
        padding: 1rem;
    }
    
    .platform-tab {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

/* Animation for stat boxes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-stat-box {
    animation: slideInUp 0.4s ease backwards;
}

.result-stat-box:nth-child(1) { animation-delay: 0.05s; }
.result-stat-box:nth-child(2) { animation-delay: 0.1s; }
.result-stat-box:nth-child(3) { animation-delay: 0.15s; }
.result-stat-box:nth-child(4) { animation-delay: 0.2s; }
.result-stat-box:nth-child(5) { animation-delay: 0.25s; }

/* ============================================================================
   CONTENT SECTION STYLES
   ============================================================================ */

.content-controls-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.search-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #1d1d1f;
    transition: border-color 0.3s ease;
    min-width: 250px;
    flex: 1;
}

.search-input:focus {
    outline: none;
    border-color: #fc0060;
}

.search-input::placeholder {
    color: #86868b;
}

.platform-filter-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #1d1d1f;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 150px;
}

.platform-filter-dropdown:focus {
    outline: none;
    border-color: #fc0060;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    flex-wrap: wrap;
}

.sort-controls label {
    color: #86868b;
    font-weight: 500;
}

.content-date-range {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-wrap: wrap;
}

.content-date-range .control-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.content-date-range label {
    color: #86868b;
    font-weight: 500;
    font-size: 0.9rem;
}

.btn-reset {
    padding: 0.75rem 1.5rem;
    background: #f5f5f7;
    color: #1d1d1f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-reset:hover {
    background: #e5e5e7;
    transform: translateY(-1px);
}

.sort-dropdown {
    padding: 0.75rem 1rem;
    border: 2px solid #e5e5e7;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    color: #1d1d1f;
    cursor: pointer;
    transition: border-color 0.3s ease;
    min-width: 180px;
}

.sort-dropdown:focus {
    outline: none;
    border-color: #fc0060;
}

.content-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.content-stat-box {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.content-stat-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.content-stat-label {
    color: #86868b;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.content-stat-value {
    color: #d6336c;
    font-size: 1.75rem;
    font-weight: 700;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.content-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e5e7;
    transition: all 0.3s ease;
}

.content-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.content-card-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f7;
}

.content-card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-platform {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

.content-card-body {
    padding: 1.5rem;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8em;
}

.content-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #86868b;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e5e7;
}

.content-card-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.content-stat-item {
    text-align: center;
}

.content-stat-item .content-stat-value {
    font-size: 1rem;
    font-weight: 700;
    color: #1d1d1f;
}

.content-stat-item .content-stat-label {
    font-size: 0.75rem;
    color: #86868b;
    margin-top: 0.25rem;
}

.content-card-link {
    display: inline-block;
    color: #fc0060;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.content-card-link:hover {
    color: #e91e63;
}

.content-table {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow-x: auto;
}

.content-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.content-data-table thead {
    background: #f5f5f7;
}

.content-data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #1d1d1f;
    white-space: nowrap;
    border-bottom: 2px solid #e5e5e7;
}

.content-data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e5e5e7;
    color: #1d1d1f;
}

.content-data-table tbody tr:hover {
    background: #f9fafb;
}

.table-thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.table-post-title {
    max-width: 250px;
    font-weight: 500;
}

.table-link {
    color: #fc0060;
    text-decoration: none;
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.table-link:hover {
    color: #e91e63;
}

/* Responsive Design for Content Section */
@media (max-width: 768px) {
    .content-controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .search-input,
    .platform-filter-dropdown,
    .sort-dropdown {
        width: 100%;
        min-width: unset;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .content-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .content-table {
        padding: 1rem;
    }
    
    .content-data-table {
        font-size: 0.8rem;
    }
    
    .content-data-table th,
    .content-data-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .content-stats-container {
        grid-template-columns: 1fr;
    }
    
    .content-card-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: stretch;
    }
}

#paginationContainer {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-btn {
    background: white;
    border: 2px solid #fc0060;
    color: #fc0060;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #fc0060;
    color: white;
}

.page-btn.active {
    background: linear-gradient(135deg, #fc0060 0%, #e91e63 50%, #ff1744 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 2px 10px rgba(252, 0, 96, 0.3);
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #ddd;
    color: #aaa;
}

.dots {
    color: #86868b;
    font-weight: 600;
    padding: 0 0.3rem;
}

/* ============================================================================
   COMMENT ANALYSIS STYLES
   ============================================================================ */

.comment-analysis-container {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.comment-analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #fc0060;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1d1d1f;
    margin: 0;
}

.scores-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
}

.best-comments-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.best-comment-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.best-comment-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.best-comment-item img {
    width: 100%;
    height: auto;
    display: block;
}

.best-comments-empty {
    text-align: center;
    padding: 2rem;
    color: #86868b;
    font-style: italic;
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoom 0.3s;
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: #bbb;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    height: 40px;
    font-size: 1rem;
}

.overall-score-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.overall-score-inline h3 {
    font-size: 3rem;
    margin: 0;
    font-weight: 700;
}

.overall-score-inline p {
    font-size: 1.2rem;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comment-analysis-scores {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.score-card {
    flex: 1;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
}

.score-card:hover {
    border-color: #fc0060;
    box-shadow: 0 4px 12px rgba(252, 0, 96, 0.1);
}

.score-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.score-card-icon {
    font-size: 1.5rem;
}

.score-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0;
}

.score-card-description {
    font-size: 0.85rem;
    color: #fc0060;
    font-weight: 600;
    margin-bottom: 1rem;
}

.score-display {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.score-bar-container {
    flex: 1;
    background: #e0e0e0;
    border-radius: 12px;
    height: 12px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 12px;
    transition: width 0.8s ease;
}

.score-number {
    font-weight: 700;
    font-size: 1.8rem;
    min-width: 50px;
    text-align: right;
}

.score-explanation {
    color: #86868b;
    font-size: 0.85rem;
    font-style: italic;
}

.comment-analysis-sections {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.comment-section {
    background: #f5f5f7;
    border-radius: 16px;
    padding: 2rem;
}

.comment-section:nth-child(1) {
    background: linear-gradient(135deg, #fff5f8 0%, #ffe8f0 100%);
}

.comment-section:nth-child(2) {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.comment-section:nth-child(3) {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.comment-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 1.5rem;
}

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

.metric-item {
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.95;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Score Rating Colors */
.score-poor { color: #c62828; }
.score-fair { color: #f57c00; }
.score-average { color: #fdd835; }
.score-good { color: #43a047; }
.score-very-good { color: #1976d2; }
.score-excellent { color: #6a1b9a; }

/* Empty State */
.comment-analysis-empty {
    text-align: center;
    padding: 3rem;
    color: #86868b;
}

.comment-analysis-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.comment-analysis-empty h3 {
    font-size: 1.5rem;
    color: #1d1d1f;
    margin-bottom: 0.5rem;
}

.comment-analysis-empty p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .comment-analysis-scores {
        flex-direction: column;
    }
    
    .comment-analysis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .comment-analysis-container {
        padding: 1.5rem;
    }
    
    .comment-section {
        padding: 1.5rem;
    }
    
    .metric-breakdown {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .metric-breakdown {
        grid-template-columns: 1fr;
    }
    
    .overall-score-inline h3 {
        font-size: 2rem;
    }
}