@font-face {
    font-family: 'Handwritten';
    src: url('../fonts/handwritten.otf') format('opentype');
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-top {
    background: white;
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 2.5rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.logo-container img {
    height: 3.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
    width: auto;
    flex-shrink: 0;
}

.logo-text {
    color: var(--primary-color);
    font-size: 1.7rem;
    margin-top: 0.5rem;
    font-family: 'magazine', sans-serif;
    font-weight: normal;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    white-space-collapse: collapse;
    overflow: hidden;
    text-overflow: ellipsis;
}

.donate-button {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1.5rem;
    margin-top: 1.4rem;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1),
                0 1px 3px rgba(0, 0, 0, 0.08);
    white-space: nowrap;
    min-width: 120px;
    text-align: center;
    flex-shrink: 0;
    text-decoration: none;
    display: inline-block;
}

.donate-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-color);
    transition: width 0.3s ease;
    z-index: -1;
}

.donate-button:hover {
    transform: translateY(-2px) translateZ(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15),
                0 3px 6px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.donate-button:hover::before {
    width: 100%;
}

.donate-button:active {
    transform: translateY(1px) translateZ(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
                0 1px 2px rgba(0, 0, 0, 0.08);
}

.header-nav {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    list-style: none;
    padding: 0.3rem 0;
    margin: 0;
    flex-wrap: wrap;
}

.nav-tabs a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border-radius: 4px;
    position: relative;
    white-space: nowrap;
}

.nav-tabs a:hover {
    background: rgba(255, 255, 255, 0.1);
}

.nav-tabs a.active {
    background: rgba(255, 255, 255, 0.15);
    font-weight: 600;
}

/* Add margin to main content to account for fixed header */
main {
    margin-top: calc(4rem + 1.5rem); /* header-top height + header-nav height */
}

@media (max-width: 768px) {
    .header-top {
        padding: 0.5rem;
        height: 2rem;
    }

    .logo-container {
        gap: 0.3rem;
    }

    .logo-container img {
        height: 3rem;
        padding: 0;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .donate-button {
        padding: 0.4rem 1rem;
        font-size: 1rem;
        min-width: 100px;
        margin-top: 1rem;
    }

    .nav-tabs {
        gap: 0.5rem;
        padding: 0.3rem;
    }

    .nav-tabs a {
        font-size: 1rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {

    .header-top {
        padding: 0.3rem;
        height: 3rem;
    }

    .logo-container img {
        height: 3rem;
        padding: 0 0.3rem;
    }

    .logo-text {
        font-size: 1.2rem;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .donate-button {
        padding: 0.3rem 0.8rem;
        font-size: 0.9rem;
        min-width: 90px;
        margin-top: 0.8rem;
    }

    .nav-tabs {
        gap: 0.1rem;
    }

    .nav-tabs a {
        font-size: 0.9rem;
        padding: 0.3rem 0.4rem;
    }
}