/*
Theme Name: Sous le Soleil Exactement
Author: Florian Chéraud
Description: Minimal fullscreen landing page with a solar system visualization and matching article layout.
Version: 1.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sous-le-soleil
*/

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #000000;
    scrollbar-width: none; /* Firefox: hide scrollbar */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* WebKit: hide scrollbar */
}

body.landing-page {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    background: #ffffff;
    transform: translateY(0);
    transition: transform 0.25s ease;
    box-sizing: border-box;
}

.site-header.header-hidden {
    transform: translateY(-100%);
}

.header-left,
.header-center,
.header-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.header-left {
    justify-content: flex-start;
    font-size: 14px;
    letter-spacing: 0.06em;
}

#utc-date-time {
    white-space: nowrap;
}

.header-center {
    justify-content: center;
    text-align: center;
}

.header-center .site-title-link {
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
    display: inline-block;
}

.header-right {
    justify-content: flex-end;
    font-size: 18px;
}

.header-right a.header-help {
    text-decoration: none;
}

.site-main {
    padding-top: 60px;
    box-sizing: border-box;
    min-height: 100vh;
}

/* Landing page: fullscreen visualization, no scroll */
body.landing-page .site-main {
    padding-top: 0;
    height: 100vh;
    min-height: 100vh;
    overflow: hidden;
}

body.landing-page .landing-wrapper {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    padding-top: 60px; /* header overlay */
}

.solar-system-container {
    position: relative;
    flex: 1;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
}

/* Canvas fills available space on landing */
body.landing-page .solar-system-container canvas {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
}

.planet-label {
    position: absolute;
    font-style: italic;
    font-size: 12px;
    transform: translate(-50%, -120%);
    pointer-events: none;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s linear;
}

.bottom-links {
    width: 100%;
    text-align: center;
    padding: 12px 16px 24px;
    box-sizing: border-box;
}

.article-links {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.article-link {
    font-size: 14px;
    white-space: nowrap;
}

.single-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    box-sizing: border-box;
    position: relative;
}

.single-title {
    font-size: 26px;
    margin-bottom: 24px;
    font-weight: bold;
}

.single-content {
    font-size: 16px;
    line-height: 1.6;
}

.scroll-indicator {
    position: fixed;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 900;
}

.scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1px solid #000000;
    background: transparent;
}

.scroll-dot.active {
    background: #000000;
}

.site-footer {
    text-align: center;
    padding: 24px 16px 40px;
    box-sizing: border-box;
}

.index-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 24px 120px;
    box-sizing: border-box;
}

.index-content article {
    margin-bottom: 32px;
}

.index-content h1 {
    font-size: 22px;
    margin-bottom: 8px;
}

.index-content .entry-content {
    font-size: 14px;
}

/* Intro animation: header and bottom-links appear after solar system intro */
body.landing-page .site-header,
body.landing-page .bottom-links {
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.landing-page.intro-complete .site-header,
body.landing-page.intro-complete .bottom-links {
    opacity: 1;
}

@media (max-width: 768px) {
    .site-header {
        padding: 8px 12px;
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
    }

    .header-left,
    .header-center,
    .header-right {
        flex: none;
        width: 100%;
        justify-content: flex-start;
        margin-bottom: 4px;
    }

    .header-right {
        margin-bottom: 0;
    }

    .header-center {
        text-align: left;
    }

    .single-wrapper,
    .index-content {
        padding: 80px 16px 80px;
    }

    .scroll-indicator {
        left: 16px;
    }
}
