/*
Theme Name: InfireWeb Cyber Datacenter
Theme URI: https://infireweb.com/
Author: Marko Vaupotič
Description: Cyberpunk neon datacenter WordPress tema za IT & server rešitve.
Version: 1.0
Text Domain: infireweb
*/

/* ========== GLOBAL ========== */

:root {
    --bg-main: #030712;
    --bg-alt: #0b1220;
    --bg-card: #0f172a;
    --accent: #00eaff;
    --accent-2: #1eff89;
    --accent-purple: #7c3aed;
    --text-main: #e6f4ff;
    --text-muted: #8ea0b5;
    --border-glow: rgba(0,234,255,0.45);
    --radius: 14px;
    --shadow-neon: 0 0 22px rgba(0,234,255,0.25);
    --shadow-inner: inset 0 0 18px rgba(0,234,255,0.06);
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
}

body {
    color: var(--text-main);
    background: var(--bg-main);
    font-family: var(--font-main);
    line-height: 1.6;

    /* datacenter grid */
    background-image:
        linear-gradient(rgba(0,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

a {
    color: var(--accent);
}

a:hover {
    color: #5eead4;
}

/* LAYOUT WRAPPER */

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px;
}

/* ========== HEADER & NAV ========== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 10px 0;
    background: rgba(3,7,18,0.8);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,255,255,0.18);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-badge {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: radial-gradient(circle at 30% 0, #00eaff, #0088aa 65%);
    box-shadow: 0 0 24px rgba(0,234,255,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: .9rem;
    color: #020617;
}

.site-title a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.site-tagline {
    font-size: .8rem;
    color: var(--text-muted);
}

/* NAV DESKTOP */

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0;
    padding: 0;
}

.main-nav a {
    text-decoration: none;
    padding: 7px 12px;
    color: var(--text-muted);
    border-radius: 999px;
    font-size: 0.9rem;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
    background: rgba(0,234,255,0.16);
    color: var(--text-main);
    transform: translateY(-1px);
}

/* CTA v meniju */

.nav-cta a {
    padding: 7px 15px;
    background: linear-gradient(135deg, #00eaff, #1eff89);
    color: #020617 !important;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 0 18px rgba(0,234,255,0.6);
}

/* MOBILE NAV TOGGLE */

.nav-toggle {
    display: none;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text-main);
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

/* ========== HERO ========== */

.hero {
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(0,234,255,0.18), transparent 60%),
        radial-gradient(circle at 85% 15%, rgba(30,255,137,0.18), transparent 60%),
        radial-gradient(circle at 60% 90%, rgba(124,58,237,0.12), transparent 60%);
    opacity: 1;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
    gap: 40px;
    align-items: center;
}

.hero-kicker {
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .22em;
    color: var(--accent);
    margin-bottom: 10px;
}

.hero-title {
    font-size: clamp(2.3rem, 3vw, 2.9rem);
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.15;
}

.hero-title .accent {
    background: linear-gradient(90deg, #00eaff, #1eff89);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 480px;
    margin: 0 0 20px;
    color: var(--text-muted);
    font-size: .95rem;
}

/* Buttons */

.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: .9rem;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease,
        box-shadow .18s ease, border-color .18s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #00eaff, #1eff89);
    color: #020617;
    box-shadow: 0 0 25px rgba(0,234,255,0.45);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 34px rgba(0,234,255,0.75);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(0,234,255,0.3);
    color: var(--text-main);
}

.btn-ghost:hover {
    background: rgba(0,234,255,0.12);
}

/* Hero meta (če boš dodal) */

.hero-meta {
    font-size: .8rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* ========== SERVER INFO PANEL ========== */

.hero-aside {
    border: 1px solid var(--border-glow);
    background: rgba(11,18,32,0.96);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 0 30px rgba(0,234,255,0.25);
}

.hero-aside-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: .8rem;
    color: var(--text-muted);
}

.hero-aside-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px;
}

.hero-aside-item {
    padding: 10px;
    border-radius: 12px;
    background: rgba(15,23,42,0.95);
    border: 1px solid rgba(0,234,255,0.22);
}

/* LED dot */

.dot-pulse {
    width: 10px;
    height: 10px;
    background: var(--accent-2);
    border-radius: 999px;
    box-shadow: 0 0 16px var(--accent-2);
    animation: pulse 1.4s infinite ease-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 10px var(--accent-2); }
    50% { box-shadow: 0 0 24px var(--accent-2); }
    100% { box-shadow: 0 0 10px var(--accent-2); }
}

/* ========== SECTIONS & CARDS ========== */

.section {
    padding: 40px 0;
}

.section-title {
    font-size: 1.7rem;
    margin: 0 0 12px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: .92rem;
    margin: 0 0 24px;
}

/* Service cards grid */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 22px;
    margin-top: 18px;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    border: 1px solid rgba(0,234,255,0.25);
    box-shadow: var(--shadow-neon), var(--shadow-inner);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: "";
    position: absolute;
    inset: -40%;
    background: radial-gradient(circle at top, rgba(0,234,255,0.07), transparent 60%);
    pointer-events: none;
}

.card-title {
    font-size: 1.1rem;
    margin: 0 0 6px;
}

.card-text {
    margin: 0;
    color: var(--text-muted);
    font-size: .9rem;
}

/* CTA BOX */

.section-cta {
    padding: 42px 0 50px;
}

.cta-box {
    border-radius: 20px;
    padding: 24px 22px;
    border: 1px solid rgba(0,255,255,0.25);
    background: rgba(3,7,18,0.92);
    box-shadow: 0 0 30px rgba(0,234,255,0.22);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.cta-box h2 {
    margin: 0 0 6px;
    font-size: 1.4rem;
}

.cta-box p {
    margin: 0;
    font-size: .9rem;
    color: var(--text-muted);
}

/* ========== PAGE / CONTENT ========== */

.page-content {
    padding: 40px 0 50px;
}

.page-content .container {
    max-width: 820px;
}

.page-content h1 {
    font-size: 1.9rem;
    margin: 0 0 14px;
}

.page-content p,
.page-content li {
    font-size: .95rem;
    color: var(--text-main);
}

/* Blog list */

.post-item {
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,255,255,0.18);
}

.post-item:last-child {
    border-bottom: none;
}

.post-item h2 {
    margin: 0 0 6px;
    font-size: 1.1rem;
}

.post-item h2 a {
    text-decoration: none;
    color: var(--text-main);
}

.post-item h2 a:hover {
    color: var(--accent);
}

/* Forms (osnovno) */

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid rgba(148,163,184,0.65);
    background: rgba(15,23,42,0.96);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: .94rem;
    outline: none;
    margin-bottom: 10px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(0,234,255,0.4);
}

/* ========== FOOTER ========== */

.site-footer {
    border-top: 1px solid rgba(0,255,255,0.18);
    background: #02040b;
    padding: 20px 0 18px;
    font-size: .82rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: minmax(0,1fr);
    }

    .hero {
        padding-top: 60px;
    }

    .cards-grid {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 720px) {
    .header-inner {
        align-items: center;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        right: 18px;
        left: 18px;
        top: 62px;
        background: rgba(3,7,18,0.98);
        border-radius: 16px;
        border: 1px solid rgba(0,255,255,0.25);
        padding: 10px 10px 12px;
        flex-direction: column;
        gap: 10px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-8px);
        transition: opacity .16s ease, transform .16s ease;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .nav-cta {
        align-self: flex-start;
    }

    .site-wrapper.nav-open .main-nav {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .cards-grid {
        grid-template-columns: minmax(0,1fr);
    }

    .hero-aside {
        margin-top: 6px;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
    }
}
