/* css/structure.css */

/* Top Navigation Header */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: rgba(10, 31, 16, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-brand img {
    width: 35px;
}

.header-brand h2 {
    font-size: 18px;
    color: var(--color-accent);
    margin: 0;
    letter-spacing: 1px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-wallet {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-wallet .label {
    font-size: 10px;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.header-wallet .balance {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.btn-header-deposit {
    background: var(--color-accent);
    color: #000;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s;
}

.btn-header-deposit:hover {
    background: #ffea75;
}

.hamburger {
    font-size: 24px;
    cursor: pointer;
    color: #fff;
}

/* Announcement Bar */
.announcement-bar {
    background: var(--color-accent);
    color: #000;
    padding: 8px 0;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    font-weight: 600;
    font-size: 14px;
    margin-top: 70px; /* offset for fixed header */
}

.announcement-bar marquee {
    width: 100%;
}

/* Side Navigation Drawer */
.side-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.side-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.side-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background: var(--color-primary-dark);
    z-index: 2001;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.side-drawer.active {
    left: 0;
}

.drawer-header {
    padding: 30px 20px;
    background: var(--color-primary);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-links {
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.drawer-link {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: 0.2s;
}

.drawer-link:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-accent);
    border-left: 4px solid var(--color-accent);
}

.drawer-link span.icon {
    margin-right: 15px;
    font-size: 20px;
}

/* Hero Banner Slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 250px;
    background: url('https://upload.wikimedia.org/wikipedia/commons/thumb/c/cd/Dar_es_Salaam_National_Stadium.jpg/800px-Dar_es_Salaam_National_Stadium.jpg') center/cover;
    border-bottom: 1px solid var(--glass-border);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(0deg, var(--color-primary-dark) 0%, rgba(10,31,16,0.5) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero-overlay h1 {
    font-size: 32px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    margin-bottom: 10px;
}

.hero-overlay p {
    color: #e2e8f0;
    margin-bottom: 20px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-hero {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 14px;
}

/* Content Sections (How it works, Winners, FAQ) */
.content-section {
    padding: 30px 20px;
    border-bottom: 1px solid var(--glass-border);
}

.section-heading {
    text-align: center;
    margin-bottom: 25px;
    color: #fff;
    font-size: 22px;
}

.section-heading span {
    color: var(--color-accent);
}

.step-card {
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 15px;
    border: 1px solid var(--glass-border);
}

.step-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.winner-ticker {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.winner-ticker .avatar {
    width: 40px; height: 40px; background: var(--color-accent); border-radius: 50%;
    display: flex; justify-content: center; align-items: center; font-weight: bold; color: #000;
}

/* Footer */
.main-footer {
    background: #051008;
    padding: 40px 20px 20px;
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 14px;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 24px;
}

/* Animations */
@keyframes shake {
    0% { transform: translate(1px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

.animated-gift {
    font-size: 100px;
    animation: shake 0.5s;
    animation-iteration-count: infinite;
    display: inline-block;
    filter: drop-shadow(0 0 20px rgba(252, 209, 22, 0.8));
}

.confetti-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#fcd116 2px, transparent 0), radial-gradient(#fff 2px, transparent 0);
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: rain 2s linear infinite;
    opacity: 0.3;
}

@keyframes rain {
    0% { background-position: 0 0, 15px 15px; }
    100% { background-position: 0 100%, 15px 115%; }
}

/* Desktop Enhancements */
@media (min-width: 768px) {
    /* Hide bottom nav on desktop, padding reset */
    .bottom-nav { display: none !important; }
    .screen.with-nav { padding-bottom: 0 !important; }
    
    /* Make campaigns a grid */
    .campaign-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    /* Side-by-side How it works */
    .step-card-container {
        display: flex;
        gap: 20px;
        justify-content: center;
    }
    .step-card { flex: 1; margin-bottom: 0; }
    
    /* Side-by-side winners */
    .winner-container {
        display: flex;
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }
    .winner-ticker { flex: 1; min-width: 250px; margin-bottom: 0; }
    
    /* Hero slider taller */
    .hero-slider { height: 400px; }
    .hero-overlay h1 { font-size: 48px; }
    .hero-overlay p { font-size: 18px; max-width: 600px; margin: 0 auto 30px; }
    
    /* Center the login/register forms */
    .login-body {
        max-width: 400px;
        margin: 0 auto;
        background: rgba(0,0,0,0.2);
        padding: 40px;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
    }
    .login-header {
        justify-content: center;
    }
}
