/*
Theme Name: SPOT Child Theme
Theme URI: https://spot.fitt.ro
Description: Child theme pentru proiectul SPOT - Serviciul Public de Ocupare pentru Tineri
Author: FITT & AJOFM Timiș
Template: astra
Version: 3.0.0
Text Domain: spot-child
*/

/* ==========================================
   PALETA DE CULORI SPOT
   ========================================== */
:root {
    --spot-orange: #FF7A30;
    --spot-orange-hover: #E66820;
    --spot-beige: #E8DFD0;
    --spot-beige-light: #F5F1E8;
    --spot-dark: #2B2B2B;
    --spot-white: #FFFFFF;
    --spot-shadow: rgba(0, 0, 0, 0.1);
}

/* ==========================================
   STILURI GENERALE
   ========================================== */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--spot-dark);
    background-color: var(--spot-beige-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Îmbunătățim readability pe toate device-urile */
* {
    box-sizing: border-box;
}

/* Container mai prietenos pentru mobil */
.ast-container {
    max-width: 1200px;
    padding-left: 20px;
    padding-right: 20px;
}

/* Titluri bold și moderne - RESPONSIVE */
h1, h2, h3, h4, h5, h6 {
    font-weight: 900;
    color: var(--spot-dark);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
    margin-bottom: 1.2rem;
}

/* ==========================================
   HEADER & NAVIGARE - MOBILE FIRST
   ========================================== */
.main-header-bar,
.site-header {
    background-color: var(--spot-white);
    box-shadow: 0 2px 10px var(--spot-shadow);
    padding: 15px 0;
}

.site-branding img {
    max-height: 50px;
    width: auto;
}

.site-title a,
.main-navigation a {
    color: var(--spot-dark);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-navigation a:hover {
    color: var(--spot-orange);
}

/* Mobile menu mai modern */
.ast-mobile-menu-buttons {
    color: var(--spot-orange);
}

/* ==========================================
   BUTOANE & ELEMENTE INTERACTIVE - ÎMBUNĂTĂȚITE
   ========================================== */
.button,
.wp-block-button__link,
input[type="submit"],
.ast-button,
button[type="submit"] {
    background-color: var(--spot-orange) !important;
    color: var(--spot-white) !important;
    border: none;
    padding: 16px 32px;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: none;
    display: inline-block;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 122, 48, 0.2);
}

.button:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
.ast-button:hover,
button[type="submit"]:hover {
    background-color: var(--spot-orange-hover) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 122, 48, 0.35);
}

/* ==========================================
   HERO SECTION - RESPONSIVE & MODERN
   ========================================== */
.hero-section {
    background: linear-gradient(135deg, var(--spot-beige) 0%, var(--spot-beige-light) 100%);
    padding: 60px 20px;
    text-align: center;
    border-radius: 0 0 30px 30px;
    margin-bottom: 40px;
}

.hero-title {
    color: var(--spot-dark);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
    word-wrap: break-word;
    hyphens: auto;
}

.hero-subtitle {
    background-color: var(--spot-orange);
    color: var(--spot-white);
    display: inline-block;
    padding: 12px 30px;
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 700;
    border-radius: 12px;
    margin: 20px auto;
    box-shadow: 0 4px 15px rgba(255, 122, 48, 0.3);
}

/* ==========================================
   SECȚIUNI DE CONȚINUT - RESPONSIVE
   ========================================== */
.content-section {
    background-color: var(--spot-white);
    padding: 50px 20px;
    margin: 30px 0;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--spot-shadow);
}

.content-section.orange-bg {
    background: linear-gradient(135deg, var(--spot-orange) 0%, #FF8A47 100%);
    color: var(--spot-white);
}

.content-section.orange-bg h2,
.content-section.orange-bg h3 {
    color: var(--spot-white);
}

/* Grid responsive pentru cards */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* ==========================================
   BLOG & ARTICOLE - MOBILE FRIENDLY
   ========================================== */
.blog-post,
.entry-content,
.ast-article-single {
    background-color: var(--spot-white);
    padding: 30px 20px;
    margin-bottom: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px var(--spot-shadow);
}

.entry-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
}

.entry-title a {
    color: var(--spot-dark);
    font-weight: 900;
    text-decoration: none;
    transition: color 0.3s ease;
}

.entry-title a:hover {
    color: var(--spot-orange);
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Featured Images responsive */
.post-thumbnail img,
.wp-post-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Blog grid pentru desktop */
@media (min-width: 768px) {
    .blog .ast-row {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
        gap: 30px;
    }
}

/* ==========================================
   FOOTER - MODERN
   ========================================== */
.site-footer {
    background: linear-gradient(135deg, var(--spot-dark) 0%, #1a1a1a 100%);
    color: var(--spot-white);
    padding: 50px 20px 30px;
    margin-top: 60px;
    border-radius: 30px 30px 0 0;
}

.site-footer a {
    color: var(--spot-white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: var(--spot-orange);
}

/* ==========================================
   ELEMENTE HELPER - UTILITY CLASSES
   ========================================== */
.text-center {
    text-align: center;
}

.bg-orange {
    background-color: var(--spot-orange);
    color: var(--spot-white);
    padding: 20px;
    border-radius: 12px;
}

.highlight-box {
    background-color: var(--spot-beige-light);
    padding: 25px;
    border-left: 5px solid var(--spot-orange);
    border-radius: 8px;
    margin: 25px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-box:hover {
    transform: translateX(5px);
    box-shadow: -5px 5px 15px var(--spot-shadow);
}

/* ==========================================
   FORMULARE - USER FRIENDLY
   ========================================== */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--spot-beige);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--spot-white);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--spot-orange);
    box-shadow: 0 0 0 3px rgba(255, 122, 48, 0.1);
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */

/* Tablet & up (768px+) */
@media (min-width: 768px) {
    .hero-section {
        padding: 100px 40px;
    }
    
    .content-section {
        padding: 80px 40px;
    }
    
    .ast-container {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* Mobile (max 768px) */
@media (max-width: 768px) {
    /* Hero mai compact pe mobil */
    .hero-section {
        padding: 40px 20px;
        border-radius: 0 0 20px 20px;
    }
    
    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }
    
    .hero-title br {
        display: none; /* Evităm line breaks forțate pe mobil */
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        padding: 10px 20px;
    }
    
    /* Secțiuni mai compacte */
    .content-section {
        padding: 35px 20px;
        margin: 20px 0;
        border-radius: 16px;
    }
    
    /* Text mai lizibil pe mobil */
    body {
        font-size: 15px;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    /* Butoane full-width pe mobil mic */
    .button,
    .wp-block-button__link,
    input[type="submit"] {
        width: 100%;
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    /* Cards stack pe mobil */
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Footer mai compact */
    .site-footer {
        padding: 40px 20px 20px;
        border-radius: 20px 20px 0 0;
    }
    
    /* Logo mai mic pe mobil */
    .site-branding img {
        max-height: 40px;
    }
}

/* Mobile mic (max 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .content-section {
        padding: 30px 15px;
    }
    
    .highlight-box {
        padding: 20px 15px;
    }
}

/* ==========================================
   AJUSTĂRI ASTRA THEME
   ========================================== */
.site-content {
    background-color: transparent;
    padding-top: 20px;
}

/* Îndepărtăm fundalurile default */
.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
    background-color: transparent;
    box-shadow: none;
}

/* Îmbunătățim sidebar-ul pe mobil */
@media (max-width: 768px) {
    .ast-separate-container .ast-article-single,
    #secondary {
        padding: 0;
    }
}

/* ==========================================
   ANIMAȚII SUBTLE - YOUTH FRIENDLY
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section,
.blog-post {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects pentru cards */
.blog .ast-article-single {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog .ast-article-single:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   ACCESSIBILITY IMPROVEMENTS
   ========================================== */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 3px solid var(--spot-orange);
    outline-offset: 2px;
}

/* Skip to content link pentru accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--spot-orange);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ==========================================
   PRINT STYLES
   ========================================== */
@media print {
    .main-header-bar,
    .site-footer,
    .button {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
