:root {
            --primary-dark: #1a1a2e;
            --primary-accent: #d4af37;
            --secondary-accent: #8b0000;
            --text-light: #f0f0f0;
            --text-grey: #b8b8b8;
            --bg-card: #2a2a3e;
            --border-color: #444;
            --transition-speed: 0.3s;
        }
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        body {
            background-color: var(--primary-dark);
            color: var(--text-light);
            line-height: 1.8;
            overflow-x: hidden;
        }
        a {
            color: var(--primary-accent);
            text-decoration: none;
            transition: color var(--transition-speed);
        }
        a:hover {
            color: #ffd700;
            text-decoration: underline;
        }
        .container {
            width: 100%;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }
        .site-header {
            background: linear-gradient(to bottom, #0a0a1a 0%, var(--primary-dark) 100%);
            border-bottom: 2px solid var(--primary-accent);
            padding: 1rem 0;
            position: sticky;
            top: 0;
            z-index: 1000;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
        }
        .header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }
        .my-logo {
            font-family: 'Impact', 'Arial Black', sans-serif;
            font-size: 2.5rem;
            background: linear-gradient(90deg, var(--primary-accent), #ff6b6b);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }
        .my-logo:hover {
            transform: scale(1.02);
            text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
        }
        .mobile-toggle {
            display: none;
            background: none;
            border: 2px solid var(--primary-accent);
            color: var(--primary-accent);
            font-size: 1.5rem;
            padding: 0.5rem 1rem;
            border-radius: 5px;
            cursor: pointer;
        }
        .main-nav ul {
            display: flex;
            list-style: none;
            gap: 2rem;
        }
        .main-nav a {
            font-weight: 600;
            padding: 0.5rem 0;
            position: relative;
            font-size: 1.1rem;
        }
        .main-nav a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--primary-accent);
            transition: width var(--transition-speed);
        }
        .main-nav a:hover::after {
            width: 100%;
        }
        .breadcrumb {
            padding: 1rem 0;
            background-color: rgba(42, 42, 62, 0.8);
            margin-bottom: 2rem;
            font-size: 0.9rem;
        }
        .breadcrumb ul {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .breadcrumb li:not(:last-child)::after {
            content: '›';
            margin-left: 0.5rem;
            color: var(--text-grey);
        }
        .main-content-area {
            display: grid;
            grid-template-columns: 1fr 300px;
            gap: 3rem;
            margin: 2rem 0;
        }
        @media (max-width: 1024px) {
            .main-content-area {
                grid-template-columns: 1fr;
            }
        }
        .wiki-article {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 3rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
            border-left: 6px solid var(--primary-accent);
        }
        .article-header {
            margin-bottom: 3rem;
            text-align: center;
            border-bottom: 2px dashed var(--border-color);
            padding-bottom: 2rem;
        }
        .article-header h1 {
            font-size: 3.2rem;
            margin-bottom: 1rem;
            color: var(--primary-accent);
            text-shadow: 2px 2px 0 var(--secondary-accent);
            line-height: 1.2;
        }
        .article-meta {
            color: var(--text-grey);
            font-style: italic;
            display: flex;
            justify-content: center;
            gap: 2rem;
            flex-wrap: wrap;
        }
        .article-meta i {
            margin-right: 0.5rem;
        }
        .article-body h2 {
            font-size: 2.5rem;
            color: var(--primary-accent);
            margin: 3rem 0 1.5rem 0;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-color);
        }
        .article-body h3 {
            font-size: 1.8rem;
            color: #ffd700;
            margin: 2.5rem 0 1rem 0;
        }
        .article-body h4 {
            font-size: 1.4rem;
            color: #f0a830;
            margin: 2rem 0 1rem 0;
        }
        .article-body p {
            margin-bottom: 1.8rem;
            text-align: justify;
            font-size: 1.15rem;
        }
        .article-body strong {
            color: var(--primary-accent);
            font-weight: 700;
        }
        .article-body em {
            color: #a0d2ff;
            font-style: italic;
        }
        .highlight-box {
            background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(139, 0, 0, 0.1));
            border-left: 5px solid var(--primary-accent);
            padding: 2rem;
            margin: 2.5rem 0;
            border-radius: 0 10px 10px 0;
        }
        .image-container {
            text-align: center;
            margin: 3rem 0;
        }
        .article-image {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            border: 3px solid var(--border-color);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
            transition: transform var(--transition-speed);
        }
        .article-image:hover {
            transform: scale(1.01);
        }
        .image-caption {
            margin-top: 0.8rem;
            font-style: italic;
            color: var(--text-grey);
            font-size: 0.95rem;
        }
        .link-list {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            list-style: none;
            padding: 1.5rem;
            background-color: rgba(0, 0, 0, 0.3);
            border-radius: 8px;
            margin: 2rem 0;
        }
        .link-list li a {
            background-color: var(--primary-dark);
            padding: 0.8rem 1.5rem;
            border-radius: 30px;
            border: 1px solid var(--border-color);
            display: inline-block;
        }
        .link-list li a:hover {
            background-color: var(--primary-accent);
            color: var(--primary-dark);
            text-decoration: none;
            border-color: var(--primary-accent);
        }
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 2rem;
        }
        .sidebar-widget {
            background-color: var(--bg-card);
            border-radius: 12px;
            padding: 2rem;
            border: 1px solid var(--border-color);
        }
        .sidebar-widget h3 {
            color: var(--primary-accent);
            margin-bottom: 1.5rem;
            padding-bottom: 0.8rem;
            border-bottom: 1px solid var(--border-color);
            font-size: 1.5rem;
        }
        .search-form input {
            width: 100%;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-light);
            font-size: 1rem;
            margin-bottom: 1rem;
        }
        .search-form button {
            width: 100%;
            padding: 1rem;
            background: linear-gradient(90deg, var(--primary-accent), #b8860b);
            border: none;
            border-radius: 8px;
            color: var(--primary-dark);
            font-weight: bold;
            font-size: 1.1rem;
            cursor: pointer;
            transition: transform var(--transition-speed);
        }
        .search-form button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
        }
        .rating-widget form {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .stars {
            display: flex;
            justify-content: space-between;
            font-size: 2rem;
            color: #444;
            margin-bottom: 1rem;
            direction: rtl; 
        }
        .stars input {
            display: none;
        }
        .stars label {
            cursor: pointer;
            transition: color var(--transition-speed);
        }
        .stars input:checked ~ label,
        .stars label:hover,
        .stars label:hover ~ label {
            color: var(--primary-accent);
        }
        .rating-widget textarea,
        .rating-widget input[type="text"] {
            width: 100%;
            padding: 1rem;
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid var(--border-color);
            border-radius: 8px;
            color: var(--text-light);
            font-size: 1rem;
            margin-bottom: 1rem;
        }
        .rating-widget button {
            padding: 1rem;
            background-color: var(--secondary-accent);
            border: none;
            border-radius: 8px;
            color: white;
            font-weight: bold;
            cursor: pointer;
            transition: background-color var(--transition-speed);
        }
        .rating-widget button:hover {
            background-color: #a00;
        }
        .toc {
            position: sticky;
            top: 120px;
        }
        .toc ul {
            list-style: none;
        }
        .toc li {
            margin-bottom: 0.8rem;
            padding-left: 1rem;
            border-left: 3px solid transparent;
            transition: all var(--transition-speed);
        }
        .toc li:hover {
            border-left-color: var(--primary-accent);
            padding-left: 1.5rem;
        }
        .toc a {
            color: var(--text-grey);
            display: block;
        }
        .toc a:hover {
            color: var(--text-light);
        }
        .site-footer {
            background-color: #0a0a1a;
            border-top: 2px solid var(--primary-accent);
            padding: 3rem 0 1.5rem 0;
            margin-top: 4rem;
        }
        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 3rem;
            margin-bottom: 2rem;
        }
        .footer-logo {
            font-size: 2rem;
            margin-bottom: 1rem;
        }
        .footer-links h4 {
            color: var(--primary-accent);
            margin-bottom: 1.5rem;
            font-size: 1.3rem;
        }
        .footer-links ul {
            list-style: none;
        }
        .footer-links li {
            margin-bottom: 0.8rem;
        }
        friend-link {
            display: block;
            background-color: rgba(255, 255, 255, 0.03);
            padding: 2rem;
            border-radius: 10px;
            margin: 2rem 0;
            border-left: 5px solid var(--primary-accent);
        }
        friend-link h3 {
            color: var(--primary-accent);
            margin-bottom: 1.5rem;
        }
        .friend-links {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            list-style: none;
        }
        .friend-links li a {
            background-color: var(--primary-dark);
            padding: 0.7rem 1.2rem;
            border-radius: 20px;
            border: 1px solid var(--border-color);
            font-size: 0.9rem;
        }
        .friend-links li a:hover {
            background-color: var(--primary-accent);
            color: var(--primary-dark);
        }
        .copyright {
            text-align: center;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
            color: var(--text-grey);
            font-size: 0.9rem;
        }
        @media (max-width: 768px) {
            .header-container {
                flex-direction: column;
                align-items: flex-start;
            }
            .my-logo {
                font-size: 2rem;
                margin-bottom: 1rem;
            }
            .mobile-toggle {
                display: block;
                position: absolute;
                top: 1.5rem;
                right: 20px;
            }
            .main-nav {
                width: 100%;
                display: none;
                margin-top: 1rem;
            }
            .main-nav.active {
                display: block;
            }
            .main-nav ul {
                flex-direction: column;
                gap: 0;
            }
            .main-nav li {
                border-bottom: 1px solid var(--border-color);
            }
            .main-nav a {
                display: block;
                padding: 1rem;
            }
            .article-header h1 {
                font-size: 2.5rem;
            }
            .article-body h2 {
                font-size: 2rem;
            }
            .article-body h3 {
                font-size: 1.6rem;
            }
            .wiki-article {
                padding: 2rem;
            }
        }
        @media print {
            .site-header, .sidebar, .site-footer, .breadcrumb,
            .search-form, .rating-widget, .mobile-toggle {
                display: none !important;
            }
            body {
                background-color: white;
                color: black;
            }
            .container {
                max-width: 100%;
                padding: 0;
            }
            .main-content-area {
                display: block;
            }
            .wiki-article {
                box-shadow: none;
                border: 1px solid #ddd;
                padding: 0;
            }
            a {
                color: #000;
                text-decoration: underline;
            }
        }
