/* ==========================================================================
   Header & Navigation Component
   ========================================================================== */
.header {
    padding: 0 0 px 0;
    top: 0;
    left: 0;
    right: 0;
}

/* Header & Navigation */

.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 32px 0 32px 0;
    position: relative;
    font-weight: 400;
    font-family: var(--ff-accent);
    font-size: 16px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar .nav-left, 
.navbar .nav-right {
    display: flex;
    gap: 50px;
    align-items: center;
}

.navbar .nav-left {
    margin-right: 50px;
}

.navbar .nav-right {
    justify-content: flex-start;
    margin-left: 50px;
    justify-self: end;
}

.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar .logo img {
    height: 38px;
}

/* Navigation Links */
.navbar a:not(.btn-secondary) {
    color: var(--color-light);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    font-family: var(--ff-accent);
    font-weight: 500;
    font-size: 16px;
}

.navbar a:not(.btn-secondary)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-primary));
    transition: width 0.3s ease;
}

.navbar a:not(.btn-secondary):hover::after {
    width: 100%;
}

.navbar a:not(.btn-secondary).active {
    font-weight: 600;
}

.navbar a:not(.btn-secondary).active::after {
    width: 100%;
}

/* ==========================================================================
Pop-up
   ========================================================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-light);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    max-width: 420px;
    width: 90vw;
    position: relative;
    font-family: var(--ff-accent);
}

/* Modal Elements */
.close {
    position: absolute;
    top: 18px;
    right: 24px;
    color: var(--color-light);
    font-size: 2.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: #000000;
}

.modal-logo {
    height: 48px;
    margin-bottom: 18px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.modal-text {
    font-size: 1.1rem;
    margin-bottom: 28px;
    line-height: 1.6;
}

.modal-btn {
    display: inline-block;
    background: var(--color-light);
    color: var(--color-primary);
    font-family: var(--ff-accent);
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.modal-btn:hover {
    background: var(--color-primary);
    color: var(--color-light);
}

/* QR Code Component */
.qr-code {
    margin: 15px auto;
    text-align: center;
}

.qr-image {
    width: 200px;
    height: 200px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: var(--color-light);
    padding: 8px;
}

.qr-text {
    font-size: 0.8rem;
    color: var(--color-text);
    margin-top: 6px;
}

/* ==========================================================================
   Footer Component
   ========================================================================== */
.footer {
    margin-top: 100px;
    font-size: 16px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-link-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link-col:nth-child(4), 
.footer-link-col:nth-child(5) {
    text-align: right;
}

.footer-logo-col {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-logo {
    height: 38px;
}

.footer-link-col a {
    color: var(--color-text);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.2s;
}

.footer-link-col a:hover {
    color: var(--color-light);
}

.footer-logo-social {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.social-icons {
    display: flex;
    gap: 24px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    transition: transform 0.2s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons a img {
    width: 24px;
    height: 24px;
}

.footer-copyright {
    text-align: center;
    padding: 24px 0;
    font-size: 16px;
    color: var(--color-light);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .footer {
        padding: 20px;
        margin-top: 100px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0;
    }

    .footer-link-col:nth-child(4), 
    .footer-link-col:nth-child(5) {
        text-align: left;
    }

    .footer-logo-col {
        grid-column: 1 / -1;
        margin: 20px 0;
    }
}
