/*
Theme Name: Kradzież Tożsamości
Theme URI: https://sadurski.pl
Description: Child theme dla Hello Elementor — projekt Kradzież Tożsamości. Zawiera style nawigacji, quizu interaktywnego, progress bar, floating CTA i responsywność.
Author: Sadurski.pl
Author URI: https://sadurski.pl
Template: hello-elementor
Version: 6.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kradziez-tozsamosci
*/

/* ============================================
   TYPOGRAFIA — klasy pomocnicze
   ============================================ */

.tekst-gigant {
	color: #FF0000;
	font-size: 300%;
}
.tekst-zloty {
    color: #FF0000;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
         0    0   6px rgba(0, 0, 0, 0.6);
    font-weight: 700;
}

.tekst-gigant2 {
	color: #f3c385;
	font-size: 300%;
}
.tekst-zloty2 {
    color: #f3c385;
}

/* ============================================
   QUIZ INTERAKTYWNY
   ============================================ */

#safety-quiz {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Urbanist', sans-serif;
    color: #ffffff;
    position: relative;
}

#safety-quiz .quiz-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-bottom: 1px solid #333;
    gap: 30px;
    transition: filter 0.5s ease;
}

#safety-quiz.completed .quiz-row {
    filter: blur(5px);
    pointer-events: none;
}

#safety-quiz .quiz-question {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

#safety-quiz .quiz-options {
    display: flex;
    gap: 15px;
}

#safety-quiz .btn-opt {
    background: transparent;
    border: 1px solid #ffffff;
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Urbanist', sans-serif;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    min-width: 80px;
}

/* Zmiana na czerwony hover */
#safety-quiz .btn-opt:hover {
    background-color: #ff0000;
    border: 1px solid transparent;
    color: #ffffff;
}

/* Zmiana na czerwony dla zaznaczonego przycisku */
#safety-quiz .btn-opt.selected {
    background-color: #ff0000;
    border: 1px solid transparent;
    color: #ffffff;
}

/* ============================================
   WERDYKT — VERDICT BOX
   ============================================ */

.verdict-box {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    animation: fadeIn 0.5s ease-in-out;
}

.verdict-content {
    border: 1px solid #ff0000;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    background-color: #000000;
    max-width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.verdict-content h3 {
    font-size: 24px;
    font-weight: 500;
    text-transform: uppercase;
    color: #ff0000;
    margin-bottom: 15px;
}

.verdict-content p {
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
}

#kontener-po-quizie {
    transition: opacity 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 600px) {
    #safety-quiz .quiz-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    #safety-quiz .quiz-options {
        width: 100%;
    }
    #safety-quiz .btn-opt {
        flex: 1;
    }
}

/* ============================================
   NAWIGACJA
   ============================================ */

/* PROGRESS BAR */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #d42a2a, #ff4444);
    z-index: 100001;
    transition: width 0.1s linear;
    box-shadow: 0 0 10px rgba(212, 42, 42, 0.6);
}

/* STICKY HEADER */
#site-header {
    position: fixed;
    top: 3px;
    left: 0;
    width: 100%;
    z-index: 10000;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s ease, padding 0.3s ease, box-shadow 0.4s ease;
    background: transparent;
}

#site-header.scrolled {
    background: #0b1a1263 !important;
    backdrop-filter: blur(2px) !important;
    -webkit-backdrop-filter: blur(2px) !important;
    padding: 10px 40px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.header-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo-img {
    height: var(--logo-h, 40px) !important;
    width: auto !important;
    max-height: var(--logo-h, 40px) !important;
    display: block;
    transition: height 0.3s ease;
}

#site-header.scrolled .header-logo-img {
    height: calc(var(--logo-h, 40px) * 0.8) !important;
    max-height: calc(var(--logo-h, 40px) * 0.8) !important;
}

/* NAV MENU (desktop) */
.nav-menu {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-menu a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    padding: 4px 0;
    transition: color 0.3s ease;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d42a2a;
    transition: width 0.3s ease;
    box-shadow: 0 0 6px rgba(212, 42, 42, 0.4);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #fff;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* HAMBURGER (mobile + tablet) */
.hamburger,
button.hamburger,
body .hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    z-index: 10003;
    position: fixed;
    top: 14px;
    right: 16px;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    border-radius: 10px;
    padding: 8px;
    width: 38px;
    height: 38px;
    outline: none !important;
    box-shadow: none !important;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.hamburger:hover,
.hamburger:focus {
    border-color: #ef0401 !important;
    background: rgba(0, 0, 0, 0.5) !important;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: #ffffff !important;
    transition: all 0.3s ease;
    border-radius: 2px;
    pointer-events: none;
}

.hamburger.open {
    border-color: #ef0401 !important;
    background: rgba(0, 0, 0, 0.6) !important;
}

.hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
    background: #ef0401 !important;
}
.hamburger.open span:nth-child(2) {
    opacity: 0;
}
.hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
    background: #ef0401 !important;
}

/* MOBILE FULLSCREEN OVERLAY */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(1, 8, 1, 0.97);
    backdrop-filter: blur(20px);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 20px;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.mobile-overlay a::before {
    content: '›';
    color: #d42a2a;
    margin-right: 12px;
    font-weight: 700;
    font-size: 1.6rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay a:hover,
.mobile-overlay a.active {
    color: #fff !important;
    transform: translateX(8px);
}

.mobile-overlay a:hover::before,
.mobile-overlay a.active::before {
    opacity: 1;
}

/* DOT NAVIGATION (boczna) */
.dot-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.dot-nav li {
    position: relative;
}

.dot-nav a {
    display: block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 2px solid #ef0401;
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.dot-nav a:hover {
    border-color: #ef0401;
    background: rgba(239, 4, 1, 0.3);
    box-shadow: 0 0 12px rgba(239, 4, 1, 0.3);
}

.dot-nav a.active {
    border-color: #ef0401;
    background: #ef0401;
    box-shadow: 0 0 12px rgba(239, 4, 1, 0.5),
                0 0 24px rgba(239, 4, 1, 0.2);
    animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(239, 4, 1, 0.4); }
    50%      { box-shadow: 0 0 16px rgba(239, 4, 1, 0.7), 0 0 30px rgba(239, 4, 1, 0.2); }
}

.dot-nav a::before {
    content: attr(data-label);
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(1, 8, 1, 0.95);
    color: #ef0401;
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, right 0.3s ease;
    border: 1px solid rgba(239, 4, 1, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dot-nav a:hover::before {
    opacity: 1;
    right: 26px;
}

.dot-nav li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 16px;
    background: rgba(239, 4, 1, 0.15);
}

/* FLOATING CTA */
.floating-cta,
.floating-cta:link,
.floating-cta:visited,
.floating-cta:active,
.elementor-kit-81 .floating-cta,
body .floating-cta {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    background: #d42a2a !important;
    color: #ffffff !important;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(212, 42, 42, 0.35);
    transform: translateY(80px);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.floating-cta.visible {
    transform: translateY(0);
    opacity: 1;
}

.floating-cta:hover,
.elementor-kit-81 .floating-cta:hover,
body .floating-cta:hover {
    background: #e83838 !important;
    color: #ffffff !important;
    box-shadow: 0 6px 30px rgba(212, 42, 42, 0.5);
    transform: translateY(-2px);
}

.floating-cta svg {
    width: 16px;
    height: 16px;
}

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

@media (max-width: 1024px) {
    .nav-menu { display: none !important; }
    .hamburger,
    button.hamburger,
    body .hamburger { display: flex !important; }
    .dot-nav { display: none; }

    .floating-cta,
    .floating-cta:link,
    .floating-cta:visited,
    body .floating-cta,
    .elementor-kit-81 .floating-cta {
        right: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        border-radius: 0 !important;
        padding: 16px 20px !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
        text-align: center;
        box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.4);
    }

    /* Padding na dole strony żeby CTA nie zasłaniało contentu */
    body {
        padding-bottom: 52px;
    }

    #site-header {
        padding: 14px 20px;
    }

    #site-header.scrolled {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .mobile-overlay a {
        font-size: 1.1rem;
    }
}

/* Admin bar offset */
body.admin-bar .hamburger {
    top: 46px;
}
@media (min-width: 783px) {
    body.admin-bar .hamburger {
        top: 46px;
    }
}

/* === HAMBURGER OVERRIDES (Elementor-proof) === */
body button.hamburger span,
body .hamburger span,
.elementor-page button.hamburger span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    background: #ffffff !important;
    border: none !important;
    border-radius: 2px !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 2px !important;
    padding: 0 !important;
    margin: 0 !important;
}

body button.hamburger.open span:nth-child(1),
body .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px) !important;
    background: #ef0401 !important;
}
body button.hamburger.open span:nth-child(2),
body .hamburger.open span:nth-child(2) {
    opacity: 0 !important;
}
body button.hamburger.open span:nth-child(3),
body .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px) !important;
    background: #ef0401 !important;
}
