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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #1e293b;
}

/* 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: #fc0060;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 20px rgba(252, 0, 96, 0.1);
}

.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;
}

.client-name {
    color: #fbbf24;
    font-weight: 600;
}

.campaign-name {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

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

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

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

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

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

.nav-item {
    color: #64748b;
    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.05);
}

.nav-item.active {
    color: white;
    background: #fc0060;
    font-weight: 600;
}

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

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

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

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

.overview-stat-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

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

.overview-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fc0060;
}

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

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

.overview-countries {
    font-size: 1.2rem !important;
    line-height: 1.3;
}

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

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

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

.overview-breakdown-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

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

.overview-breakdown-icon {
    font-size: 1.5rem;
    color: #fc0060;
}

.overview-breakdown-name {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

.overview-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.overview-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.overview-breakdown-item-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
}

.overview-breakdown-item-value {
    color: #1e293b;
    font-weight: 600;
}

.platform-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.platform-icon.tiktok {
    background-color: #000000;
}

.platform-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.platform-icon.youtube {
    background-color: #ff0000;
}

/* Search and Filter Section */
.search-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

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

.search-input::placeholder {
    color: #94a3b8;
}

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

.status-filter {
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

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

.status-filter option {
    background: white;
    color: #1e293b;
}

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

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

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 8px;
    padding: 0.25rem;
    border: 2px solid #e2e8f0;
}

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

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

.view-toggle-btn.active {
    background: #fc0060;
    color: white;
}

.grid-icon::before {
    content: '⊞';
    font-size: 1rem;
}

.table-icon::before {
    content: '☰';
    font-size: 1rem;
}

/* Metrics Summary */
.metrics-summary {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    justify-content: space-between;
}

.summary-metric {
    text-align: center;
    flex: 1;
}

.summary-metric-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.summary-metric-value {
    color: #fc0060;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Influencers Grid */
.influencers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.influencer-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.influencer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
}

.influencer-info h3 {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.handle {
    color: #64748b;
    font-size: 0.9rem;
}

.clickable-handle {
    color: #fc0060;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.clickable-handle:hover {
    color: #e6005a;
}

.profile-link-icon {
    font-size: 0.7rem;
    opacity: 0.8;
}

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

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

.metric {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.metric-label {
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-value {
    color: #fc0060;
    font-size: 1.2rem;
    font-weight: 600;
}

.platform-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
    text-align: center;
}

.platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

/* Influencers Table */
.influencers-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.table-header {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.table-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 1fr 1fr;
    gap: 1rem;
    padding: 1rem;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.3s ease;
}

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

.table-row:last-child {
    border-bottom: none;
}

.table-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 600;
}

.table-influencer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.table-name {
    color: #1e293b;
    font-weight: 600;
}

.table-handle {
    color: #64748b;
    font-size: 0.9rem;
}

.content-table-row .table-metric {
    font-weight: 600;
    color: #1e293b;
}

.table-metric {
    color: #1e293b;
    font-weight: 600;
}

.table-platform-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.table-platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.table-platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.table-platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

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

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

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

.content-thumbnail-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.content-thumbnail-fallback {
    width: 100%;
    height: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 3rem;
}

.stories-thumbnail-container {
    width: 100%;
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e2e8f0;
}

.stories-icon-container {
    text-align: center;
    color: #fc0060;
}

.stories-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 0.5rem;
}

.stories-count {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: #1e293b;
}

.stories-label {
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
}

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

.content-card:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fc0060;
    transition: all 0.3s ease;
}

.play-button:hover {
    background: white;
    transform: scale(1.1);
}

.content-info {
    padding: 1rem;
}

.content-title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.content-creator {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.content-date {
    color: #94a3b8;
    font-size: 0.8rem;
}

.content-footer {
    padding: 0 1rem 1rem;
}

.content-platform-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.content-platform-badge.platform-tiktok {
    background-color: #000000;
    color: white;
}

.content-platform-badge.platform-instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

.content-platform-badge.platform-youtube {
    background-color: #ff0000;
    color: white;
}

.content-metrics-expanded {
    padding: 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.75rem;
}

.content-metric[data-metric="reach"] {
    display: none;
}

.content-metric {
    text-align: center;
    padding: 0.5rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.metric-icon {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    display: block;
    color: #fc0060;
}

.metric-value {
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.metric-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 500;
}

/* Content Table with Sorting */
.content-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.content-table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.9rem;
    border-bottom: 1px solid #e2e8f0;
}

.sortable-header {
    cursor: pointer;
    user-select: none;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sortable-header:hover {
    background-color: rgba(252, 0, 96, 0.05);
    color: #fc0060;
}

.sort-indicator {
    font-size: 0.8rem;
    margin-left: 0.25rem;
    min-width: 12px;
    text-align: center;
    color: #fc0060;
}

.content-table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1.2fr 1fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

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

.content-table-row:last-child {
    border-bottom: none;
}

.table-content-title {
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.table-content-title-link {
    color: #fc0060;
    text-decoration: none;
    font-weight: 600;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
}

.table-content-title-link:hover {
    color: #e6005a;
    text-decoration: underline;
}

.external-link-icon {
    font-size: 0.7rem;
    opacity: 0.7;
}

.table-content-creator {
    color: #64748b;
    font-weight: 500;
}

.table-content-date {
    color: #94a3b8;
    font-size: 0.85rem;
}


/* Results Tab */
.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.campaign-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.campaign-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    font-weight: 500;
}

.platform-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.platform-tab {
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.platform-tab:hover {
    border-color: #fc0060;
    color: #fc0060;
}

.platform-tab.active {
    background: #fc0060;
    border-color: #fc0060;
    color: white;
    font-weight: 600;
}

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

.result-stat-box {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

.result-stat-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fc0060;
}

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

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

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #64748b;
    background: #f8fafc;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.empty-state h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.empty-state p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1.2fr 1fr 0.8fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr 0.7fr;
        font-size: 0.85rem;
    }
}

@media (max-width: 1200px) {
    .dashboard {
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-text h1 {
        font-size: 2rem;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .search-section {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input {
        min-width: unset;
    }
    
    .metrics-summary {
        flex-direction: column;
        gap: 1rem;
    }
    
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr 0.6fr;
        font-size: 0.8rem;
    }
    
    .sortable-header {
        padding: 0.25rem;
    }
}

@media (max-width: 1000px) {
    .overview-stats-row {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .overview-breakdown-grid {
        grid-template-columns: 1fr;
    }
    
    .influencers-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .results-stats-container {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .platform-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .platform-tab {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    /* Hide less important columns on smaller screens */
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 1fr 0.8fr 0.6fr 0.6fr 0.6fr 0.6fr;
    }
    
    .content-table-header > div:nth-child(10),
    .content-table-header > div:nth-child(11),
    .content-table-header > div:nth-child(12),
    .content-table-row > div:nth-child(10),
    .content-table-row > div:nth-child(11),
    .content-table-row > div:nth-child(12) {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-text h1 {
        font-size: 1.5rem;
    }
    
    .overview-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .overview-stat-value {
        font-size: 1.4rem;
    }
    
    .influencers-grid {
        grid-template-columns: 1fr;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .results-stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table-header,
    .table-row {
        grid-template-columns: 1fr 1fr 1fr;
    }
    
    .table-header > div:nth-child(1),
    .table-header > div:nth-child(5),
    .table-row > div:nth-child(1),
    .table-row > div:nth-child(5) {
        display: none;
    }
    
    /* Further reduce content table columns on mobile */
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 0.8fr 0.6fr 0.6fr;
    }
    
    .content-table-header > div:nth-child(4),
    .content-table-header > div:nth-child(6),
    .content-table-header > div:nth-child(7),
    .content-table-header > div:nth-child(8),
    .content-table-row > div:nth-child(4),
    .content-table-row > div:nth-child(6),
    .content-table-row > div:nth-child(7),
    .content-table-row > div:nth-child(8) {
        display: none;
    }
}

@media (max-width: 480px) {
    .overview-stats-row {
        grid-template-columns: 1fr;
    }
    
    .results-stats-container {
        grid-template-columns: 1fr;
    }
    
    .content-metrics-expanded {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Mobile content table - show only essential columns */
    .content-table-header,
    .content-table-row {
        grid-template-columns: 2fr 1fr 0.8fr;
    }
    
    .content-table-header > div:nth-child(n+4),
    .content-table-row > div:nth-child(n+4) {
        display: none;
    }
}

/* ADD THIS CSS TO YOUR styles.css FILE */

/* Campaign Info Section */
.campaign-info-section {
    margin-bottom: 2rem;
}

.campaign-info-title {
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.campaign-info-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.campaign-info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.campaign-info-icon {
    font-size: 1.5rem;
    color: #fc0060;
}

.campaign-info-card-title {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 700;
}

.campaign-info-content {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Responsive Design for Campaign Info */
@media (max-width: 768px) {
    .campaign-info-grid {
        grid-template-columns: 1fr;
    }
    
    .campaign-info-card {
        padding: 1rem;
    }
    
    .campaign-info-content {
        font-size: 0.9rem;
    }
}

/* ADD THIS TO YOUR styles.css FILE */

/* Analysis Tab Styles */
.analysis-section {
    margin-bottom: 3rem;
}

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

.analysis-section-title {
    color: #1e293b;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.analysis-section-icon {
    font-size: 1.8rem;
    color: #fc0060;
}

.analysis-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.analysis-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    height: fit-content;
}

.analysis-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

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

.analysis-card-icon {
    font-size: 1.3rem;
    color: #fc0060;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.analysis-card-title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.analysis-card-content {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: justify;
}

/* Key Findings Section Styling */
.key-findings {
    background: linear-gradient(135deg, rgba(252, 0, 96, 0.02) 0%, rgba(252, 0, 96, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.key-findings .analysis-card {
    background: white;
    border: 1px solid rgba(252, 0, 96, 0.1);
}

/* Recommendations Section Styling */
.recommendations {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.02) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-radius: 16px;
    padding: 2rem;
}

.recommendations .analysis-section-title {
    color: #1e293b;
}

.recommendations .analysis-section-icon {
    color: #3b82f6;
}

.recommendations .analysis-card {
    background: white;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.recommendations .analysis-card-icon {
    color: #3b82f6;
}

/* Responsive Design for Analysis Tab */
@media (max-width: 1200px) {
    .analysis-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .key-findings,
    .recommendations {
        padding: 1.5rem;
    }
    
    .analysis-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .analysis-card {
        padding: 1.25rem;
    }
    
    .analysis-section-title {
        font-size: 1.5rem;
    }
    
    .analysis-card-content {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .analysis-section-title {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}