/*
 Theme Name:   GeneratePress Child (Tech-Adriatic Stable)
 Template:     generatepress
 Version:      5.0
*/

:root {
    --bg-deep: #020b1c;
    --bg-panel: #0a152b;
    --accent: #FF4E50;
    --gradient: linear-gradient(135deg, #FF4E50 0%, #F9D423 100%);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border: 1px solid rgba(255,255,255,0.08);
}

/* --- 1. GLOBALNI RESET (SIGURNA VERZIJA) --- */

body, html {
    background-color: var(--bg-deep) !important;
    color: var(--text-main);
    overflow-x: hidden; /* UBIJA horizontalni scroll */
    margin: 0;
    padding: 0;
}

a { text-decoration: none; transition: 0.3s; }

/* Header i Navigacija */
.site-header {
    background-color: var(--bg-deep) !important;
    border-bottom: var(--border);
}

.main-navigation, .main-navigation ul ul {
    background-color: transparent !important;
}

.main-navigation .main-nav ul li a {
    color: var(--text-main) !important;
    font-weight: 600;
}

/* --- 2. LAYOUT FIX (BEZ BIJELIH KUTIJA) --- */

/* Forsiramo da glavni kontejneri idu do ruba ekrana */
.container, 
.grid-container, 
.site-content {
    max-width: 100% !important;
    width: 100% !important;
}

/* Uklanjamo paddinge koje tema dodaje */
.site-content {
    padding: 0 !important;
    margin: 0 !important;
    display: block !important; /* Vraćamo na block da ne razbije flex */
}

/* Ovo cilja onaj bijeli okvir unutar članka */
.inside-article, 
.separate-containers .inside-article,
.one-container .site-content {
    background-color: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
}

/* Sakrivamo default naslov stranice */
.entry-header { display: none !important; }

/* --- 3. HERO SEKCIJA (PAMETNIJA) --- */
/* Umjesto negativnih margina, koristimo width: 100% jer smo otključali kontejner gore */

.hero-section {
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #0d1b33 0%, #020b1c 70%);
    padding: 80px 20px;
    box-sizing: border-box;
}

.hero-glow {
    position: absolute;
    width: 600px; height: 600px;
    background: var(--accent);
    filter: blur(150px);
    opacity: 0.15;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
}

h1.big-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
    color: #fff;
}

/* --- 4. STANDARDNE SEKCIJE (GRID) --- */

.content-section {
    width: 100%;
    max-width: 1200px; /* Ovdje ograničavamo širinu sadržaja da ne bude preširoko */
    margin: 0 auto;    /* Centriramo sekciju */
    padding: 100px 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    box-sizing: border-box;
}

/* Ovo osigurava da tekst ne dira rubove na mobitelu */
@media (max-width: 900px) {
    .content-section {
        grid-template-columns: 1fr; /* Jedan stupac na mobitelu */
        padding: 60px 20px;
        text-align: center;
    }
    
    /* Popravak redoslijeda na mobitelu ako je potrebno */
    .content-section > .visual-box {
        order: -1; /* Slika prva na mobitelu? Ako želiš, ostavi, ako ne, obriši ovo */
        margin-bottom: 30px;
    }
}

.visual-box {
    width: 100%;
    height: 400px;
    background: var(--bg-panel);
    border: var(--border);
    border-radius: 24px;
    position: relative;
    backdrop-filter: blur(10px);
}

/* --- 5. TIPOGRAFIJA I ELEMENTI --- */

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
}

.btn-primary {
    display: inline-block;
    padding: 16px 32px;
    background: var(--gradient);
    color: #000 !important; /* Forsiramo crnu boju teksta */
    font-weight: 700;
    border-radius: 50px;
    margin: 10px;
}

.btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff !important;
    font-weight: 600;
    border-radius: 50px;
    margin: 10px;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- 6. FOOTER FIX --- */

.site-footer {
    background-color: var(--bg-deep) !important;
    width: 100% !important;
    margin: 0 !important;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.site-info {
    background-color: var(--bg-deep) !important;
    color: var(--text-muted) !important;
    padding: 30px 20px !important;
}

.inside-site-info {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.site-info a { color: var(--text-muted); }
.site-info a:hover { color: var(--accent); }