/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0a0e27;
    --secondary-color: #1a1f3a;
    --accent-color: #2d3561;
    --highlight: #00ff88;
    --highlight-alt: #ff6b35;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --card-bg: #1a1f3a;
    --card-border: #2d3561;
    --border-color: #3a4569;
    --shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 12px 24px rgba(0, 255, 136, 0.3);
    --glow: 0 0 20px rgba(0, 255, 136, 0.5);
}

body {
    font-family: 'Arial', 'Helvetica', sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0a0e27 100%);
    background-attachment: fixed;
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(0, 255, 136, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Header */
header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1.2rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--highlight);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--highlight);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.logo:hover {
    color: var(--highlight-alt);
    text-shadow: 0 0 15px rgba(255, 107, 53, 0.9);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 0.4rem;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--highlight);
    transition: all 0.3s ease;
    border-radius: 2px;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: static;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    position: relative;
    font-weight: 600;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--highlight);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 80%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--highlight);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Card-First UI */
.cards-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--highlight);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--highlight);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.card-rating {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-alt) 100%);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: var(--glow);
}

/* Индикаторы */
.card-indicators {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid;
}

.indicator.sure {
    background: rgba(0, 150, 255, 0.2);
    color: #0096ff;
    border-color: #0096ff;
}

.indicator.tempo {
    background: rgba(255, 107, 53, 0.2);
    color: var(--highlight-alt);
    border-color: var(--highlight-alt);
}

.indicator.zorluk {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    border-color: #ffd700;
}


.card-summary {
    margin: 1rem 0;
    color: var(--text-light);
    line-height: 1.8;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    background: var(--accent-color);
    color: var(--text-light);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
}

/* Каталог */
.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.catalog-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 1.2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid var(--card-border);
}

.catalog-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-hover);
    border-color: var(--highlight);
}

/* Фильтры */
.filters {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--card-border);
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--highlight);
    color: var(--primary-color);
    border-color: var(--highlight);
    box-shadow: var(--glow);
}

/* Мобильный */
@media (max-width: 768px) {
    .cards-showcase,
    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    nav {
        position: relative;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 14, 39, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        width: 100%;
        margin-top: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
        border-top: 2px solid var(--highlight);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    
    .nav-links.active {
        max-height: 500px;
        opacity: 1;
    }
    
    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-links a {
        display: block;
        padding: 1rem 2rem;
        width: 100%;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        width: 100%;
    }
}

/* Footer */
footer {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 2rem 0 0 0;
    margin-top: 4rem;
    border-top: 2px solid var(--highlight);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h3 {
    color: var(--highlight);
    margin-bottom: 1rem;
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--highlight);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
    padding-left: 0.5rem;
}

.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
}

.footer-copyright p {
    margin: 0;
    color: #999;
    font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(10px);
    color: var(--text-light);
    padding: 1.5rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: none;
    border-top: 2px solid var(--highlight);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border: 2px solid;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.cookie-btn.accept {
    background: var(--highlight);
    color: var(--primary-color);
    border-color: var(--highlight);
}

.cookie-btn.reject {
    background: transparent;
    color: var(--text-light);
    border-color: var(--border-color);
}

.cookie-btn.preferences {
    background: var(--accent-color);
    color: var(--text-light);
    border-color: var(--accent-color);
}

.cookie-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow);
}

/* Форма */
.form-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 2rem auto;
    border: 2px solid var(--card-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--highlight);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--border-color);
    background: var(--secondary-color);
    color: var(--text-light);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 0.3rem;
    accent-color: var(--highlight);
}

.submit-btn {
    background: linear-gradient(135deg, var(--highlight) 0%, var(--highlight-alt) 100%);
    color: var(--primary-color);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    box-shadow: var(--glow);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.6);
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--card-bg);
    color: var(--text-light);
    padding: 1rem 2rem;
    border-radius: 4px;
    box-shadow: var(--shadow-hover);
    z-index: 3000;
    display: none;
    animation: slideIn 0.3s ease;
    border: 2px solid var(--highlight);
}

.toast.show {
    display: block;
}

.toast.error {
    border-color: var(--highlight-alt);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Страницы контента */
.content-page {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    border: 2px solid var(--card-border);
}

.content-page h1 {
    color: var(--highlight);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.content-page h2 {
    color: var(--highlight-alt);
    margin: 1.5rem 0 1rem 0;
    font-size: 1.8rem;
}

.content-page h3 {
    color: var(--text-light);
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
}

.content-page ul,
.content-page ol {
    margin: 1rem 0 1rem 2rem;
}

.content-page li {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.content-page a {
    color: var(--highlight);
    text-decoration: none;
    transition: all 0.3s;
}

.content-page a:hover {
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.6);
}

/* Artılar/Eksiler */
.pros-cons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.pros,
.cons {
    padding: 1.5rem;
    border-radius: 8px;
    border: 2px solid;
}

.pros {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--highlight);
}

.cons {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--highlight-alt);
}

.pros h3,
.cons h3 {
    margin-bottom: 1rem;
    color: var(--highlight);
}

.cons h3 {
    color: var(--highlight-alt);
}

.pros ul,
.cons ul {
    list-style: none;
    margin: 0;
}

.pros li::before {
    content: "+ ";
    color: var(--highlight);
    font-weight: bold;
    margin-right: 0.5rem;
}

.cons li::before {
    content: "- ";
    color: var(--highlight-alt);
    font-weight: bold;
    margin-right: 0.5rem;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
    }
    
    .cookie-btn {
        flex: 1;
    }
}
