/*
Theme Name: TCE Theme
Theme URI: https://canny.ro
Author: Canny Agency
Author URI: https://canny.ro
Description: Temă custom TCE Agricultura — block theme FSE pentru campania "Cumperi de aici. Ajungi în Grecia" mai-august 2026.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
License: Proprietary
Text Domain: tce-theme
Tags: full-site-editing, block-theme, one-column, custom-colors, custom-fonts

Screenshot: 1200x900 placeholder — generați cu instrument extern și plasați la /screenshot.png
Fonturi: Sans = system stack (-apple-system, BlinkMacSystemFont etc.)
         Serif = Georgia / Times New Roman system stack
         Post-demo: puneți Inter.woff2 + PlayfairDisplay.woff2 în assets/fonts/
         și decomentați blocul @font-face din style.css
*/

/* ==========================================================================
   @font-face — DEZACTIVAT implicit. Decomentați după ce adăugați fișierele
   woff2 în assets/fonts/ (Inter + Playfair Display self-hosted, GDPR-safe)
   ==========================================================================

@font-face {
    font-family: 'Inter';
    src: url('./assets/fonts/inter-variable.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('./assets/fonts/playfair-display-variable.woff2') format('woff2-variations');
    font-weight: 400 900;
    font-style: normal;
    font-display: swap;
}

*/

/* ==========================================================================
   Reset minimal
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--wp--preset--font-family--sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif);
    font-size: var(--wp--preset--font-size--medium, 1rem);
    color: var(--wp--preset--color--text-dark, #111827);
    line-height: 1.6;
    background-color: var(--wp--preset--color--white, #ffffff);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--wp--preset--color--gold, #e6a817);
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover,
a:focus {
    color: var(--wp--preset--color--gold-light, #f5cc4c);
    text-decoration: none;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

/* Full-width override — plugin TCE Promo folosește .tce-full-width */
.wp-block-post-content,
.entry-content,
.page-content {
    max-width: none;
}

/* Asigură că shortcode-urile și embed-urile plugin-ului nu au padding nedorit */
.wp-block-post-content .tce-promo-wrap,
.wp-block-post-content [class^="tce-"] {
    margin-left: 0;
    margin-right: 0;
}

/* ==========================================================================
   Header TCE — navy cu gold separator
   ========================================================================== */

.tce-site-header {
    background-color: var(--wp--preset--color--navy, #1c2940);
    color: var(--wp--preset--color--white, #ffffff);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.tce-site-header .wp-block-site-title a,
.tce-site-header .wp-block-site-title a:hover {
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Gold separator sub header */
.tce-header-separator {
    height: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--gold, #e6a817) 0%, var(--wp--preset--color--gold-light, #f5cc4c) 100%);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.wp-block-navigation a,
.wp-block-navigation .wp-block-navigation-item__content {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wp-block-navigation a:hover,
.wp-block-navigation a:focus {
    color: var(--wp--preset--color--gold, #e6a817);
}

/* ==========================================================================
   Footer TCE — dark slate
   ========================================================================== */

.tce-site-footer {
    background-color: var(--wp--preset--color--text-dark, #111827);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    padding: 2.5rem 1.5rem;
}

.tce-site-footer a {
    color: var(--wp--preset--color--gold, #e6a817);
}

.tce-site-footer a:hover {
    color: var(--wp--preset--color--gold-light, #f5cc4c);
}

.tce-site-footer p {
    margin: 0 0 0.5rem;
}

/* ==========================================================================
   Butoane — TCE navy primary
   ========================================================================== */

.wp-block-button__link,
.wp-element-button {
    background-color: var(--wp--preset--color--navy, #1c2940);
    color: #ffffff;
    border: none;
    border-radius: 4px;
    padding: 0.65rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    cursor: pointer;
    display: inline-block;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
    background-color: var(--wp--preset--color--navy-light, #2c3e5e);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent;
    border: 2px solid var(--wp--preset--color--navy, #1c2940);
    color: var(--wp--preset--color--navy, #1c2940);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--wp--preset--color--navy, #1c2940);
    color: #ffffff;
}

/* Buton gold (use class="is-style-gold" pe block button) */
.wp-block-button.is-style-gold .wp-block-button__link {
    background-color: var(--wp--preset--color--gold, #e6a817);
    color: var(--wp--preset--color--text-dark, #111827);
    font-weight: 700;
}

.wp-block-button.is-style-gold .wp-block-button__link:hover {
    background-color: var(--wp--preset--color--gold-light, #f5cc4c);
    color: var(--wp--preset--color--text-dark, #111827);
}

/* ==========================================================================
   Titluri
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wp--preset--font-family--serif, Georgia, 'Times New Roman', serif);
    color: var(--wp--preset--color--navy, #1c2940);
    line-height: 1.2;
    margin-top: 0;
    font-weight: 700;
}

h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   404
   ========================================================================== */

.tce-404-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    padding: 3rem 1.5rem;
    text-align: center;
    background-color: var(--wp--preset--color--cream, #f6f4ef);
}

.tce-404-wrap .tce-404-code {
    font-size: clamp(5rem, 15vw, 10rem);
    font-weight: 900;
    color: var(--wp--preset--color--navy, #1c2940);
    line-height: 1;
    opacity: 0.12;
    display: block;
    margin-bottom: -2rem;
}

.tce-404-wrap h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--wp--preset--color--navy, #1c2940);
    margin-bottom: 1rem;
}

.tce-404-wrap p {
    color: #4b5563;
    max-width: 480px;
    margin-bottom: 2rem;
}

/* ==========================================================================
   Separator gold (refolosit în header și în conținut)
   ========================================================================== */

.wp-block-separator.has-gold-background-color,
hr.has-gold-background-color {
    background-color: var(--wp--preset--color--gold, #e6a817);
    border-color: var(--wp--preset--color--gold, #e6a817);
    height: 3px;
    border: none;
    opacity: 1;
}

/* ==========================================================================
   Compatibilitate plugin TCE Promo — nu rupe layout-urile existente
   ========================================================================== */

/* Plugin-ul TCE Promo folosește --tce-navy etc. — bridge la theme tokens */
:root {
    --tce-navy: var(--wp--preset--color--navy, #1c2940);
    --tce-navy-light: var(--wp--preset--color--navy-light, #2c3e5e);
    --tce-gold: var(--wp--preset--color--gold, #e6a817);
    --tce-gold-light: var(--wp--preset--color--gold-light, #f5cc4c);
    --tce-cream: var(--wp--preset--color--cream, #f6f4ef);
    --tce-white: #ffffff;
    --tce-text-dark: var(--wp--preset--color--text-dark, #111827);
}

/* Previne conflicte cu margin-urile din Twenty Twenty-Five */
.wp-site-blocks {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    .tce-site-header .wp-block-navigation {
        display: none; /* Meniu mobil — activat via wp:navigation cu overlay */
    }

    .tce-site-footer {
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
