/*
Theme Name: Casaplatos Theme
Author: Pepe Reis
Description: A premium industrial theme inspired by Salad de Despiece.
Version: 1.1
License: GNU General Public License v2 or later
Text Domain: casaplatos
*/

html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'AdobeErnie';
    src: url('assets/fonts/AdobeHandwriting-Ernie.woff2') format('woff2'),
         url('assets/fonts/AdobeHandwriting-Ernie.woff') format('woff'),
         url('assets/fonts/AdobeHandwriting-Ernie.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'InterstateMonoCustom';
    src: url('assets/fonts/InterstateMono.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #FAF4E6; /* Crema */
    --hero-bg: #80781B; /* Verde Olivo Original */
    --text-color: #181818; /* Negro */
    --accent-color: #EA4826; /* Rojo Naranja */
    --secondary-color: #7C7736; /* Verde Olivo Secundario */
    --border-color: #181818;
    --font-main: 'InterstateMonoCustom', monospace !important;
    --font-mono: 'InterstateMonoCustom', monospace !important;
    --font-script: 'AdobeErnie', cursive;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    padding: 0; /* Removed padding to allow sticky header to reach the top */
}

/* Hero Section */
.hero {
    min-height: 85vh; /* Slightly reduced to help visibility of buttons */
    background-color: transparent;
    color: var(--text-color); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 2rem 5rem; /* Tighter spacing */
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

.hero .logo-composition {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.hero .logo-iso {
    max-height: 350px;
    width: auto;
}

.hero .logo-text {
    max-height: 100px;
    width: auto;
}

.hero .site-logo img {
    max-height: 450px;
    width: auto;
}

.hero .brand-slogan {
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.hero .brand-script {
    font-family: var(--font-script);
    font-size: 3rem;
    margin-top: 1rem;
}

header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Added subtle shadow for depth when sticky */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    border-bottom: 1px solid transparent;
}

nav a:hover {
    border-bottom: 1px solid var(--accent-color);
}

.site-title {
    font-family: var(--font-script);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--text-color);
}

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

.technical-data {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
}

.label {
    font-family: var(--font-mono);
    color: var(--accent-color);
    margin-right: 0.5rem;
}

/* Global Button Hover */
a.technical-data, button.technical-data {
    transition: all 0.3s ease !important;
}

a.technical-data:hover, button.technical-data:hover {
    opacity: 0.8;
}

main {
    flex-grow: 1;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

article {
    border: 1px solid var(--border-color);
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.article-meta {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
}

h2 {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.post-content {
    font-size: 0.9rem;
    flex-grow: 1;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    text-align: center;
}

.site-frame {
    padding: 2rem;
    width: 100%;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    body {
        padding: 0; /* Remove body padding on mobile for full-width feel */
    }

    header {
        padding: 0.8rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    header .technical-data {
        font-size: 0.6rem;
    }

    nav ul {
        gap: 0.8rem;
        font-size: 0.65rem;
    }

    .hero {
        height: auto;
        padding: 4rem 1rem;
        min-height: 70vh;
    }

    .hero .logo-iso {
        max-height: 140px;
        max-width: 80%;
    }

    .hero .logo-text {
        max-height: 40px;
        max-width: 90%;
    }

    .hero .brand-slogan {
        font-size: 0.7rem;
    }

    .hero .brand-script {
        font-size: 2rem;
    }

    .site-frame {
        padding: 0 1.5rem;
    }

    main {
        padding: 2rem 0;
        grid-template-columns: 1fr; /* Force one column for non-menu posts */
    }

    h2 {
        font-size: 1.1rem;
    }
}

/* Site Decorations - Floating Stickers */
.site-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.sticker {
    position: absolute;
    width: 150px;
    height: auto;
    opacity: 0.12;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.sticker-1 {
    top: 15%;
    right: 5%;
    transform: rotate(15deg);
    animation: float 8s ease-in-out infinite;
}

.sticker-2 {
    bottom: 10%;
    left: 5%;
    transform: rotate(-10deg);
    animation: float 10s ease-in-out infinite reverse;
}

.sticker-3 {
    top: 60%;
    right: -2%;
    width: 120px;
    transform: rotate(-5deg);
    animation: float 12s ease-in-out infinite 2s;
}

.sticker-4 {
    bottom: 15%;
    right: 8%;
    transform: rotate(-15deg);
    animation: float 9s ease-in-out infinite 1s reverse;
}

.sticker-5 {
    top: 35%;
    left: 2%;
    transform: rotate(10deg);
    animation: float 14s ease-in-out infinite 3s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.sticker-1 { opacity: 0.08; width: 200px; }
.sticker-2 { opacity: 0.1; width: 180px; }
.sticker-3 { opacity: 0.07; width: 140px; }
.sticker-4 { opacity: 0.09; width: 170px; }
.sticker-5 { opacity: 0.15; width: 240px; }

@media (max-width: 768px) {
    .sticker {
        width: 80px !important;
        opacity: 0.05 !important;
    }
    .sticker-1 { /* Gilda */
        top: 10% !important;
        right: 2% !important;
    }
    .sticker-2 { /* Copa */
        bottom: 10% !important;
        left: -20px !important;
    }
    .sticker-3 { /* Got */
        top: 40% !important;
        right: -20px !important;
    }
    .sticker-4 { /* Copa Vi */
        bottom: 25% !important;
        right: -20px !important;
    }
    .sticker-5 { /* Platet */
        top: 25% !important;
        left: -20px !important;
    }
}
