/* ========================================
   Java.com Clone - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #007396;
    --primary-dark: #005a73;
    --primary-light: #e6f3f6;
    --secondary-color: #f8981d;
    --text-color: #333;
    --text-light: #666;
    --text-muted: #999;
    --bg-color: #fff;
    --bg-light: #f5f5f5;
    --bg-dark: #1a1a1a;
    --border-color: #ddd;
    --shadow: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --container-width: 1200px;
    --header-height: 70px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    color: var(--text-color);
}

/* Navigation */
.main-nav {
    flex: 1;
    margin: 0 40px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

/* Search */
.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 35px 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    width: 200px;
    font-size: 0.9rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.search-btn {
    position: absolute;
    right: 8px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* ========================================
   Flash Messages
   ======================================== */
.flash-messages {
    margin-top: 20px;
}

.alert {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: inherit;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: white;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

.btn-secondary:hover {
    background-color: #e0850a;
    border-color: #e0850a;
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-small {
    padding: 6px 16px;
    font-size: 0.875rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(0, 115, 150, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(248, 152, 29, 0.2) 0%, transparent 50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    text-align: left;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, #e6f3f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.hero-actions .btn-outline {
    border-color: rgba(255,255,255,0.5);
    color: white;
}

.hero-actions .btn-outline:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: white;
}

.hero-note {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-top: 15px;
}

.version-info {
    margin-top: 25px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.version-info .version-divider {
    margin: 0 10px;
    opacity: 0.5;
}

/* Hero Visual - Code Window */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background-color: #1e1e2e;
    border-radius: 16px;
    box-shadow:
        0 25px 80px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.1),
        0 0 100px rgba(0, 115, 150, 0.2);
    overflow: hidden;
    max-width: 420px;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.code-window:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(2deg);
}

.code-header {
    background-color: #181825;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.code-dot.red { background-color: #ff5f56; }
.code-dot.yellow { background-color: #ffbd2e; }
.code-dot.green { background-color: #27c93f; }

.code-title {
    margin-left: 10px;
    font-size: 0.85rem;
    color: #6c7086;
    font-family: 'Consolas', monospace;
}

.code-content {
    padding: 25px 30px;
    background: linear-gradient(180deg, #1e1e2e 0%, #252535 100%);
}

.code-content pre {
    margin: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.8;
}

.code-content code {
    color: #cdd6f4;
}

/* Syntax Highlighting */
.code-keyword {
    color: #cba6f7;
    font-weight: 600;
}

.code-class {
    color: #f9e2af;
}

.code-method {
    color: #89b4fa;
}

.code-string {
    color: #a6e3a1;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

/* Page Hero */
.page-hero {
    background-color: var(--primary-light);
    padding: 60px 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-hero p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    color: var(--text-color);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border-radius: var(--radius-lg);
    background-color: var(--bg-light);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
}

/* ========================================
   Download Section
   ======================================== */
.download-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.download-card {
    text-align: center;
    padding: 40px 30px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.download-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.platform-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.download-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Download Options Page */
.download-options {
    padding: 60px 0;
}

.platform-section {
    margin-bottom: 60px;
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.platform-icon-large {
    font-size: 3rem;
}

.platform-header h2 {
    font-size: 1.75rem;
}

.download-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.download-info h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.download-meta {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Installation Notes */
.installation-notes {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.notes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.note-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.note-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.note-card ol,
.note-card ul {
    margin-left: 20px;
}

.note-card li {
    margin-bottom: 8px;
}

/* ========================================
   Help Section
   ======================================== */
.help-section {
    padding: 80px 0;
}

.help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.help-card {
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.help-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.help-card h3 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

.help-card p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.link-arrow {
    color: var(--primary-color);
    font-weight: 500;
}

.link-arrow:hover {
    color: var(--primary-dark);
}

/* Help Content Page */
.help-content {
    padding: 60px 0;
}

.help-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.help-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.help-sidebar h3,
.help-sidebar h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.category-list,
.sidebar-section ul {
    list-style: none;
}

.category-list li,
.sidebar-section li {
    margin-bottom: 8px;
}

.category-list a,
.sidebar-section a {
    color: var(--text-light);
    display: block;
    padding: 5px 10px;
    border-radius: var(--radius);
}

.category-list a:hover,
.category-list a.active,
.sidebar-section a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.sidebar-section {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* Articles Grid */
.articles-grid {
    display: grid;
    gap: 20px;
}

.article-card {
    padding: 25px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.article-card:hover {
    box-shadow: var(--shadow);
    border-color: var(--primary-color);
}

.article-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 0.875rem;
}

.article-category {
    color: var(--primary-color);
    font-weight: 500;
}

.article-date {
    color: var(--text-muted);
}

.article-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.article-card h3 a {
    color: var(--text-color);
}

.article-card h3 a:hover {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.view-count {
    color: var(--text-muted);
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    transition: var(--transition);
}

.page-link:hover,
.page-link.current {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-link.ellipsis {
    border: none;
    pointer-events: none;
}

/* ========================================
   Article Page
   ======================================== */
.article-header-section {
    background-color: var(--primary-light);
    padding: 60px 0;
}

.article-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.article-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 0.875rem;
}

.article-content-section {
    padding: 60px 0;
}

.article-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-body h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.article-body h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    margin-left: 30px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body code {
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.article-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-box {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.sidebar-box h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.article-toc ul {
    list-style: none;
}

.article-toc li {
    margin-bottom: 8px;
}

.article-toc a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.article-toc a:hover {
    color: var(--primary-color);
}

.article-toc a.h3 {
    padding-left: 15px;
}

.related-articles {
    list-style: none;
}

.related-articles li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    color: var(--text-light);
    font-size: 0.9rem;
}

.related-articles a:hover {
    color: var(--primary-color);
}

.article-navigation {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.nav-back {
    color: var(--primary-color);
    font-weight: 500;
}

/* ========================================
   FAQ Page
   ======================================== */
.faq-content {
    padding: 60px 0;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--primary-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: var(--bg-color);
    border: none;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background-color: var(--bg-light);
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: var(--transition);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-content {
    padding: 0 25px 25px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer-content p,
.faq-answer-content ul,
.faq-answer-content ol {
    margin-bottom: 15px;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin-left: 20px;
}

.faq-answer-content li {
    margin-bottom: 8px;
}

.faq-answer-content code {
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
}

/* ========================================
   Versions Page
   ======================================== */
.lts-versions {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.section-intro {
    text-align: center;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 40px;
}

.versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.version-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
}

.version-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--secondary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.version-card h3 {
    font-size: 1.75rem;
    margin-bottom: 5px;
}

.version-name {
    color: var(--text-light);
    margin-bottom: 20px;
}

.version-dates {
    margin-bottom: 20px;
}

.version-dates p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.version-description {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* All Versions Table */
.all-versions {
    padding: 60px 0;
}

.versions-table-wrapper {
    overflow-x: auto;
    margin-top: 30px;
}

.versions-table {
    width: 100%;
    border-collapse: collapse;
}

.versions-table th,
.versions-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.versions-table th {
    background-color: var(--bg-light);
    font-weight: 600;
}

.versions-table tr:hover {
    background-color: var(--bg-light);
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    background-color: var(--bg-light);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-lts {
    background-color: var(--secondary-color);
    color: white;
}

.status-active {
    color: #28a745;
}

.status-expired {
    color: #dc3545;
}

/* Version Info */
.version-info-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.info-card {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.info-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.info-card p {
    color: var(--text-light);
}

/* ========================================
   System Requirements Page
   ======================================== */
.requirements-content {
    padding: 60px 0;
}

.platform-requirements {
    margin-bottom: 60px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.requirement-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius);
}

.requirement-item h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.requirement-item p,
.requirement-item ul {
    color: var(--text-light);
    font-size: 0.95rem;
}

.requirement-item ul {
    list-style: none;
}

.requirement-item li {
    margin-bottom: 5px;
}

/* Additional Info */
.additional-info {
    padding: 60px 0;
    background-color: var(--bg-light);
}

/* ========================================
   About Section (Homepage)
   ======================================== */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-light);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 50px;
}

.about-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-features {
    margin-bottom: 50px;
}

.about-features h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.features-grid.small {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.features-grid.small .feature-card {
    padding: 25px 20px;
}

.features-grid.small .feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.features-grid.small h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.features-grid.small p {
    font-size: 0.9rem;
}

.about-stats {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 50px 30px;
    border-radius: var(--radius-lg);
    color: white;
}

.about-stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    text-align: center;
}

.about-stats .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.about-stats .stat-label {
    font-size: 1rem;
    opacity: 0.9;
}

/* Timeline in About Section */
.about-timeline {
    margin-top: 60px;
}

.about-timeline h3 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.about-timeline .timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.about-timeline .timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-color);
}

.about-timeline .timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 40px;
}

.about-timeline .timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.about-timeline .timeline-date {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 1;
}

.about-timeline .timeline-content {
    background-color: var(--bg-color);
    padding: 25px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    width: 90%;
}

.about-timeline .timeline-item:nth-child(odd) .timeline-content {
    margin-right: 30px;
}

.about-timeline .timeline-item:nth-child(even) .timeline-content {
    margin-left: 30px;
}

.about-timeline .timeline-content h4 {
    margin-bottom: 10px;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.about-timeline .timeline-content p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-timeline .timeline::before {
        left: 20px;
    }

    .about-timeline .timeline-item,
    .about-timeline .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }

    .about-timeline .timeline-date {
        left: 0;
        transform: none;
    }

    .about-timeline .timeline-content,
    .about-timeline .timeline-item:nth-child(odd) .timeline-content,
    .about-timeline .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* ========================================
   Search Page
   ======================================== */
.search-section {
    padding: 40px 0;
    background-color: var(--bg-light);
}

.search-form-large {
    display: flex;
    gap: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-large {
    flex: 1;
    padding: 15px 20px;
    font-size: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
}

.search-input-large:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    padding: 60px 0;
}

.results-header {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.results-header h2 {
    margin-bottom: 10px;
}

.results-section {
    margin-bottom: 40px;
}

.results-section h3 {
    margin-bottom: 20px;
    color: var(--text-light);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary-color);
}

.result-item h4 {
    margin-bottom: 10px;
}

.result-item h4 a {
    color: var(--text-color);
}

.result-item h4 a:hover {
    color: var(--primary-color);
}

.result-excerpt {
    color: var(--text-light);
    margin-bottom: 10px;
}

.result-meta {
    display: flex;
    gap: 15px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 10px;
}

.no-results ul {
    display: inline-block;
    text-align: left;
    margin-top: 15px;
}

.no-results li {
    margin-bottom: 8px;
    color: var(--text-light);
}

/* Popular Searches */
.popular-searches {
    padding: 60px 0;
}

.search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.search-tag {
    padding: 10px 20px;
    background-color: var(--bg-light);
    border-radius: 25px;
    color: var(--text-color);
    transition: var(--transition);
}

.search-tag:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Quick Links */
.quick-links {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.quick-link-card {
    text-align: center;
    padding: 30px;
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.quick-link-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-link-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.quick-link-card h3 {
    margin-bottom: 10px;
    color: var(--text-color);
}

.quick-link-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Error Pages
   ======================================== */
.error-page {
    padding: 100px 0;
    text-align: center;
}

.error-code {
    font-size: 8rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-content h1 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.error-content > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 50px;
}

.error-suggestions {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    display: inline-block;
}

.error-suggestions h3 {
    margin-bottom: 15px;
}

.error-suggestions ul {
    list-style: none;
}

.error-suggestions li {
    margin-bottom: 10px;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: var(--bg-light);
    border-color: var(--bg-light);
}

/* Need Help Section */
.need-help,
.still-have-questions {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.help-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* System Requirements Preview */
.system-requirements-preview {
    padding: 60px 0;
    text-align: center;
    background-color: var(--bg-light);
}

.system-requirements-preview h2 {
    margin-bottom: 15px;
}

.system-requirements-preview p {
    color: var(--text-light);
    margin-bottom: 25px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #aaa;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
    color: #aaa;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .help-layout,
    .article-layout {
        grid-template-columns: 1fr;
    }
    
    .help-sidebar,
    .article-sidebar {
        position: static;
        order: -1;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-date {
        left: 0;
        transform: none;
    }
    
    .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--bg-color);
        margin: 0;
        padding: 20px;
        box-shadow: var(--shadow);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 15px;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-search {
        display: none;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .page-hero h1 {
        font-size: 1.75rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .search-form-large {
        flex-direction: column;
    }
    
    .download-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .download-meta {
        flex-direction: column;
        gap: 5px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .features,
    .download-section,
    .help-section,
    .cta-section {
        padding: 60px 0;
    }
    
    .features-grid,
    .download-grid,
    .help-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* ========================================
   Docs Page
   ======================================== */
.docs-nav-section {
    background-color: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.docs-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.docs-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.docs-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.docs-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.tab-icon {
    font-size: 1.2rem;
}

.docs-content-section {
    padding: 40px 0 60px;
}

.docs-panel {
    display: none;
}

.docs-panel.active {
    display: block;
}

.docs-panel h2 {
    font-size: 1.75rem;
    margin-bottom: 30px;
    color: var(--text-color);
}

.docs-panel h3 {
    font-size: 1.4rem;
    margin: 30px 0 20px;
    color: var(--text-color);
}

.docs-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.docs-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.docs-category-list {
    list-style: none;
}

.docs-category-list li {
    margin-bottom: 8px;
}

.docs-category-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.docs-category-list a:hover,
.docs-category-list a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.docs-articles-grid {
    display: grid;
    gap: 20px;
}

.docs-article-card {
    padding: 25px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.docs-article-card:hover {
    box-shadow: var(--shadow);
}

.docs-article-card .article-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.875rem;
}

.docs-article-card .article-category {
    color: var(--primary-color);
    font-weight: 500;
}

.docs-article-card .article-date {
    color: var(--text-muted);
}

.docs-article-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    margin-top: 0;
}

.docs-article-card h3 a {
    color: var(--text-color);
}

.docs-article-card h3 a:hover {
    color: var(--primary-color);
}

.docs-article-card .article-excerpt {
    color: var(--text-light);
    margin-bottom: 15px;
}

.docs-article-card .article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.faq-content {
    max-width: 800px;
}

.faq-category {
    margin-bottom: 40px;
}

.faq-category h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.versions-content .lts-versions {
    margin-bottom: 50px;
}

.versions-content .versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.versions-content .version-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    position: relative;
}

.versions-content .version-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--secondary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
}

.versions-content .version-card h4 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.versions-content .version-name {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.versions-content .version-dates {
    margin-bottom: 20px;
}

.versions-content .version-dates p {
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.requirements-content .platform-requirements {
    margin-bottom: 40px;
}

.requirements-content .platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.requirements-content .platform-icon-large {
    font-size: 2.5rem;
}

.requirements-content .platform-header h3 {
    margin: 0;
}

.requirements-content .requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.requirements-content .requirement-item {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
}

.requirements-content .requirement-item h4 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.requirements-content .requirement-item ul {
    list-style: none;
}

.requirements-content .requirement-item li {
    margin-bottom: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Tutorials Page
   ======================================== */
.featured-tutorials {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.featured-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.featured-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    padding: 25px;
}

.tutorials-content {
    padding: 60px 0;
}

.tutorials-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

.tutorials-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tutorials-sidebar .sidebar-section {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.tutorials-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.filter-list {
    list-style: none;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-list a {
    display: block;
    padding: 8px 12px;
    color: var(--text-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.filter-list a:hover,
.filter-list a.active {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.tutorial-card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
}

.tutorial-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.tutorial-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.tutorial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tutorial-card-content {
    padding: 20px;
}

.tutorial-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.8rem;
}

.tutorial-category {
    color: var(--primary-color);
    font-weight: 500;
}

.tutorial-difficulty {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
}

.tutorial-difficulty.beginner {
    background-color: #d4edda;
    color: #155724;
}

.tutorial-difficulty.intermediate {
    background-color: #fff3cd;
    color: #856404;
}

.tutorial-difficulty.advanced {
    background-color: #f8d7da;
    color: #721c24;
}

.tutorial-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.tutorial-card h3 a {
    color: var(--text-color);
}

.tutorial-card h3 a:hover {
    color: var(--primary-color);
}

.tutorial-summary {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.tutorial-stats {
    display: flex;
    gap: 15px;
}

/* Tutorial Detail Page */
.tutorial-header-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
}

.tutorial-meta-header {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.tutorial-meta-header .tutorial-category {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tutorial-meta-header .tutorial-difficulty {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.tutorial-stats-header {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.tutorial-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.tag {
    background-color: rgba(255,255,255,0.2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.tutorial-content-section {
    padding: 60px 0;
}

.tutorial-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
}

.tutorial-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.tutorial-cover {
    margin-bottom: 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tutorial-cover img {
    width: 100%;
    height: auto;
}

.tutorial-content h2 {
    font-size: 1.75rem;
    margin: 40px 0 20px;
    color: var(--text-color);
}

.tutorial-content h3 {
    font-size: 1.4rem;
    margin: 30px 0 15px;
}

.tutorial-content p {
    margin-bottom: 20px;
}

.tutorial-content pre {
    background-color: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 20px;
}

.tutorial-content code {
    background-color: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.tutorial-content pre code {
    background-color: transparent;
    padding: 0;
}

.tutorial-actions {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.tutorial-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.nav-prev,
.nav-next {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-prev:hover,
.nav-next:hover {
    background-color: var(--primary-light);
}

.nav-label {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-title {
    font-weight: 500;
    color: var(--text-color);
}

.tutorial-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.tutorial-sidebar .sidebar-box {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.tutorial-sidebar h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.tutorial-toc ul {
    list-style: none;
}

.tutorial-toc li {
    margin-bottom: 8px;
}

.tutorial-toc a {
    color: var(--text-light);
    font-size: 0.9rem;
    display: block;
    padding: 5px 0;
}

.tutorial-toc a:hover {
    color: var(--primary-color);
}

.tutorial-toc a.h3 {
    padding-left: 15px;
}

.related-list {
    list-style: none;
}

.related-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.related-list li:last-child {
    border-bottom: none;
}

.related-list a {
    color: var(--text-color);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 5px;
}

.related-list a:hover {
    color: var(--primary-color);
}

.related-category {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 5px;
}

.quick-links-list {
    list-style: none;
}

.quick-links-list li {
    margin-bottom: 10px;
}

.quick-links-list a {
    color: var(--text-light);
}

.quick-links-list a:hover {
    color: var(--primary-color);
}

/* Comments Section */
.comments-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

.comments-section h2 {
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.comment-form-wrapper {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.comment-form-wrapper h3 {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comment-form .form-group {
    margin-bottom: 20px;
}

.comment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.comment-form textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.comment-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.author-name {
    font-weight: 500;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
}

.comment-actions {
    display: flex;
    gap: 15px;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.btn-reply:hover {
    text-decoration: underline;
}

.reply-form-wrapper {
    margin-top: 20px;
    padding: 20px;
    background-color: var(--bg-color);
    border-radius: var(--radius);
}

.reply-form .form-row {
    grid-template-columns: 1fr 1fr;
}

.replies-list {
    margin-top: 20px;
    margin-left: 30px;
    padding-left: 20px;
    border-left: 3px solid var(--border-color);
}

.reply-item {
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 15px;
}

.reply-item:last-child {
    margin-bottom: 0;
}

.no-comments {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.back-to-tutorials {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

/* ========================================
   Utility Classes
   ======================================== */
.text-center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ========================================
   Forum Post Form Styles
   ======================================== */

.post-form-section {
    padding: 40px 0 60px;
}

.post-form-section .container {
    max-width: 800px;
}

.post-form {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 30px;
}

.post-form .form-group {
    margin-bottom: 20px;
}

.post-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.post-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.post-form input,
.post-form textarea,
.post-form select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.post-form input:focus,
.post-form textarea:focus,
.post-form select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.post-form textarea {
    resize: vertical;
    min-height: 200px;
    font-family: inherit;
    line-height: 1.6;
}

.post-form select {
    cursor: pointer;
}

.post-form .form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.posting-tips {
    background-color: var(--primary-light);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.posting-tips h3 {
    margin-bottom: 15px;
    color: var(--primary-dark);
    font-size: 1.1rem;
}

.posting-tips ul {
    list-style: none;
    padding: 0;
}

.posting-tips li {
    padding: 8px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-light);
}

.posting-tips li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ========================================
   Forum List Styles
   ======================================== */

.forum-content {
    padding: 40px 0 60px;
}

.forum-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
}

.forum-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.forum-sidebar .sidebar-section {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.forum-sidebar h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.forum-sidebar .filter-list {
    list-style: none;
    padding: 0;
}

.forum-sidebar .filter-list li {
    margin-bottom: 8px;
}

.forum-sidebar .filter-list a {
    display: block;
    padding: 10px 15px;
    border-radius: var(--radius);
    color: var(--text-light);
    transition: var(--transition);
}

.forum-sidebar .filter-list a:hover,
.forum-sidebar .filter-list a.active {
    background-color: var(--primary-color);
    color: white;
}

.forum-stats {
    text-align: center;
    padding: 15px;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Posts List */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post-item {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    border-left: 4px solid transparent;
    transition: var(--transition);
}

.post-item:hover {
    box-shadow: var(--shadow-lg);
    border-left-color: var(--primary-color);
}

.post-item.pinned {
    background-color: var(--primary-light);
    border-left-color: var(--primary-color);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.post-badge {
    background-color: var(--secondary-color);
    color: white;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.post-badge.closed {
    background-color: var(--text-muted);
}

.post-category {
    color: var(--primary-color);
    font-weight: 500;
}

.post-time {
    color: var(--text-muted);
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-title a {
    color: var(--text-color);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-summary {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 15px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.post-author {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-stats {
    display: flex;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* ========================================
   Forum Detail Page Styles
   ======================================== */

.post-header-section {
    background-color: var(--primary-light);
    padding: 50px 0;
}

.post-meta-header {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    align-items: center;
}

.post-header-section h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.post-stats-header {
    display: flex;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.95rem;
    flex-wrap: wrap;
}

.post-content-section {
    padding: 40px 0 60px;
}

.post-content-section .post-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 30px;
}

.post-body {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.post-body .post-content {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.post-body .post-content p {
    margin-bottom: 15px;
}

/* Replies Section */
.replies-section {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
}

.replies-section h2 {
    font-size: 1.3rem;
    margin-bottom: 25px;
}

.reply-form-wrapper {
    background-color: white;
    padding: 25px;
    border-radius: var(--radius);
    margin-bottom: 30px;
}

.reply-form-wrapper h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.reply-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.reply-form .form-group {
    margin-bottom: 15px;
}

.reply-form input,
.reply-form textarea {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.95rem;
}

.reply-form textarea {
    resize: vertical;
    min-height: 100px;
}

.closed-notice {
    background-color: var(--bg-light);
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    border-radius: var(--radius);
    margin-bottom: 30px;
}

/* Replies List */
.replies-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reply-item {
    background-color: white;
    padding: 20px;
    border-radius: var(--radius);
}

.reply-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.reply-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reply-author .author-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.reply-author .author-name {
    font-weight: 500;
}

.reply-time {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.reply-content {
    line-height: 1.7;
    color: var(--text-color);
}

.reply-actions {
    margin-top: 15px;
}

.btn-reply {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0;
}

.btn-reply:hover {
    text-decoration: underline;
}

/* Child Replies */
.child-replies {
    margin-top: 15px;
    margin-left: 20px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.child-reply {
    padding: 12px 0;
}

.child-reply-header {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.child-reply-content {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* Nested Reply Form */
.nested-reply-form {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.no-replies {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.post-sidebar .sidebar-box {
    background-color: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
}

.post-sidebar h4 {
    font-size: 1rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.post-info-list {
    list-style: none;
    padding: 0;
}

.post-info-list li {
    padding: 8px 0;
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.post-info-list span:first-child {
    color: var(--text-muted);
}

.quick-links-list {
    list-style: none;
    padding: 0;
}

.quick-links-list li {
    margin-bottom: 8px;
}

.quick-links-list a {
    color: var(--primary-color);
    font-size: 0.95rem;
}

.quick-links-list a:hover {
    text-decoration: underline;
}

/* Back to Forum */
.back-to-forum {
    padding-bottom: 60px;
}

/* ========================================
   About Page Styles
   ======================================== */

.about-site-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.about-site-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.site-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
}

.site-description p {
    margin-bottom: 20px;
}

.site-description ul {
    margin: 20px 0;
    padding-left: 30px;
}

.site-description li {
    margin-bottom: 12px;
    line-height: 1.6;
}

.site-description strong {
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--text-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--bg-light);
    padding: 35px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.contact-card p {
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-card a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* ========================================
   API Docs Styles
   ======================================== */

.api-content {
    max-width: 1000px;
}

.api-intro {
    background-color: var(--primary-light);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
    border-left: 4px solid var(--primary-color);
}

.api-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0;
}

.api-versions {
    margin-bottom: 50px;
}

.api-versions h3,
.api-categories h3,
.api-resources h3 {
    font-size: 1.4rem;
    margin-bottom: 25px;
    color: var(--text-color);
}

.api-versions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.api-version-card {
    background-color: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.api-version-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.api-version-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.api-version-header h4 {
    font-size: 1.2rem;
    color: var(--text-color);
}

.api-badge {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.api-badge.latest {
    background-color: var(--secondary-color);
    color: white;
}

.api-badge.lts {
    background-color: var(--primary-color);
    color: white;
}

.api-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.api-categories {
    margin-bottom: 50px;
}

.api-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.api-category-card {
    background-color: var(--bg-light);
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.api-category-card:hover {
    box-shadow: var(--shadow);
}

.api-category-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.api-category-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
}

.api-category-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

.api-resources-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.api-resource-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.api-resource-link:hover {
    background-color: var(--primary-light);
}

.api-resource-link .resource-icon {
    font-size: 1.5rem;
}

.api-resource-link .resource-text {
    font-size: 1.05rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
    .forum-layout {
        grid-template-columns: 1fr;
    }

    .forum-sidebar {
        position: static;
        order: -1;
    }

    .post-footer {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .post-content-section .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        position: static;
        order: -1;
    }

    .post-header-section h1 {
        font-size: 1.5rem;
    }

    .post-stats-header {
        gap: 12px;
    }

    .reply-form .form-row {
        grid-template-columns: 1fr;
    }
}