/* ========================================================
   Ultrolon Studio - Project Detail & Documentation Styles
   ======================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Jost', sans-serif;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #edf2fc;
    --secondary-color: #212121;
    --third-color: #fbb040;
    --third-hover: #e59b2b;
    --card-bg: #ffffff;
    --muted-color: #6c757d;
    --border-color: #e2e8f0;
    --code-bg: #181920;
    --code-border: #2a2c36;
    --code-text: #e6edf3;
    --code-keyword: #ff7b72;
    --code-string: #a5d6ff;
    --code-function: #d2a8ff;
    --code-comment: #8b949e;
}

body {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------------- Header & Navbar ---------------- */
header {
    padding: 12px 7.5%;
    width: 100%;
    background-color: var(--third-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    max-width: 1350px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    margin: 0 auto;
}

.logo img {
    width: 4rem;
    height: auto;
    display: block;
}

.items ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.items ul li {
    list-style: none;
}

.items ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease;
    padding: 6px 4px;
}

.items ul li a:hover,
.items ul li a.active {
    color: #212121;
}

#open {
    background: none;
    font-size: 30px;
    border: none;
    display: none;
    color: var(--primary-color);
    cursor: pointer;
}

#close {
    background: none;
    font-size: 30px;
    border: none;
    color: #3c3e47;
    cursor: pointer;
}

.openmenu {
    position: fixed;
    top: 0;
    right: -220px;
    height: 100vh;
    width: 220px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
}

.openmenu ul {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
}

.openmenu .items ul a {
    color: #3c3e47;
    font-weight: 700;
    font-size: 19px;
    text-decoration: none;
}

.openmenu .items ul a:hover,
.openmenu .items ul a.active {
    color: var(--third-color);
}

.openmenu ul li {
    padding-top: 15px;
    padding-left: 25px;
}

/* ---------------- Breadcrumbs & Project Hero ---------------- */
.project-hero-wrapper {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-color) 100%);
    border-bottom: 1px solid var(--border-color);
    padding: 40px 7.5% 50px;
}

.hero-container {
    max-width: 1350px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 25px;
}

.breadcrumb a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--third-color);
}

.breadcrumb-separator {
    color: #94a3b8;
}

.project-hero-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff8eb;
    border: 1px solid rgba(251, 176, 64, 0.4);
    color: #b45309;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.project-hero-main h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--secondary-color);
    margin-bottom: 16px;
}

.project-hero-main h1 span {
    color: var(--third-color);
}

.hero-tagline {
    font-size: 1.25rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 30px;
}

.hero-cta-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: var(--third-color);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 13px 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    border: none;
    box-shadow: 0 4px 14px rgba(251, 176, 64, 0.3);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-secondary {
    background-color: #fff;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 12px 24px;
    border-radius: 6px;
    border: 1.5px solid #d0d7de;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-secondary:hover {
    border-color: var(--third-color);
    color: var(--third-color);
    transform: translateY(-2px);
}

.hero-feature-card {
    background: #1e2029;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #2d3142;
    color: #fff;
}

.feature-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2d3142;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.feature-card-header .live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #4ade80;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #4ade80;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.meta-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    background: #272a38;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #363a4d;
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-item .stat-value {
    font-family: 'Poppins', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.stat-item .stat-value.gold {
    color: var(--third-color);
}

/* ---------------- Content & Documentation ---------------- */
.doc-content-wrapper {
    max-width: 1350px;
    margin: 0 auto;
    padding: 50px 7.5% 80px;
    width: 100%;
}

.doc-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 50px;
    align-items: start;
}

/* Sticky Sidebar */
.doc-sidebar {
    position: sticky;
    top: 90px;
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.doc-sidebar h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--secondary-color);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--third-color);
}

.doc-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.doc-nav-list a {
    color: #4b5563;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    padding: 6px 8px;
    border-radius: 6px;
}

.doc-nav-list a:hover {
    color: var(--third-color);
    background: #fff9f0;
    transform: translateX(4px);
}

/* Main Documentation Sections */
.doc-article {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.doc-section {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.doc-section h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 12px;
}

.doc-section h2 i {
    color: var(--third-color);
}

.doc-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #4b5563;
    margin-bottom: 20px;
}

/* Feature Grid in Docs */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.feature-box {
    background: var(--primary-color);
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 24px;
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    border-color: var(--third-color);
}

.feature-box .f-icon {
    font-size: 2rem;
    color: var(--third-color);
    margin-bottom: 12px;
}

.feature-box h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.feature-box p {
    font-size: 0.95rem;
    color: var(--muted-color);
    margin-bottom: 0;
    line-height: 1.55;
}

/* Code Snippet Box */
.code-block {
    background: var(--code-bg);
    border: 1px solid var(--code-border);
    border-radius: 10px;
    overflow: hidden;
    margin: 24px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.code-header {
    background: #111217;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--code-border);
}

.code-header span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #94a3b8;
}

.copy-btn {
    background: #272a38;
    border: 1px solid #363a4d;
    color: #cbd5e1;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: var(--third-color);
    color: #111;
    border-color: var(--third-color);
}

pre {
    padding: 20px;
    overflow-x: auto;
}

code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--code-text);
}

/* Callout Box */
.callout-box {
    background: #fff8eb;
    border-left: 4px solid var(--third-color);
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
    margin: 25px 0;
}

.callout-box h4 {
    font-family: 'Poppins', sans-serif;
    color: #92400e;
    font-size: 1.1rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.callout-box p {
    color: #78350f;
    font-size: 0.98rem;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Spec Table */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.spec-table th, .spec-table td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.spec-table th {
    background: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 0.95rem;
}

.spec-table td {
    font-size: 0.95rem;
    color: #4b5563;
}

.spec-table tr:hover td {
    background: #fdfbf7;
}

/* ---------------- Footer ---------------- */
footer {
    background-color: var(--third-color);
    width: 100%;
    margin-top: auto;
}

.foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1350px;
    margin: 0 auto;
    padding: 16px 7.5%;
}

.copyr p {
    color: #fff;
    font-size: 0.95rem;
}

.socialicons ul {
    gap: 18px;
    display: flex;
    list-style: none;
    margin-top: 6px;
}

.socialicons a {
    color: #fff;
    font-size: 1.4rem;
    transition: opacity 0.2s ease;
}

.socialicons a:hover {
    opacity: 0.8;
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.endlinks {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

.endlinks li a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    transition: opacity 0.2s ease;
}

.endlinks li a:hover {
    opacity: 0.8;
}

.arrow {
    font-size: 1.7rem;
    color: #fff;
    cursor: pointer;
}

/* ---------------- Responsive Styles ---------------- */
@media (max-width: 1024px) {
    .project-hero-main {
        grid-template-columns: 1fr;
    }

    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-sidebar {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    #open {
        display: block;
    }

    .items ul {
        display: none;
    }

    .foot {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .sociallinks {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .links {
        flex-direction: column;
    }

    .endlinks {
        justify-content: center;
    }

    .project-hero-main h1 {
        font-size: 2.1rem;
    }

    .doc-section {
        padding: 24px;
    }
}
