/* ---------- Global reset & fonts ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    background-color: #000;
    color: #ccc;
    line-height: 1.4;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 10px;
}

/* ---------- Main container: side + main ---------- */
.site-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 900px;
    min-height: 800px;
    background: #0a0a0a;
    border: 1px solid #222;
}

/* ---------- Left sidebar (navigation) ---------- */
.sidebar {
    flex: 0 0 145px;
    background: #0a0a0a;
    background-image: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
    border-right: 1px solid #222;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-side {
    width: 120px;
    height: 120px;
    background: #111 url('/images/xfusion-logo.png') no-repeat center center;
    background-size: contain;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.25);
}

.logo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 12px;
}

.nav-label {
    width: 100%;
    text-align: center;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ccff;
    padding: 5px 0;
    border-bottom: 1px solid #333;
    margin-bottom: 10px;
}

.nav-list {
    list-style: none;
    width: 100%;
}

.nav-list li {
    width: 100%;
}

.nav-list a {
    display: block;
    padding: 8px 10px;
    color: #aaa;
    text-decoration: none;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.2s, background 0.2s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #fff;
    background: #1a1a1a;
    border-left: 2px solid #00ccff;
    padding-left: 8px;
}

/* ---------- Right column (main content) ---------- */
.main-column {
    flex: 1 1 auto;
    background: #0a0a0a;
    background-image: linear-gradient(180deg, #111 0%, #000 100%);
    padding: 10px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

/* ---------- Header with logo & login ---------- */
.site-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #222;
}

.logo-main {
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 28px;
    font-weight: bold;
    color: #00ccff;
    text-shadow: 0 0 8px rgba(0, 204, 255, 0.6);
    letter-spacing: 1px;
}

.logo-main small {
    display: block;
    font-size: 9px;
    color: #888;
    letter-spacing: 3px;
    font-weight: normal;
    text-shadow: none;
}

.login-box {
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 8px 10px;
    font-size: 10px;
    color: #aaa;
    min-width: 200px;
}

.login-box label {
    display: block;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ccff;
    font-size: 9px;
}

.login-box input {
    width: 100%;
    padding: 4px 6px;
    margin-bottom: 6px;
    background: #000;
    border: 1px solid #444;
    color: #ddd;
    font-size: 11px;
}

.login-box button {
    width: 100%;
    padding: 5px;
    background: #00ccff;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.login-box button:hover {
    background: #33ddff;
}

/* ---------- Section headings ---------- */
.section-title {
    display: flex;
    align-items: center;
    background: #111;
    border-left: 3px solid #00ccff;
    padding: 5px 10px;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #00ccff;
    margin-bottom: 8px;
}

/* ---------- Features panel ---------- */
.features-panel {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 10px;
}

.features-menu {
    flex: 0 0 160px;
    background: #111;
    border: 1px solid #333;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.features-menu .menu-header {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    padding-bottom: 5px;
    border-bottom: 1px solid #333;
    margin-bottom: 5px;
}

.features-menu a {
    display: block;
    padding: 3px 5px;
    font-size: 10px;
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.features-menu a:hover {
    color: #00ccff;
    background: #1a1a1a;
}

.features-content {
    flex: 1 1 200px;
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    font-size: 11px;
    color: #ccc;
}

.features-content h3 {
    font-size: 12px;
    color: #00ccff;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-content p {
    margin-bottom: 8px;
}

.features-content .next-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 10px;
    color: #00ccff;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.features-content .next-link:hover {
    text-decoration: underline;
}

/* ---------- Bottom panels: news + coming soon ---------- */
.bottom-panels {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.panel {
    flex: 1 1 240px;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 10px;
    display: flex;
    flex-direction: column;
}

.panel.news {
    flex: 1 1 60%;
}

.panel.coming-soon {
    flex: 1 1 35%;
}

.news-list {
    list-style: none;
    font-size: 10px;
    color: #aaa;
    max-height: 180px;
    overflow-y: auto;
    padding-right: 4px;
}

.news-list li {
    padding: 2px 0;
    border-bottom: 1px dotted #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-list li span.date {
    color: #00ccff;
    margin-right: 6px;
    font-family: monospace;
}

.coming-soon-text {
    font-size: 10px;
    color: #aaa;
    line-height: 1.5;
}

/* ---------- Footer ---------- */
.site-footer {
    text-align: center;
    font-size: 9px;
    color: #555;
    padding-top: 10px;
    border-top: 1px solid #222;
    letter-spacing: 1px;
}

/* ---------- Responsive adjustments ---------- */
@media (max-width: 700px) {
    .site-wrapper {
        flex-direction: column;
        min-height: auto;
    }

    .sidebar {
        flex: 0 0 auto;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        padding: 5px;
        border-right: none;
        border-bottom: 1px solid #222;
    }

    .logo-side {
        width: 50px;
        height: 50px;
        margin-bottom: 0;
        margin-right: 10px;
        border-radius: 8px;
    }

    .logo-side img {
        border-radius: 8px;
    }

    .nav-label {
        display: none;
    }

    .nav-list {
        display: flex;
        flex-wrap: wrap;
        width: auto;
        flex: 1;
    }

    .nav-list li {
        width: auto;
    }

    .nav-list a {
        border-bottom: none;
        padding: 5px 8px;
        font-size: 10px;
    }

    .nav-list a:hover,
    .nav-list a.active {
        border-left: none;
        border-bottom: 2px solid #00ccff;
        padding-left: 8px;
    }

    .features-panel {
        flex-direction: column;
    }

    .features-menu {
        flex: 1 1 auto;
    }

    .panel.news,
    .panel.coming-soon {
        flex: 1 1 100%;
    }

    .logo-main {
        font-size: 22px;
    }

    .login-box {
        min-width: 100%;
    }
}

@media (max-width: 400px) {
    .main-column {
        padding: 8px;
    }

    .logo-main {
        font-size: 18px;
    }

    .nav-list a {
        font-size: 9px;
        padding: 4px 6px;
    }
}

/* ---------- Logo links (reset) ---------- */
a.logo-side,
a.logo-main {
    text-decoration: none;
    color: inherit;
    display: block;
}

a.logo-main:hover {
    text-decoration: none;
}

/* ---------- Gallery thumbnails grid ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    background: #0a0a0a;
    border: 1px solid #222;
    padding: 10px;
}

.gallery-thumb {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #aaa;
    background: #111;
    border: 1px solid #333;
    padding: 5px;
    transition: border-color 0.2s, color 0.2s;
}

.gallery-thumb:hover {
    border-color: #00ccff;
    color: #fff;
}

.gallery-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    margin-bottom: 4px;
}

.gallery-thumb span {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

/* ---------- Footer nav ---------- */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.footer-nav a {
    color: #00ccff;
    text-decoration: none;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav a:hover {
    text-decoration: underline;
}

.footer-copy {
    font-size: 9px;
    color: #555;
    letter-spacing: 1px;
}

@media (max-width: 700px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* ---------- Contact form ---------- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 15px;
    max-width: 480px;
}

.contact-form label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #00ccff;
}

.contact-form input,
.contact-form textarea {
    background: #000;
    border: 1px solid #444;
    color: #ddd;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    padding: 6px 8px;
    width: 100%;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #00ccff;
}

.contact-form button {
    align-self: flex-start;
    padding: 6px 18px;
    background: #00ccff;
    border: none;
    color: #000;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
}

.contact-form button:hover {
    background: #33ddff;
}

/* ---------- Sitemap list ---------- */
.sitemap-list {
    list-style: none;
    margin: 8px 0 16px 0;
    padding: 0;
    columns: 2;
    column-gap: 20px;
}

.sitemap-list li {
    padding: 4px 0;
    border-bottom: 1px dotted #1a1a1a;
    break-inside: avoid;
    font-size: 11px;
    line-height: 1.5;
}

.sitemap-list li a {
    color: #aaa;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 10px;
    display: block;
    padding: 2px 0;
    transition: color 0.2s, background 0.2s;
}

.sitemap-list li a:hover {
    color: #00ccff;
    background: #1a1a1a;
    padding-left: 4px;
}

@media (max-width: 700px) {
    .sitemap-list {
        columns: 1;
    }

    .sitemap-list li {
        font-size: 10px;
    }

    .sitemap-list li a {
        font-size: 9px;
    }
}

/* ---------- Gallery grid (thumbs) ---------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.gallery-grid .gallery-item {
    background: #111;
    border: 1px solid #333;
    border-radius: 6px;
    overflow: hidden;
    padding: 5px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-grid .gallery-item:hover {
    border-color: #00ccff;
    box-shadow: 0 0 8px rgba(0, 204, 255, 0.25);
}

.gallery-grid .gallery-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 4px;
    background: #000;
}

/* ---------- Gallery container ---------- */
.container {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
}

.galleries {
    width: 100%;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .gallery-grid .gallery-item {
        padding: 4px;
    }
}

@media (max-width: 380px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px;
    }
}


/* ---------- Related galleries grid (with captions) ---------- */
.gallery-grid .gallery-item .caption {
    display: block;
    font-size: 10px;
    text-align: center;
    color: #aaa;
    margin-top: 4px;
    padding: 2px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gallery-grid .gallery-item:hover .caption {
    color: #00ccff;
}



/* ---------- Gallery card with caption (related galleries) ---------- */
.gallery-grid .gallery-item .card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.gallery-grid .gallery-item .card-title {
    display: block;
    font-size: 10px;
    line-height: 1.3;
    text-align: center;
    color: #aaa;
    margin-top: 4px;
    padding: 2px 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 2.6em;
}

.gallery-grid .gallery-item:hover .card-title {
    color: #00ccff;
}

.news-list li a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.2s, background 0.2s;
    display: block;
    padding: 2px 0;
}

.news-list li a:hover {
    color: #00ccff;
    background: #1a1a1a;
    padding-left: 4px;
}

/* ---------- Gallery H1 (page headings) ---------- */
.gallery-h1 {
    display: block;
    text-align: center;
    margin: 16px auto 20px auto;
    padding: 12px 16px;
    max-width: 760px;
    font-family: 'Trebuchet MS', Arial, sans-serif;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.4;
    letter-spacing: 0.5px;
    color: #eaeaea;
    background: #111;
    border-left: 3px solid #00ccff;
    border-right: 3px solid #00ccff;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.15);
    text-transform: none;
    word-wrap: break-word;
}

@media (max-width: 700px) {
    .gallery-h1 {
        font-size: 15px;
        margin: 10px auto 14px auto;
        padding: 10px 12px;
    }
}