/* ============================================
   APP PAGE STYLES
   ============================================ */

body {
    background-image: url('../wallpaper.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* App Header */
.app-header {
    position: relative;
    padding: calc(var(--spacing-xxl) + 70px) 0 var(--spacing-xxl);
    background: linear-gradient(180deg, var(--green-dark) 0%, rgba(201, 162, 39, 0.1) 50%, var(--bg-dark) 100%);
    text-align: center;
    overflow: hidden;
}

.header-badge {
    display: inline-block;
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--gradient-gold);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--radius-xl);
    letter-spacing: 2px;
    margin-bottom: var(--spacing-md);
}

.header-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

.app-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: var(--spacing-sm);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--gold-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-header p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.header-wave svg {
    width: 100%;
    height: 60px;
    display: block;
}

/* Redirect Section */
.redirect-section {
    padding: var(--spacing-xxl) 0;
}

.redirect-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--gradient-card);
    border: 2px solid rgba(201, 162, 39, 0.3);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.redirect-icon {
    font-size: 4rem;
    margin-bottom: var(--spacing-md);
    animation: float 2s ease-in-out infinite;
}

.redirect-card h2 {
    margin-bottom: var(--spacing-sm);
    color: var(--gold-light);
}

.redirect-card > p {
    margin-bottom: var(--spacing-md);
}

.loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(201, 162, 39, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.loading-progress {
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 3px;
    animation: loadingProgress 3s ease-in-out forwards;
}

@keyframes loadingProgress {
    0% { width: 0%; }
    100% { width: 100%; }
}

.redirect-note {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
}

.redirect-card .btn {
    margin-bottom: var(--spacing-md);
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--green-bright);
}

/* App Features */
.app-features {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, transparent 0%, rgba(var(--flag-red-rgb), 0.08) 100%);
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.features-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--gradient-card);
    border: 1px solid rgba(var(--flag-gold-rgb), 0.18);
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(var(--flag-gold-rgb), 0.35);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    color: var(--green-bright);
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Footer - Compact */
.main-footer {
    background: var(--bg-darker);
    padding: 1.5rem 0 1rem;
    position: relative;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(var(--flag-gold-rgb), 0.18);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-logo p {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--green-bright);
}

.footer-tagline {
    display: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 0.75rem;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-grass {
    position: absolute;
    top: -30px;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to top, var(--bg-darker) 0%, transparent 100%);
}

/* Responsive */
@media (max-width: 900px) {
    .features-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .features-showcase {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}
