/*
Theme Name: OpenQR Theme
Author: OpenQR Team
Description: Motyw Cyberpunk/Tech dla systemu OpenQR (Generator + Studio + Katalog).
Version: 2.0
*/

/* --- 1. ZMIENNE I RESET --- */
:root {
    --primary: #00d2ff;       /* Neonowy Cyjan */
    --secondary: #ff007f;     /* Neonowa Magenta */
    --dark-bg: #0f172a;       /* Głęboki Granat */
    --panel-bg: #1e293b;      /* Jaśniejszy Granat (Karty) */
    --text-main: #cbd5e1;     /* Szary Jasny */
    --text-white: #ffffff;
    --border: rgba(255, 255, 255, 0.1);
    --glass: rgba(15, 23, 42, 0.75);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--dark-bg);
    /* Subtelny wzór techniczny w tle */
    background-image: radial-gradient(var(--panel-bg) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; }

/* Wideo w tle */
#bg-video {
    position: fixed;
    right: 0; bottom: 0;
    min-width: 100%; min-height: 100%;
    width: auto; height: auto;
    z-index: -1;
    filter: brightness(0.4) contrast(1.1) grayscale(0.2);
    object-fit: cover;
}

/* --- 2. NAGŁÓWEK (MENU) - EFEKT WOW --- */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 9999;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
    transition: all 0.4s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    display: flex; align-items: center; gap: 10px;
    font-size: 1.5rem; font-weight: 800; color: white;
    letter-spacing: -0.5px;
}
.logo .dashicons {
    font-size: 30px; width: 30px; height: 30px;
    color: var(--primary);
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.5));
}
.logo .highlight { color: var(--primary); }

/* NAWIGACJA DESKTOP */
.main-nav { display: flex; gap: 30px; align-items: center; }

.nav-link {
    position: relative;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 5px 0;
}

/* Animacja podkreślenia */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: 0; left: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px var(--primary);
}
.nav-link:hover { color: white; }
.nav-link:hover::after { width: 100%; left: 0; }

/* Przycisk Kontakt (Glowing) */
.nav-link.btn-contact-glow {
    padding: 8px 25px;
    border: 1px solid var(--primary);
    border-radius: 50px;
    color: var(--primary);
}
.nav-link.btn-contact-glow::after { display: none; }
.nav-link.btn-contact-glow:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 210, 255, 0.6);
    transform: translateY(-2px);
}

/* HAMBURGER (Mobile) */
.mobile-toggle {
    display: none; cursor: pointer;
    flex-direction: column; gap: 6px; z-index: 10001;
}
.bar {
    width: 30px; height: 3px; background-color: white; border-radius: 3px;
    transition: all 0.3s ease;
}

/* --- 3. HERO (STRONA GŁÓWNA) --- */
.hero-container {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 100px 20px 50px; /* Padding góra na nagłówek */
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 60px 40px;
    border-radius: 24px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

/* --- 4. PRZYCISKI (NEON BUTTONS) --- */
.action-buttons {
    display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 30px;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 15px 35px;
    font-weight: 700;
    border-radius: 50px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    display: inline-flex; align-items: center;
    text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px;
}
.btn-glass span { margin-right: 10px; font-size: 1.2rem; }

/* Warianty */
.btn-cyan:hover {
    background: var(--primary); border-color: var(--primary); color: #000;
    box-shadow: 0 0 25px rgba(0, 210, 255, 0.6); transform: translateY(-3px);
}
.btn-magenta:hover {
    background: var(--secondary); border-color: var(--secondary); color: white;
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.6); transform: translateY(-3px);
}
.btn-white:hover {
    background: white; border-color: white; color: black;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5); transform: translateY(-3px);
}

/* --- 5. KATALOG REALIZACJI (GRID) --- */
.archive-container {
    max-width: 1200px;
    margin: 120px auto 50px;
    padding: 0 20px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.solution-card {
    background: var(--panel-bg);
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 30px;
    display: flex; flex-direction: column; align-items: flex-start;
    transition: all 0.3s ease;
    position: relative; overflow: hidden;
}

.solution-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.15);
}

.solution-card h2 { margin-top: 0; color: white; font-size: 1.4rem; }
.solution-card h2 a { text-decoration: none; color: white; transition: 0.2s; }
.solution-card h2 a:hover { color: var(--primary); }

.card-excerpt {
    font-size: 0.95rem; color: #94a3b8; margin-bottom: 20px; flex-grow: 1;
}

/* --- 6. POJEDYNCZY WPIS (SINGLE) --- */
.single-realizacja-container {
    padding: 140px 20px 60px;
    display: flex; justify-content: center;
}

.content-panel {
    background: var(--panel-bg);
    border: 1px solid #334155;
    border-radius: 20px;
    padding: 50px;
    width: 100%; max-width: 900px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.entry-header h1 {
    font-size: 2.5rem; color: white; text-align: center; margin-bottom: 30px;
}

.featured-image {
    width: 100%; height: 300px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid #334155;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; margin-bottom: 40px;
}
.featured-image img {
    max-width: 100%; max-height: 100%; object-fit: contain;
}

/* --- 7. STYLE FORMULARZY I WTYCZEK (GLOBALNE) --- */
/* To naprawia wygląd Twoich shortcode'ów w całym motywie */

input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    padding: 15px;
    background: #0f172a !important; /* Wymuszenie ciemnego tła */
    border: 1px solid #334155 !important;
    color: white !important;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: inherit;
    font-size: 1rem;
    transition: border 0.3s;
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

button[type="submit"] {
    background: linear-gradient(135deg, #00d2ff 0%, #007bff 100%);
    color: #0f172a;
    border: none;
    padding: 15px 30px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    width: 100%;
}
button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 210, 255, 0.4);
}

/* --- 8. MEDIA QUERIES (MOBILE) --- */
@media (max-width: 900px) {
    
    /* Burger widoczny */
    .mobile-toggle { display: flex; }

    /* Animacja Burgera */
    .mobile-toggle.active .bar-1 { transform: rotate(-45deg) translate(-7px, 6px); background: var(--primary); }
    .mobile-toggle.active .bar-2 { opacity: 0; }
    .mobile-toggle.active .bar-3 { transform: rotate(45deg) translate(-7px, -6px); background: var(--primary); }

    /* MENU PEŁNOEKRANOWE */
    .main-nav {
        position: fixed;
        top: 0; left: 0;
        width: 100%; height: 100vh;
        background: rgba(15, 23, 42, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        opacity: 0; visibility: hidden;
        transform: translateY(-20px);
        transition: all 0.4s ease-in-out;
    }

    .main-nav.open {
        opacity: 1; visibility: visible; transform: translateY(0);
    }

    .nav-link { font-size: 1.8rem; font-weight: 800; border: none; }
    .nav-link.btn-contact-glow {
        margin-top: 20px; font-size: 1.4rem; padding: 15px 40px;
    }

    /* Reszta responsywności */
    .action-buttons { flex-direction: column; }
    .btn-glass { justify-content: center; width: 100%; }
    .glass-panel { padding: 30px 20px; }
    .content-panel { padding: 25px; }
    .entry-header h1 { font-size: 1.8rem; }
    
    /* Poprawa widoku formularzy na telefonie */
    .contact-pro-wrapper .pricing-grid,
    .contact-pro-wrapper .form-row {
        grid-template-columns: 1fr !important;
    }
}