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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #121212;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

header h1 {
    margin-bottom: 1rem;
    text-align: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 10px 0;
    font-size: 2.2rem;
    flex: 1;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-top: 10px;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

nav ul li {
    margin: 0 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

nav ul li a:hover {
    animation: bounceIn 0.3s ease;
}

.main-nav .cta-link {
    background: linear-gradient(135deg, #f5a623 0%, #ff4d4f 65%, #ff6fd8 100%);
    color: #fff;
    padding: 14px 30px;
    border-radius: 40px;
    border: none;
    box-shadow: 0 10px 25px rgba(255, 79, 110, 0.35);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.main-nav .cta-link::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.45), transparent 55%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.main-nav .cta-link:hover,
.main-nav .cta-link:focus {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 18px 35px rgba(255, 79, 110, 0.45);
    animation: none;
}

.main-nav .cta-link:hover::after,
.main-nav .cta-link:focus::after {
    opacity: 1;
}

.main-nav .cta-link.attention {
    animation: ctaPulse 2.8s ease-in-out infinite;
}

@keyframes ctaPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(255, 79, 110, 0.35);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 18px 35px rgba(255, 79, 110, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(255, 79, 110, 0.35);
    }
}

.hero {
    background-color: #1e1e1e;
    padding: 2rem 0;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
    border: 2px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.hero-cta-group {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.hero-cta {
    border-radius: 40px;
    padding: 14px 32px;
    font-size: 1rem;
    letter-spacing: 0.03em;
    font-weight: 700;
    text-transform: uppercase;
}

.hero-cta.primary-cta {
    background: linear-gradient(135deg, #f77f00 0%, #ff4d4f 70%, #ff82bc 100%);
    box-shadow: 0 10px 25px rgba(255, 99, 71, 0.35);
}

.hero-cta.secondary-cta {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    box-shadow: none;
}

.main-content {
    flex: 3;
    min-width: 300px;
    position: relative;
    z-index: 0;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    align-self: flex-start;
    position: sticky;
    top: 20px;
    color: #ffffff;
    z-index: 1;
}

.sidebar h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #ffffff;
}

.sidebar ul {
    list-style: none;
    padding-left: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.sidebar ul li:last-child {
    border-bottom: none;
}

.sidebar ul li a {
    color: #64b5f6;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s;
}

.sidebar ul li a:hover {
    color: #90caf9;
    transform: translateX(5px);
}

.sidebar ul li a:hover i {
    color: #f1c40f;
}

.sidebar ul li a i {
    margin-right: 8px;
    color: #27ae60;
}

.filter-count {
    background-color: #3498db;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-left: 5px;
}

.active-filter {
    background-color: #27ae60 !important;
    color: white !important;
    border-radius: 5px;
    padding: 5px;
}

.page-navigation a:last-child {
    margin-left: auto;
}

main {
    padding: 2rem 0;
}

.content {
    background-color: #1e1e1e;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.content-section {
    background-color: #1e1e1e;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    border-left: 4px solid #3498db;
    color: #ffffff;
}

.content-section h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
    color: #ffffff;
}

.page-header {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: white;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header h1 {
    margin: 0;
    text-align: center;
    font-size: 2.2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.page-header h1 i {
    margin-right: 15px;
    color: #f1c40f;
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.schema-title {
    font-size: 1.8rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.schema-description {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3498db;
}

h3 {
    font-size: 1.5rem;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1rem;
    color: #ffffff;
}

ul, ol {
    margin-bottom: 1rem;
    margin-left: 2rem;
}

ul li, ol li {
    margin-bottom: 0.5rem;
    color: #ffffff;
}

a {
    color: #64b5f6;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.feature-box {
    background-color: rgba(52, 152, 219, 0.15);
    border-left: 3px solid #3498db;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 0 5px 5px 0;
}

.feature-box h3 {
    margin-top: 0;
    color: #ffffff;
}

.feature-box p {
    margin-bottom: 0;
    color: #ffffff;
}

.two-column {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 2rem 0;
}

.column {
    flex: 1;
    min-width: 300px;
}

.column h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
    color: #ffffff;
}

.three-column {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 2rem 0;
}

.three-column .column {
    flex: 1;
    min-width: 250px;
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    color: #ffffff;
    border: 1px solid #444;
}

.three-column .column h3 {
    margin-top: 0;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.three-column .column h3 i {
    margin-right: 10px;
    color: #3498db;
}

.faq-container {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin: 2rem 0;
    color: #ffffff;
}

.faq-inline-cta {
    margin: 1.5rem 0;
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.content-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}

.content-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    animation: pulse 0.3s ease;
}

.content-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #3498db);
}

.content-card h3 {
    margin-top: 0;
    color: #64b5f6;
    display: flex;
    align-items: center;
}

.content-card h3 i {
    margin-right: 10px;
    color: #3498db;
}

.guide-card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #444;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.guide-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #8e44ad, #3498db);
}

.guide-card h3 {
    margin-top: 0;
    color: #ffffff;
    font-size: 1.4rem;
}

.guide-card h3 a {
    color: #ffffff;
    text-decoration: none;
}

.guide-card h3 a:hover {
    color: #64b5f6;
}

.guide-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #bbbbbb;
}

.guide-excerpt {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #ffffff;
}

.guide-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.guide-tag {
    background-color: #2a2a2a;
    color: #64b5f6;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.table-container {
    overflow-x: auto;
    margin: 1rem 0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.responsive-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 100%;
    color: #ffffff;
    table-layout: fixed;
}

.responsive-table th {
    background: linear-gradient(45deg, #3498db, #2c3e50);
    color: white;
    font-weight: bold;
    padding: 15px 12px;
    text-align: left;
    white-space: nowrap;
}

.responsive-table td {
    padding: 12px;
    border-bottom: 1px solid #555;
    color: #ffffff;
    word-wrap: break-word;
}

.responsive-table tr:nth-child(even) {
    background-color: #2a2a2a;
}

.responsive-table tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
    transform: translateX(5px);
    transition: all 0.2s ease;
}

.code-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.code-status.active {
    background-color: #27ae60;
    color: white;
}

.code-status.expired {
    background-color: #e74c3c;
    color: white;
}

.code-copy-button {
    background-color: #3498db;
    color: #ffffff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.code-copy-button:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
}

.wiki-unit-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.wiki-unit-stat {
    background-color: #2a2a2a;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #ffffff;
}

.wiki-unit-stat strong {
    color: #64b5f6;
}

code {
    background-color: #333333;
    padding: 2px 5px;
    border-radius: 3px;
    font-family: monospace;
    border: 1px solid #555;
    color: #ffffff;
}

.cta-button {
    text-align: center;
    margin: 2rem 0;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 12px 24px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    color: #ffffff;
}

.button:hover {
    background-color: #2980b9;
    text-decoration: none;
    animation: pulse 0.3s ease;
}

.highlight-button {
    background-color: #e74c3c;
    color: #fff;
    padding: 15px 30px;
    font-size: 1.1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    transition: all 0.3s ease;
    color: #ffffff;
}

.highlight-button:hover {
    background-color: #c0392b;
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 10px;
    padding: 20px;
    width: 220px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #444;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    animation: pulse 0.3s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #27ae60, #3498db);
}

.card-icon {
    font-size: 2.5rem;
    color: #3498db;
    margin-bottom: 15px;
}

.card h3 {
    margin-bottom: 10px;
    color: #ffffff;
}

.card p {
    font-size: 0.9rem;
    color: #ffffff;
    margin-bottom: 15px;
    min-height: 60px;
}

.card .button {
    background-color: #3498db;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.card .button:hover {
    background-color: #2980b9;
}

.play-now-card {
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 77, 79, 0.18) 0%, rgba(255, 130, 188, 0.12) 100%);
}

.play-now-card .card-icon {
    color: #ff82bc;
}

.play-now-card .button {
    margin-top: 10px;
}

.quick-access {
    background-color: #1e1e1e;
    padding: 2rem 0;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.quick-access h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ffffff;
}

.page-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 2rem 0;
    position: relative;
}

@media (max-width: 768px) {
    .page-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .main-content {
        width: 100%;
    }
    
    .sidebar {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        position: relative;
    }
}

.page-navigation {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 20px 0;
    border-top: 1px solid #444;
    border-bottom: 1px solid #444;
}

.page-navigation a {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background-color: #2a2a2a;
    border-radius: 30px;
    text-decoration: none;
    color: #64b5f6;
    font-weight: bold;
    transition: all 0.3s;
    border: 1px solid #444;
}

.page-navigation a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-inline-cta {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.page-inline-cta h3 {
    margin: 0 0 0.5rem 0;
}

.page-inline-cta p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

.page-inline-cta .button {
    white-space: nowrap;
}

.related-guide-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.related-guide-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.related-guide-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-guide-list span {
    display: block;
    margin-top: 0.35rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 998;
}

.back-to-top:hover {
    transform: translateY(-2px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.floating-play-button {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff4d4f, #ff82bc);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 22px;
    text-decoration: none;
    box-shadow: 0 12px 25px rgba(255, 77, 79, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 999;
}

.floating-play-button:hover {
    transform: translateY(-2px);
}

.floating-play-button.show {
    opacity: 1;
    visibility: visible;
}

.page-navigation .next {
    margin-left: auto;
}

.page-navigation i {
    margin: 0 8px;
}

.breadcrumb {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    padding: 10px 0;
    background-color: #2a2a2a;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    color: #ffffff;
}

.breadcrumb a {
    color: #64b5f6;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
    transform: translateX(3px);
    transition: all 0.2s ease;
}

.breadcrumb span {
    color: #ffffff;
}

.breadcrumb .separator {
    margin: 0 5px;
    color: #95a5a6;
}

.breadcrumb .current {
    color: #ffffff;
    font-weight: bold;
}

.footer-cta {
    background: #0b0b0b;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-cta-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-cta-content h3 {
    margin: 0 0 0.5rem 0;
}

.footer-cta-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
}

footer {
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    color: #fff;
    text-align: center;
    padding: 1rem 0;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

footer p {
    color: #fff;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
        padding: 10px;
        text-align: left;
        margin-bottom: 0;
    }

    .hamburger-menu {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 30px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .hamburger-menu span {
        width: 100%;
        height: 3px;
        background: #fff;
        border-radius: 10px;
        transition: all 0.3s linear;
        position: relative;
        transform-origin: center;
    }

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

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

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

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
        transition: right 0.3s ease;
        z-index: 9;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
    }

    .main-nav.active {
        right: 0;
    }

    @media (max-width: 768px) {
        .main-nav:not(.active) nav {
            display: none;
        }

        .main-nav.active nav {
            display: block;
        }
    }

    nav ul {
        flex-direction: column;
        align-items: stretch;
        background: transparent;
        padding: 80px 0 0 0;
        border-radius: 0;
        margin: 0;
        backdrop-filter: none;
        box-shadow: none;
        height: calc(100vh - 80px);
        overflow-y: auto;
    }

    nav ul li {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li a {
        padding: 15px 20px;
        border-radius: 0;
        background: transparent;
        justify-content: flex-start;
        display: flex;
        align-items: center;
    }

    nav ul li a:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: none;
        box-shadow: none;
    }

    nav ul li a i {
        margin-right: 10px;
    }

    .main-nav .cta-link {
        justify-content: center;
        margin: 15px 20px;
        border-radius: 40px;
        text-align: center;
    }

    .hero {
        padding: 1rem 0;
    }

    .hero-image {
        max-width: 90%;
        margin: 0 auto;
    }

    .container {
        width: 95%;
        padding: 0 10px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .content {
        padding: 1rem;
    }

    .card-container {
        flex-direction: column;
        align-items: center;
    }

    .card {
        width: 90%;
        max-width: 300px;
    }

    .two-column, .three-column {
        flex-direction: column;
    }

    .column {
        min-width: 100%;
    }

    .quick-access h2 {
        font-size: 1.5rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .content-section {
        padding: 20px;
    }

    .content-cards {
        grid-template-columns: 1fr;
    }

    .guide-meta {
        flex-direction: column;
        gap: 5px;
    }

    .page-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .page-navigation a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .page-navigation .next {
        margin-left: 0;
    }

    .table-container {
        overflow-x: auto;
        margin: 1rem 0;
        border-radius: 0;
        max-width: 100%;
    }

    .responsive-table {
        min-width: 100%;
        table-layout: auto;
    }
    
    .responsive-table th,
    .responsive-table td {
        padding: 8px 6px;
        font-size: 0.9rem;
    }
    
    .responsive-table th {
        white-space: normal;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }

    .image-placeholder {
        margin: 10px 0;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }

    .image-placeholder img {
        max-width: 100%;
        height: auto;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
        width: 100%;
    }
    
    .image-placeholder img:hover {
        transform: scale(1.02);
    }
    
    /* Sidebar responsive behavior */
    .sidebar {
        width: 100%;
        max-width: 100%;
        margin-top: 20px;
        position: relative;
    }
    
    .sidebar h3 {
        font-size: 1.3rem;
    }
    
    .sidebar ul li a {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

@media (max-width: 576px) {
    header h1 {
        font-size: 1.5rem;
    }

    nav ul li a {
        padding: 12px 15px;
        font-size: 0.9rem;
    }

    .hero-image {
        max-width: 100%;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    .button, .highlight-button {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .card {
        width: 95%;
        padding: 12px;
    }

    .card h3 {
        font-size: 1.2rem;
    }

    .page-header h1 {
        font-size: 1.5rem;
    }

    .content-section {
        padding: 15px;
    }

    .content-cards {
        grid-template-columns: 1fr;
    }

    .wiki-unit-stats {
        flex-direction: column;
        gap: 5px;
    }

    .guide-tag {
        padding: 3px 8px;
        font-size: 0.8rem;
    }

    .table-container {
        margin: 1rem 0;
        max-width: 100%;
    }

    .responsive-table th,
    .responsive-table td {
        padding: 6px 4px;
        font-size: 0.8rem;
    }
    
    .breadcrumb {
        font-size: 0.8rem;
    }

    .image-placeholder {
        margin: 10px 0;
        max-width: 100%;
        width: 100%;
    }
    
    .image-placeholder img {
        max-width: 100%;
        height: auto;
        width: 100%;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta {
        width: 100%;
        text-align: center;
    }

    .page-inline-cta,
    .footer-cta-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-inline-cta .button,
    .footer-cta-content .button {
        width: 100%;
        text-align: center;
    }

    .back-to-top,
    .floating-play-button {
        right: 15px;
    }

    .floating-play-button {
        bottom: 80px;
    }
}

@media (max-width: 400px) {
    header h1 {
        font-size: 1.3rem;
    }

    nav ul li {
        margin: 0;
    }

    nav ul li a {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.2rem;
    }

    .card {
        width: 98%;
        padding: 10px;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .button, .highlight-button {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .button, .highlight-button, .code-copy-button {
        padding: 15px 20px;
        min-height: 44px;
    }

    .card, .content-card, .guide-card {
        padding: 25px 20px;
    }
}

/* Additional dark mode specific styles */
.disclaimer-title {
    color: #ff9f43 !important;
}

.disclaimer-container {
    background-color: #2a2a2a !important;
    border: 2px solid #444 !important;
    color: #ffffff;
}

.code-example {
    background-color: #2d3436 !important;
    color: #fab1a0 !important;
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
}

.error-container {
    background-color: #1e1e1e;
    border: 1px solid #444;
    color: #ffffff;
}

.error-code {
    color: #3498db;
}

input[type="text"], input[type="search"], textarea, select {
    background-color: #2a2a2a;
    color: #ffffff;
    border: 1px solid #444;
}

input[type="text"]:focus, input[type="search"]:focus, textarea:focus, select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.image-placeholder img, .image-placeholder picture {
    border: 2px solid #3498db;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    width: 100%;
}

.image-placeholder img:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    transform: scale(1.02);
}

picture {
    display: block;
    width: 100%;
}

picture img {
    width: 100%;
    height: auto;
}

.content-intro {
    background-color: #2a2a2a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #27ae60;
}

.content-intro p {
    margin-bottom: 0;
    color: #bbbbbb;
    font-style: italic;
}

.roadmap-item {
    background-color: #2a2a2a;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #9b59b6;
}

.roadmap-item h3 {
    margin-top: 0;
    color: #64b5f6;
}

.roadmap-item ul {
    margin-left: 20px;
}

.roadmap-item li {
    margin-bottom: 8px;
    color: #ffffff;
}

.coming-soon {
    background-color: #2a2a2a;
    border-left: 3px solid #f39c12;
    padding: 10px;
    margin: 10px 0;
    border-radius: 0 5px 5px 0;
    font-style: italic;
    color: #f39c12;
    font-size: 0.9rem;
}

.button.disabled {
    background-color: #7f8c8d !important;
    cursor: not-allowed;
    opacity: 0.6;
    pointer-events: none;
}

.button.disabled:hover {
    background-color: #7f8c8d !important;
    transform: none !important;
    box-shadow: none !important;
}
