/* style.css */

:root {
    --primary-color: #a333ff;
    --primary-dark: #7a00cc;
    --primary-light: #d8b4ff;
    --text-color: #333;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-800: #343a40;
    --dark-bg: #333;
    --twitter-color: #1DA1F2;
    --github-color: #24292e;
    --discord-color: #5865F2;
}

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

body {
    font-family: 'Fira Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-100);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.help-link {
    display: inline-block;
    margin-top: 15px;
    color: #0066cc;
    text-decoration: none;
    font-weight: bold;
}

.help-link:hover {
    text-decoration: underline;
    color: #004499;
}

.navbar {
    background: var(--dark-bg);
    border-bottom: 4px solid #777;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    position: relative;
}

.navbar__brand {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.navbar__brand-logo {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.navbar__nav {
    display: flex;
    list-style: none;
    height: 100%;
    align-items: center;
    gap: 1px;
}

.navbar__item {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar__link {
    color: var(--white);
    text-decoration: none;
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
}

.navbar__link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.navbar__link--active {
    background: var(--primary-color);
}

.navbar__link--active:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-color);
}

.navbar__release {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
    border: none;
    cursor: default;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Fira Sans', monospace;
}

.navbar__release:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(163, 51, 255, 0.3);
}

.beta-badge {
    background: rgba(255, 255, 255, 0.25);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.navbar__search-form {
    display: flex;
    align-items: center;
    margin-left: 20px;
    position: relative;
}

.navbar__search-icon {
    position: absolute;
    left: 35px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    pointer-events: none;
}

.navbar__search-icondesktop {
    position: absolute;
    left: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    pointer-events: none;
}

.navbar__search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    padding: 6px 12px 6px 36px;
    border-radius: 4px;
    font-size: 14px;
    width: 200px;
    transition: all 0.2s;
}

.navbar__search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.navbar__search-input:focus {
    width: 250px;
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.navbar__search-input:focus + .navbar__search-icon {
    color: var(--primary-light);
}

.navbar__right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 80px 20px;
    text-align: center;
}

.hero__container {
    max-width: 1200px;
    margin: 0 auto;
}

.hero__title {
    font-size: 3em;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero__text {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1.7;
    opacity: 0.9;
}

.hero__actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 40px;
}

.hero__btn {
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hero__btn--primary {
    background: var(--white);
    color: var(--primary-color);
}

.hero__btn--primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero__btn--secondary {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero__btn--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.content {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.news-article {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid var(--primary-color);
}

.news-title {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 1.4em;
}

.news-date {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    display: block;
}

.sidebar {
    background: var(--white);
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.sidebar-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 600;
}

.sidebar-list {
    list-style: none;
    margin-bottom: 30px;
}

.sidebar-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
    color: #555;
    display: flex;
    align-items: center;
}

.sidebar-list a:hover {
    color: var(--primary-color);
}
.link-twitter:hover { color: var(--twitter-color) !important; }
.link-github:hover { color: var(--github-color) !important; }
.link-discord:hover { color: var(--discord-color) !important; }

.footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--white);
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 20px;
}

.navbar__toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
    padding: 8px;
    margin-left: auto;
    transition: opacity 0.3s ease;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .navbar__toggle { 
        display: block; 
    }
    
    .navbar__nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        height: 100vh;
        background: var(--dark-bg);
        flex-direction: column;
        padding: 80px 20px 20px;
        transition: left 0.4s ease-in-out;
        box-shadow: 5px 0 15px rgba(0,0,0,0.3);
        z-index: 999;
        margin: 0;
        overflow-y: auto;
    }

    /* وقتی منو بازه، دکمه مخفی باشه */
    body.menu-open .navbar__toggle {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .navbar__nav.active {
        left: 0;
    }

    .navbar__item { 
        width: 100%; 
        height: auto; 
    }
    
    .navbar__link { 
        height: 60px; 
        padding: 0 20px; 
        border-bottom: 1px solid rgba(255,255,255,0.1); 
        justify-content: flex-start;
        width: 100%;
        font-size: 16px;
    }

    .navbar__search-form.mobile-search {
        display: flex;
        width: 100%;
        margin: 0 0 20px 0;
        padding: 0 20px;
    }
    
    .navbar__search-form.mobile-search .navbar__search-input {
        width: 100%;
        height: 45px;
        background: rgba(255, 255, 255, 0.15);
        font-size: 16px;
    }
    
    .navbar__search-form.desktop-search { 
        display: none; 
    }
    
    .navbar__right {
        display: flex;
        align-items: center;
    }
    
    .content { 
        grid-template-columns: 1fr; 
    }
    
    .hero__title { 
        font-size: 2.2em; 
    }
    
    .hero__actions { 
        flex-direction: column; 
        align-items: center; 
    }
    
    .hero__btn { 
        width: 100%; 
        max-width: 300px; 
        text-align: center; 
    }
    
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .menu-overlay.active {
        display: block;
        opacity: 1;
    }
}

@media (min-width: 769px) {
    .navbar__search-form.mobile-search {
        display: none !important;
    }
    
    .navbar__search-form.desktop-search {
        display: flex !important;
    }
    
    .menu-overlay {
        display: none !important;
    }
}