/**
 * Indexa - Media Kit & Sponsor Stats Styling
 * Inspired by Penasihat Hosting dark analytics design.
 */

.indexa-media-kit-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #f8fafc;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 36px 28px;
    max-width: 960px;
    margin: 20px auto;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 50px -10px rgba(59, 130, 246, 0.08);
    box-sizing: border-box;
}

.indexa-media-kit-wrap * {
    box-sizing: border-box;
}

/* Header */
.indexa-media-kit-wrap .imk-header {
    text-align: center;
    margin-bottom: 32px;
}

.indexa-media-kit-wrap .imk-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    color: #60a5fa;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.indexa-media-kit-wrap .imk-pulse {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: imk-pulse-anim 2s infinite;
}

@keyframes imk-pulse-anim {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.indexa-media-kit-wrap .imk-title {
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.indexa-media-kit-wrap .imk-subtitle {
    font-size: 15px;
    color: #94a3b8;
    margin: 0 auto;
    max-width: 680px;
    line-height: 1.6;
}

/* Metric KPI Grid */
.indexa-media-kit-wrap .imk-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.indexa-media-kit-wrap .imk-metric-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 22px 18px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.indexa-media-kit-wrap .imk-metric-card:hover {
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.4);
    background: rgba(30, 41, 59, 0.9);
}

.indexa-media-kit-wrap .imk-metric-value {
    font-size: 32px;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    line-height: 1.1;
}

.indexa-media-kit-wrap .imk-metric-label {
    font-size: 13px;
    font-weight: 600;
    color: #cbd5e1;
    margin-bottom: 4px;
}

.indexa-media-kit-wrap .imk-metric-hint {
    font-size: 11px;
    color: #64748b;
}

/* Section Cards (Countries, Demographics) */
.indexa-media-kit-wrap .imk-section-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.indexa-media-kit-wrap .imk-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
}

.indexa-media-kit-wrap .imk-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0;
}

.indexa-media-kit-wrap .imk-section-pill {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 3px 10px;
    border-radius: 6px;
}

/* Country Grid */
.indexa-media-kit-wrap .imk-country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}

.indexa-media-kit-wrap .imk-country-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 14px;
    text-align: center;
}

.indexa-media-kit-wrap .imk-country-sessions {
    font-size: 20px;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 4px;
}

.indexa-media-kit-wrap .imk-country-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.indexa-media-kit-wrap .imk-flag {
    font-size: 14px;
}

.indexa-media-kit-wrap .imk-code {
    font-weight: 700;
    color: #cbd5e1;
}

.indexa-media-kit-wrap .imk-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.indexa-media-kit-wrap .imk-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: 4px;
}

/* Demographics Grid */
.indexa-media-kit-wrap .imk-demographics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

/* Gender Box */
.indexa-media-kit-wrap .imk-gender-stats {
    display: flex;
    gap: 12px;
    margin: 16px 0;
}

.indexa-media-kit-wrap .imk-gender-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
}

.indexa-media-kit-wrap .imk-gender-box.imk-male {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.indexa-media-kit-wrap .imk-gender-box.imk-female {
    background: rgba(236, 72, 153, 0.1);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.indexa-media-kit-wrap .imk-gender-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.indexa-media-kit-wrap .imk-gender-num {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
}

.indexa-media-kit-wrap .imk-gender-txt {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
}

.indexa-media-kit-wrap .imk-gender-bar {
    display: flex;
    height: 8px;
    border-radius: 6px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.indexa-media-kit-wrap .imk-gender-male-fill {
    background: #3b82f6;
}

.indexa-media-kit-wrap .imk-gender-female-fill {
    background: #ec4899;
}

/* Age Distribution */
.indexa-media-kit-wrap .imk-age-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.indexa-media-kit-wrap .imk-age-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
}

.indexa-media-kit-wrap .imk-age-label {
    width: 60px;
    color: #cbd5e1;
    font-weight: 600;
}

.indexa-media-kit-wrap .imk-age-bar-track {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    overflow: hidden;
}

.indexa-media-kit-wrap .imk-age-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 6px;
}

.indexa-media-kit-wrap .imk-age-pct {
    width: 45px;
    text-align: right;
    font-weight: 700;
    color: #f1f5f9;
}

/* CTA Box */
.indexa-media-kit-wrap .imk-cta-box {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.4) 0%, rgba(15, 23, 42, 0.8) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.indexa-media-kit-wrap .imk-cta-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.indexa-media-kit-wrap .imk-cta-desc {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.indexa-media-kit-wrap .imk-btn-primary {
    display: inline-block;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 22px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.indexa-media-kit-wrap .imk-btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* Footer Attribution */
.indexa-media-kit-wrap .imk-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 12px;
    color: #64748b;
}

/* ========================================================
   Clean / Light Theme
   ======================================================== */
.indexa-media-kit-wrap.imk-theme-clean {
    color: #1e293b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.05), 0 8px 10px -6px rgba(15, 23, 42, 0.03);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-badge {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-title {
    color: #0f172a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-subtitle {
    color: #64748b;
}

/* Metric KPI Grid - Clean */
.indexa-media-kit-wrap.imk-theme-clean .imk-metric-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-metric-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.08);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-metric-value {
    color: #0f172a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-metric-label {
    color: #334155;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-metric-hint {
    color: #64748b;
}

/* Section Card - Clean */
.indexa-media-kit-wrap.imk-theme-clean .imk-section-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-section-header {
    border-bottom: 1px solid #f1f5f9;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-section-title {
    color: #0f172a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-section-pill {
    color: #475569;
    background: #f1f5f9;
}

/* Country Grid - Clean */
.indexa-media-kit-wrap.imk-theme-clean .imk-country-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-country-sessions {
    color: #0f172a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-country-info {
    color: #64748b;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-code {
    color: #1e293b;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-cname {
    color: #64748b;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-progress-bar {
    background: #e2e8f0;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-progress-fill {
    background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* Demographics - Clean */
.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-male {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-male .imk-gender-icon {
    color: #2563eb;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-male .imk-gender-num {
    color: #1e3a8a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-male .imk-gender-txt {
    color: #2563eb;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-female {
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-female .imk-gender-icon {
    color: #db2777;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-female .imk-gender-num {
    color: #831843;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-box.imk-female .imk-gender-txt {
    color: #db2777;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-gender-bar {
    background: #e2e8f0;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-age-label {
    color: #334155;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-age-bar-track {
    background: #e2e8f0;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-age-bar-fill {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-age-pct {
    color: #0f172a;
}

/* CTA Box - Clean */
.indexa-media-kit-wrap.imk-theme-clean .imk-cta-box {
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    box-shadow: 0 4px 15px -3px rgba(37, 99, 235, 0.08);
}

.indexa-media-kit-wrap.imk-theme-clean .imk-cta-title {
    color: #0f172a;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-cta-desc {
    color: #475569;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-btn-primary {
    background: #2563eb;
    color: #ffffff !important;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-btn-primary:hover {
    background: #1d4ed8;
}

.indexa-media-kit-wrap.imk-theme-clean .imk-footer {
    color: #94a3b8;
}

/* Responsive */
@media (max-width: 820px) {
    .indexa-media-kit-wrap .imk-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .indexa-media-kit-wrap .imk-demographics-grid {
        grid-template-columns: 1fr;
    }
    .indexa-media-kit-wrap .imk-cta-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .indexa-media-kit-wrap {
        padding: 24px 16px;
    }
    .indexa-media-kit-wrap .imk-metric-grid {
        grid-template-columns: 1fr;
    }
    .indexa-media-kit-wrap .imk-country-grid {
        grid-template-columns: 1fr 1fr;
    }
}
