/*
 * StarSolver Components CSS
 * Centralized styles for common UI patterns across all templates
 */

/* ============================================
   PAGE HEADER STYLES
   ============================================ */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.5rem;
}

/* ============================================
   GLASS MORPHISM CARD
   ============================================ */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   STATS ITEM STYLES
   ============================================ */
.stats-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 60px;
}

.stats-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.stats-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(to bottom, #ffd700, #ff6b6b);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stats-item:hover::before {
    opacity: 1;
}

.stats-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stats-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffd700;
}

.stats-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: rgba(255, 215, 0, 0.8);
}

/* ============================================
   FIRE/PARTICLE ANIMATION
   ============================================ */
.particle {
    animation: rise 1s ease-in infinite;
    background-image: radial-gradient(#ff5000 20%, rgba(255, 80, 0, 0) 70%);
    border-radius: 50%;
    mix-blend-mode: screen;
    opacity: 0;
    position: absolute;
    bottom: 0;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(0) scale(1);
    }
    25% {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateY(-10em) scale(0);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.gold-text {
    color: #ffd700;
}

.text-white {
    color: white;
}

.text-center {
    text-align: center;
}

.divider {
    color: white;
    opacity: 0.3;
    margin: 24px 0;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .page-header {
        margin-bottom: 2rem;
        padding-top: 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-subtitle {
        font-size: 1rem;
    }

    .glass-card {
        padding: 1.5rem;
    }

    .stats-item {
        padding: 1rem 1.25rem;
    }

    .stats-value {
        font-size: 1.25rem;
    }

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

@media (max-width: 480px) {
    .page-header {
        margin-bottom: 1.5rem;
        padding-top: 1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .page-subtitle {
        font-size: 0.9rem;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .stats-item {
        padding: 0.875rem 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .stats-value {
        font-size: 1.1rem;
    }

    .stats-icon {
        font-size: 1.1rem;
        margin-right: 0.5rem;
    }
}
