/* ---------------------------------------------------------
   Layout CSS - Shared Navbar, Sidebar, and Footer Styles
   --------------------------------------------------------- */

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 70px;
    background: var(--nav-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(241, 196, 15, 0.2);
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.nav-logo {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.glass-nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.glass-nav a:hover {
    color: var(--primary-color);
}

.icon-btn {
    background: none;
    border: none;
    color: var(--nav-link);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease, transform 0.2s ease;
    padding: 5px;
}

.icon-btn:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Sidebar Options */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.sidebar {
    position: fixed;
    top: 0;
    right: -350px;
    width: 300px;
    max-width: 80vw;
    height: 100%;
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(var(--sidebar-grad), var(--sidebar-grad)),
        url('https://syrian.zone/syid/materials/pattern.svg');
    background-size: 300px;
    border-left: 1px solid rgba(241, 196, 15, 0.2);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.8);
}

.sidebar.open {
    right: 0;
}

.close-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s, transform 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.sidebar-content, .sidebar {
    padding-top: 50px;
}

.sidebar-logo {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
}

.sidebar-subtitle {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    text-align: right;
    padding-right: 30px;
}

.sidebar-links {
    list-style: none;
    margin-bottom: 40px;
    text-align: right;
    padding-right: 30px;
}

.sidebar-links li {
    margin-bottom: 15px;
}

.sidebar-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.5rem;
    transition: color 0.3s, padding-right 0.3s;
    display: block;
}

.sidebar-links a:hover,
.sidebar-links a.active {
    color: var(--primary-color);
    padding-right: 15px;
}

/* Footer */
footer {
    padding: 60px 20px;
    text-align: center;
    background-color: var(--primary-color);
    color: var(--footer-text);
    font-weight: bold;
    font-size: 1.2rem;
}
