/*
Theme Name: Weekend Folio Dark v9
Author: Hamza
Description: Final Hardcoded Links
Version: 9.0
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;500&family=Fraunces:opsz,wght@9..144,300;400;600&display=swap');

:root {
    --bg-deep: #0f0d0b;
    --bg-panel: #1a1816;
    --text-main: #e8e6e3;
    --text-muted: #cccccc; 
    --accent-shrimp: #d48c70;
    --font-display: 'Fraunces', serif;
    --font-ui: 'DM Sans', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, .site-content, article, .single-post-container, .layout-grid {
    background-color: #0f0d0b !important;
    color: var(--text-main) !important;
}

.wp-block-group, .wp-block-column, .entry-content, .article-content, div {
    background-color: transparent !important;
}

body {
    font-family: var(--font-ui);
    overflow-x: hidden;
    font-size: 18px;
    line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    background: rgba(15, 13, 11, 0.95); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.brand-box {
    border: 1px solid white;
    padding: 8px 20px;
    border-radius: 50px;
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
    color: white;
    white-space: nowrap; 
}

nav { display: flex; gap: 24px; }
nav a {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.8;
    color: white;
}
nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

/* LAYOUT GRID (HOMEPAGE) */
.layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 100vh;
    padding-top: 80px; 
    gap: 1px;
}

.block {
    position: relative;
    min-height: 80vh;
    overflow: hidden;
    background: var(--bg-panel) !important; 
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.block:first-child {
    grid-column: 1 / -1;
    min-height: 90vh;
    margin-top: -80px;
}

.block-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.block:hover .block-bg { transform: scale(1.03); opacity: 0.4; }

.block-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    max-width: 650px;
    background: linear-gradient(to top, #0f0d0b 0%, transparent 100%);
}

h2 {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 12px;
    line-height: 1.1;
    color: white;
}

p.excerpt {
    color: #ccc;
    margin-bottom: 24px;
    font-size: 14px;
    max-width: 400px;
}

.btn-scallop {
    display: inline-flex;
    height: 36px;
    padding: 0 20px;
    border: 1px solid white;
    border-radius: 20px;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.2em;
    align-items: center;
    color: white;
}
.btn-scallop:hover { background: white; color: black; }

/* SINGLE POST & PAGE CONTAINER */
.single-post-container {
    max-width: 700px;
    margin: 100px auto 60px;
    padding: 0 24px;
    background: transparent !important; 
}

.article-header {
    text-align: center;
    margin-bottom: 30px; 
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.article-title {
    font-family: var(--font-display);
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #ffffff;
}

.article-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-shrimp);
}

.article-content {
    font-size: 20px; 
    line-height: 1.6;
    color: #eeeeee; 
}
.article-content p { margin-bottom: 20px; }
.article-content p:empty { display: none; }
.article-content h2 { 
    margin-top: 40px; 
    margin-bottom: 15px;
    font-size: 1.8rem; 
    color: #ffffff;
    font-weight: 400;
}
.article-content img { margin: 25px 0; border-radius: 4px; width: 100%; }
.article-content ul { margin-bottom: 24px; padding-left: 20px; color: #cccccc;}

/* WP Buttons override */
.wp-block-button__link {
    background: transparent !important;
    border: 1px solid var(--accent-shrimp) !important;
    border-radius: 50px !important;
    color: var(--accent-shrimp) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 30px !important;
}
.wp-block-button__link:hover {
    background: var(--accent-shrimp) !important;
    color: #000 !important;
}

/* FOOTER */
.footer-grid {
    grid-column: 1 / -1;
    padding: 60px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: #888;
    font-size: 12px;
}

@media (max-width: 768px) {
    header { flex-direction: column; gap: 16px; padding: 20px; }
    nav { gap: 16px; flex-wrap: wrap; justify-content: center; }
    .layout-grid { grid-template-columns: 1fr; padding-top: 130px; }
    .block:first-child { margin-top: -130px; min-height: 60vh; }
    h2 { font-size: 2rem; }
    .article-title { font-size: 2.2rem; }
}
