:root {
    --color: #ffffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #9c54c5 0%, #4b1f96 50%, #033036 100%);
    min-height: 100vh;
    color: var(--color);
    overflow-x: hidden;
    position: relative;
}

.header {
    height: 70px;
    background: transparent;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.site-name {
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.5px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.header-logo-link:hover .logo {
    transform: scale(1.1);
}

.header-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: #ff6b6b;
    background: rgba(233, 69, 96, 0.1);
}

.nav-link:hover::before {
    width: 80%;
}

.header-right {
    display: flex;
    align-items: center;
}

.search-box {
    position: relative;
    width: 240px;
}

.search-input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(233, 69, 96, 0.2);
}

.search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
    pointer-events: none;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-icon {
    width: 28px;
    height: 22px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-icon.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-icon.active span:nth-child(2) {
    opacity: 0;
}

.menu-icon.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
    z-index: 1002;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 24px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    object-fit: cover;
}

.sidebar-site-name {
    font-size: 20px;
    font-weight: 700;
    background: linear-gradient(90deg, #e94560, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.sidebar-logo-link:hover .sidebar-logo {
    transform: scale(1.1);
}

.sidebar-content {
    padding: 20px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.sidebar-nav-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.3s ease;
    display: block;
}

.sidebar-nav-link:hover {
    background: rgba(233, 69, 96, 0.15);
    color: #ff6b6b;
    transform: translateX(8px);
}

.sidebar-search-box {
    position: relative;
}

.sidebar-search-input {
    width: 100%;
    padding: 14px 40px 14px 18px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.sidebar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.sidebar-search-input:focus {
    border-color: #e94560;
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-search-icon {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .header {
        padding: 0 20px;
    }

    .header-nav {
        display: none;
    }

    .search-box {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    body.no-scroll {
        overflow: hidden;
    }
}

@media (min-width: 769px) {
    .sidebar {
        display: none !important;
    }

    .overlay {
        display: none !important;
    }
}

.footer {
    width: 100%;
    max-width: 95vw;
    margin: 0 auto 32px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 16px;
    gap: 12px;
}

.footer-links {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #ffffff;
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-links span {
    opacity: 0.4;
}

.footer-links p {
    opacity: 0.4;
    margin: 0;
}

@media (max-width: 768px) {
    .footer {
        max-width: 90vw;
        padding: 12px;
    }

    .footer-links {
        gap: 8px;
    }

    .footer-links a,
    .footer-links span,
    .footer-links p {
        font-size: 12px;
    }
}