/* platform.css - Premium Platform Styles */

/* Header UI Elements */
.header-economy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.economy-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.85rem;
    color: #334155;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.economy-pill .icon {
    font-size: 1.1rem;
}

.level-progress-wrap {
    width: 60px;
    height: 6px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 4px;
}

.level-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Mobile Header Adjustments to prevent overflow */
@media (max-width: 768px) {
    .header-economy {
        gap: 3px;
    }
    .economy-pill {
        padding: 2px 4px;
        gap: 2px;
        white-space: nowrap !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }
    .economy-pill, .economy-pill span {
        font-size: 11px !important;
        line-height: 1.2 !important;
    }
    .economy-pill .icon {
        font-size: 12px !important;
    }
    .level-progress-wrap {
        width: 25px;
        margin-left: 2px;
    }
}

/* Modal */
.platform-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.platform-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.platform-modal {
    background: #fff;
    border-radius: 1.5rem;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    text-align: center;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}

.platform-modal-overlay.active .platform-modal {
    transform: translateY(0) scale(1);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.modal-desc {
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.modal-btn {
    background: #7361F2;
    color: white;
    font-weight: bold;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    width: 100%;
    transition: all 0.2s;
}

.modal-btn:hover {
    background: #6352d4;
    transform: translateY(-1px);
}

/* Sections */
.homepage-section {
    margin-bottom: 2.5rem;
}

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

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1f2937;
    font-family: var(--font-heading);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

body {
  font-family: 'Inter', sans-serif;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  background-color: #f8fafc;
}

html {
}

/* Favorite Button */
.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #cbd5e1;
    z-index: 10;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.fav-btn:hover {
    transform: scale(1.1);
}

.fav-btn.active {
    color: #ef4444;
}

/* Daily Challenge Cards */
.challenge-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.challenge-icon {
    width: 48px;
    height: 48px;
    background: #e0e7ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.challenge-details {
    flex-grow: 1;
}

.challenge-title {
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.25rem;
}

.challenge-progress-wrap {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.challenge-progress {
    height: 100%;
    background: #10b981;
    transition: width 0.3s;
}

.challenge-reward {
    font-weight: 700;
    font-size: 0.85rem;
    color: #f59e0b;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Ad Placeholders */
.ad-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-weight: 600;
    font-size: 0.875rem;
    margin: 1.5rem 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

.ad-placeholder.banner {
    width: 100%;
    height: 90px;
}

.ad-placeholder.native {
    width: 100%;
    height: 250px;
}
