/* ==========================================================================
   JAEGER THEME - Architecture Casper 6.x
   Classes 100% compatibles pour mises à jour futures
   ========================================================================== */

/* === 1. IMPORTS === */
@import "vars.css";

/* === POST FEED GRID === */
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    padding: 40px 0;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* === 2. BASE CASPER === */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    color: var(--color-darkgrey);
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6em;
    font-weight: 400;
    font-style: normal;
    background: #fff;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.viewport {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex-grow: 1;
}

/* === 3. SITE HEADER (Ton design conservé) === */
.site-header {
    position: relative;
    color: #fff;
    background: var(--ghost-accent-color, #15171A);
}

.site-header-cover {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.site-header-content {
    position: relative;
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(12vmin + 44px) 4vmin 12vmin;
    min-height: 60vh;
    text-align: center;
}

.has-cover .site-header-content {
    min-height: 100vh;
    background: rgba(0,0,0,0.2);
}

/* Titre et Description */
.site-title {
    margin: 0 0 10px;
    font-size: clamp(4rem, 8vw, 9rem);
    font-weight: 700;
    font-family: 'FetteUNZFraktur', var(--font-sans);
    color: #FFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.site-description {
    margin: 0 0 2rem;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 400;
    opacity: 0.9;
    font-family: var(--font-sans);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* === 4. NAVIGATION (Casper gh-head) === */
.gh-head {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 200;
    padding: 2rem 4vmin;
}

.gh-head.overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, transparent 100%);
}

.gh-head-brand {
    display: inline-block;
}

.gh-head-brand img {
    display: block;
    max-height: 50px;
    width: auto;
}

.gh-head-menu {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.gh-head-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.gh-head-menu a:hover {
    opacity: 0.8;
}

/* === 5. MINECRAFT STATUS (Ton widget custom) === */
.header-mc-status {
    margin: 2rem 0;
}

#mcStatus {
    font-size: 2rem;
    color: #FCE74C;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.online { color: #5CB85C; }
.offline { color: #D9534F; }

/* === 6. HERO CREDITS (Ton texte bas de cover) === */
.hero-credits {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 150;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    padding: 0 20px;
}

.hero-credits a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px dotted rgba(255,255,255,0.4);
    transition: border-color 0.3s;
}

.hero-credits a:hover {
    border-bottom-color: #fff;
}

/* === 7. SCROLL DOWN ARROW === */
.scroll-down {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%) rotate(-90deg);
    z-index: 150;
    display: block;
    width: 34px;
    height: 34px;
    font-size: 34px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
    animation: bounce 4s 2s infinite;
}

.scroll-down:hover {
    color: #fff;
    animation: none;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(-90deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(-90deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(-90deg);
    }
}

/* === 8. CONTENT CONTAINERS (Casper Standard) === */
.outer {
    position: relative;
    padding: 0 max(4vmin, 20px);
}

.inner {
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

/* === 9. POST FEED GRID === */
.post-feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4vmin;
    padding: 4vmin 0;
}

.post-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    overflow: hidden;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.post-card-image-link {
    display: block;
    overflow: hidden;
}

.post-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--color-lightgrey);
}

.post-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

.post-card-content-link {
    flex-grow: 1;
    display: block;
    color: inherit;
    text-decoration: none;
}

.post-card-tags {
    display: block;
    margin-bottom: 8px;
    color: var(--color-midgrey);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.post-card-title {
    margin: 0 0 10px;
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1.3em;
    color: var(--color-darkgrey);
}

.post-card-excerpt {
    margin: 0 0 15px;
    font-size: 1.6rem;
    line-height: 1.5em;
    color: var(--color-midgrey);
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    color: var(--color-midgrey);
    font-weight: 500;
}

/* === 10. FOOTER === */
.site-footer {
    padding: 4vmin 0;
    color: var(--color-midgrey);
    background: var(--color-lightgrey);
}

.site-footer .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

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

.site-footer-nav {
    display: flex;
    gap: 2rem;
}

.site-footer-nav a {
    color: var(--color-midgrey);
    text-decoration: none;
    font-size: 1.4rem;
}

/* === 11. RESPONSIVE === */
@media (max-width: 767px) {
    .site-title {
        font-size: 4rem;
    }
    
    .site-description {
        font-size: 1.8rem;
    }
    
    .post-feed {
        grid-template-columns: 1fr;
    }
    
    .hero-credits {
        font-size: 1.1rem;
        bottom: 10px;
    }
    
    .scroll-down {
        display: none;
    }
}

/* === 12. DARK MODE === */
@media (prefers-color-scheme: dark) {
    html.auto-color {
        --color-darkgrey: #e6e6e6;
        --color-midgrey: #a0a0a0;
        --color-lightgrey: #1a1a1a;
        background: #000;
    }
    
    html.auto-color body {
        background: #000;
        color: #e6e6e6;
    }
    
    html.auto-color .post-card {
        background: #1a1a1a;
    }
    
    html.auto-color .post-card-title {
        color: #fff;
    }
}

html.dark-mode {
    --color-darkgrey: #e6e6e6;
    --color-midgrey: #a0a0a0;
    --color-lightgrey: #1a1a1a;
    background: #000;
}

html.dark-mode body {
    background: #000;
    color: #e6e6e6;
}

html.dark-mode .post-card {
    background: #1a1a1a;
}

html.dark-mode .post-card-title {
    color: #fff;
}
