/* shared-styles.css */
body {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    background: #F4F0FC;
    color: #3D2C5E;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Header Styles --- */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 40px;
    background: rgba(230, 224, 248, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(122, 62, 156, 0.2);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease;
}
#header-placeholder header {
    position: fixed;
    top: 0;
    z-index: 1000;
}
#header-placeholder {
    display: block;
    position: relative;
    z-index: 1000;
}

#header-placeholder header {
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(230, 224, 248, 0.85); /* לוודא שלא שקוף */
    backdrop-filter: blur(10px);
}

body.scrolled header {
    background: rgba(220, 212, 240, 0.9);
    backdrop-filter: blur(15px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #7A3E9C;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: filter 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    filter: brightness(0.8);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: rgba(61, 44, 94, 0.75);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #FFA300;
    transition: width 0.4s ease, background-color 0.3s ease;
}

.nav-links a:hover {
    color: #E67E22;
}

.nav-links a:hover::after {
    width: 70%;
}

.nav-links a.active {
    color: #E67E22;
    font-weight: 600;
}

.nav-links a.active::after {
    width: 100%;
    background: #E67E22;
}

.hamburger-menu {
    display: none;
    cursor: pointer;
    padding: 10px;
    margin-left: 15px;
    z-index: 1001;
}

.hamburger-menu div {
    width: 25px;
    height: 3px;
    background-color: #512482;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* --- Footer Styles --- */
footer {
    background: #DCD4F4;
    border-top: 1px solid rgba(122, 62, 156, 0.3);
    padding: 50px 40px 25px;
    margin-top: auto;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: nowrap; /* Try to keep in one line */
    gap: 30px;
}

.footer-logo {
    font-size: 20px;
    font-weight: 600;
    color: #512482;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-credit {
    font-size: 13px;
    color: rgba(61, 44, 94, 0.7);
    letter-spacing: 1px;
    text-align: left;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(122, 62, 156, 0.2);
    color: rgba(61, 44, 94, 0.55);
    font-size: 12px;
}

/* Wrapper for main content of pages, to ensure padding for sticky header */
.main-content-wrapper,
.main-content-area {
    flex-grow: 1;
    padding-top: 81px; /* Adjust this value to your actual header height + border */
}


/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    header {
        padding: 15px 30px;
    }
    .nav-links {
        gap: 20px;
    }
    .nav-links a {
        font-size: 13px;
    }
    .main-content-wrapper, .main-content-area {
        padding-top: 71px; /* Adjusted for potentially smaller header */
    }
}

@media (max-width: 768px) {
    header {
        padding: 15px 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%;
        background-color: rgba(230, 224, 248, 0.98);
        backdrop-filter: blur(10px);
        padding: 10px 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        border-top: 1px solid rgba(122, 62, 156, 0.2);
        gap: 0;
        z-index: 999;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
        text-align: center;
    }
    .nav-links a {
        padding: 15px 20px;
        font-size: 15px;
        display: block;
        width: 100%;
        border-bottom: 1px solid rgba(122, 62, 156, 0.1);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }
    .nav-links a::after {
        display: none;
    }
    .hamburger-menu {
        display: block;
    }
    .hamburger-menu.open .bar1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger-menu.open .bar2 {
        opacity: 0;
    }
    .hamburger-menu.open .bar3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    footer {
        padding: 30px 20px 15px;
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        text-align: center;
        flex-wrap: wrap; /* Allow wrap on mobile if needed */
    }
    .footer-logo, .footer-credit {
        text-align: center;
    }
    .main-content-wrapper, .main-content-area {
        padding-top: 66px; /* Adjusted for potentially smaller header on mobile */
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }
    .nav-links a {
        font-size: 14px;
        padding: 12px 15px;
    }
    .footer-logo {
        font-size: 18px;
    }
    .footer-credit, .footer-bottom {
        font-size: 11px;
    }
}