/* Gotthard Épületenergetika - Custom styles */

html {
    scroll-behavior: smooth;
}

/* Szép szöveg gradient */
.text-gradient {
    background: linear-gradient(to right, #ffffff, #e2e8f0, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mozgó narancssárga gradient a Hőfényképezés szövegen - kecses folyamatos áramlás */
.text-gradient-tech {
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradientShift 8s linear infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 200% 50%;
    }
}

/* Minimális derengés a főcím szöveg mögött (lágy, mély háttérfény) */
.hero-title {
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    top: -15%;
    left: -8%;
    width: 116%;
    height: 130%;
    background: linear-gradient(90deg, #f97316, #fbbf24, #f97316);
    background-size: 200% 100%;
    animation: gradientShift 8s linear infinite;
    z-index: -1;
    opacity: 0.06;
    filter: blur(40px);
    border-radius: 40%;
    pointer-events: none;
}

/* Hero hőkamera stílusú háttér */
.hero-thermal-bg {
    background:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(15, 23, 42, 0.8), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(16, 185, 129, 0.08), transparent),
        radial-gradient(ellipse 50% 50% at 20% 80%, rgba(249, 115, 22, 0.06), transparent),
        linear-gradient(180deg, #030712 0%, #0B1220 50%, #030712 100%);
}

/* Építészeti blueprint rács overlay - mérnöki precizitás */
.blueprint-grid {
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.07) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 1;
    pointer-events: none;

    /* Interaktív parallax - a JS frissíti a --mouse-x és --mouse-y változókat */
    transform: translate(calc(var(--mouse-x, 0) * 15px),
            calc(var(--mouse-y, 0) * 15px));
    transition: transform 0.5s ease-out;
    will-change: transform;
}

/* Glass kártya */
.glass-card {
    background-color: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: rgba(71, 85, 105, 0.6);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Glowing CTA gomb */
.btn-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

/* Beviteli mezők dark theme */
.form-input {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(51, 65, 85, 0.8);
    color: #f8fafc;
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
    outline: none;
}

.form-input::placeholder {
    color: #64748b;
}

/* Reszponzív tabella (admin) */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th,
.admin-table td {
    padding: 0.875rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(30, 41, 59, 0.8);
}

.admin-table tbody tr:hover {
    background-color: rgba(15, 23, 42, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Üzenet státusz jelvények */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-unread {
    background-color: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

.status-read {
    background-color: rgba(148, 163, 184, 0.1);
    color: #94a3b8;
}

/* Facebook ikon stílus */
.facebook-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    transition: all 0.3s ease;
}

.facebook-icon:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* Desktop menü középre igazítása */
.desktop-nav-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

/* Desktop nav konténer pozicionálás */
.nav-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ============================================
   KodStudio promo (front-end) – mobil ikon + desktop floating + értesítés
   ============================================ */

/* Desktop floating button – lilás-rózsaszín, folyamatosan lágyan változó színek */
.kodstudio-float {
    background: linear-gradient(135deg, #c026ff, #db2777, #f472b6, #c026ff);
    background-size: 300% 300%;
    animation: kodstudioGradient 7s ease infinite;
    box-shadow: 0 0 25px rgba(192, 38, 255, 0.35);
}

.kodstudio-float:hover {
    box-shadow: 0 0 35px rgba(192, 38, 255, 0.5);
}

@keyframes kodstudioGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Promo értesítés / notification card */
#kodstudioPromo {
    /* A show/hide a JS-ben történik (hidden + transition) */
}

.kodstudio-promo-card {
    /* További finomhangolás ha szükséges a .glass-card mellé */
}

/* A notification belsejében lévő CTA gomb finom hover */
#kodstudioPromo a {
    transition: transform 0.1s ease, filter 0.2s ease;
}

#kodstudioPromo a:hover {
    filter: brightness(1.1);
}

/* Mobil hívás floating gomb - a ping effekt a HTML-ben van (animate-ping span) */

/* Scroll-reveal animáció a főoldal bizalomkártyáihoz */
.reveal-card {
    /* Initial state (opacity + transform) is set via JS for graceful degradation.
       If JS is disabled, cards remain fully visible. */
}

/* (phone-neon effect removed per request - no rotating/pulsing on desktop header phone button) */

/* KodStudio promo ikon a mobil headerben - illeszkedik a facebook-icon stílusához */
.kodstudio-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
}

.kodstudio-icon:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.kodstudio-icon:active {
    transform: scale(0.95);
}

/* Custom Cursor */
@media (hover: hover) and (pointer: fine) {
    body {
        cursor: none;
    }
    a, button, input, textarea, select, [role="button"], .facebook-icon, .kodstudio-float {
        cursor: none;
    }
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #ff8c00;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
    mix-blend-mode: difference;
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}

/* Thermal Canvas */
#thermal-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Floating Thermal Particles */
#particles-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.thermal-particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle linear infinite;
    opacity: 0.6;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}