/* === CSS PREMENNÉ A DESIGN SYSTÉM === */
:root {
    --font-main: 'Inter', sans-serif;
    
    /* ZÁKLADNÁ TÉMA: SIVÁ (Default) */
    --primary-gradient: linear-gradient(135deg, #757575 0%, #212121 100%);
    --primary-color: #424242;
    --secondary-color: #ff9800; /* Komplementárna na tlačidlá / akcenty */
    --secondary-hover: #e68a00;
    
    --bg-main: #f8fafc;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 10px 25px rgba(0,0,0,0.1);
}

/* === FAREBNÉ SCHÉMY (Dynamicky prepínané cez data-theme na body) === */
[data-theme="red"] {
    --primary-gradient: linear-gradient(135deg, #b71c1c 0%, #7f0000 100%); /* Oveľa jemnejšia tlmenejšia červená (burgunská / vínová) */
    --primary-color: #b71c1c;
    --secondary-color: #ffd54f; /* Zlatá/Žltá komplementárna */
    --secondary-hover: #ffca28;
}

[data-theme="cyan"] {
    --primary-gradient: linear-gradient(135deg, #00acc1 0%, #006064 100%);
    --primary-color: #00acc1;
    --secondary-color: #ec407a; /* Ružová komplementárna */
    --secondary-hover: #d81b60;
}

[data-theme="lime"] {
    --primary-gradient: linear-gradient(135deg, #7cb342 0%, #33691e 100%);
    --primary-color: #558b2f;
    --secondary-color: #ff5722; /* Výrazná oranžová komplementárna */
    --secondary-hover: #e64a19;
}

[data-theme="blue"] {
    --primary-gradient: linear-gradient(135deg, #1e88e5 0%, #0d47a1 100%);
    --primary-color: #1565c0;
    --secondary-color: #ffeb3b; /* Žltá komplementárna */
    --secondary-hover: #fbc02d;
}

[data-theme="green"] {
    --primary-gradient: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    --primary-color: #2e7d32;
    --secondary-color: #d32f2f; /* Červená komplementárna */
    --secondary-hover: #b71c1c;
}

/* === RESTS & TYPOGRAFIA === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    /* Dynamický transition pre hladkú zmenu témy */
    transition: background-color 0.5s ease; 
}

h1, h2, h3 { line-height: 1.2; font-weight: 800; }

.hidden { display: none !important; }

/* === 1. LANDING OBRAZOVKA === */
#landing-screen.screen-active {
    display: flex;
    min-height: 100vh;
    /* Dvojitý gradient: zvislý modro-čierny blendovaný so základnou farebnou témou */
    background: linear-gradient(to bottom, rgba(15,23,42,0.4) 0%, rgba(15,23,42,0.95) 100%), var(--primary-gradient);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.landing-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    gap: 40px;
    align-items: center;
}
/* Responzivita pre formulár vs text */
@media (max-width: 900px) {
    .landing-container {
        flex-direction: column;
        text-align: center;
    }
}

.branding {
    flex: 1;
    color: var(--text-light);
}

.branding h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.branding p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Glassmorphism Card */
.glass-card {
    flex: 1;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.form-container h2 {
    margin-bottom: 25px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05); /* Soft focus */
}

.form-group textarea {
    resize: vertical;
}

/* === FARBOVÝ VÝBER (Color Swatches) === */
.color-picker {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.color-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    outline: none;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: #1e293b;
    transform: scale(1.15);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    filter: brightness(1.1);
}

.btn-secondary {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
}
.btn-secondary:hover {
    background: #f1f5f9;
}

/* === LOADING OVERLAY === */
#loading-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loader-text { color: var(--text-dark); }

/* === 2. VYGENEROVANÝ MOCKUP === */
.mockup-header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* Dvojitý gradient: jeden zhora nadol na stmavenosť, druhý šikmý vo farbe témy na hĺbku */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.95) 100%),
                linear-gradient(135deg, rgba(255,255,255,0) 0%, var(--primary-color) 100%);
    opacity: 0.65; /* Zrnížila sa hodnota opacity zo 0.85 na 0.65, aby 100% nádherne vynikla fotografia */
    z-index: 1;
}

.mockup-nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mockup-nav .logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-secondary-accent {
    background: var(--secondary-color);
    color: #111 !important;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 800;
}
.btn-secondary-accent:hover {
    background: var(--secondary-hover);
    color: white !important;
}

.header-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-content {
    flex: 1;
    max-width: 800px;
}

.role-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    border-radius: 30px;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid rgba(255,255,255,0.3);
}

.text-content h1 {
    font-size: 5.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.text-content .motto {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    opacity: 0.9;
}

.photo-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.photo-circle-wrapper {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    overflow: hidden;
    border: 10px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    background: #ccc; /* fallback placeholder */
    transition: transform 0.3s ease;
}

.photo-circle-wrapper:hover {
    transform: scale(1.02);
}

.photo-circle-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    padding: 14px 20px;
    margin-left: 15px;
    display: inline-block;
}
.btn-outline:hover {
    background: white;
    color: var(--primary-color);
}

/* === SEKCIA PRIORITY === */
.mockup-section {
    padding: 100px 5% 180px 5%; /* Výrazný bottom padding aby posledné prvky nesplývali so sticky bannerom */
    background: white;
}
.container-1920 {
    max-width: 1920px;
    margin: 0 auto;
}
.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    color: var(--primary-color);
}

.priorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.priority-card {
    background: var(--bg-main);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border-top: 4px solid var(--secondary-color);
    position: relative;
    overflow: hidden;
}

.priority-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.priority-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--primary-color);
    opacity: 0.08;
    position: absolute;
    top: 5px;
    right: 20px;
    line-height: 1;
    z-index: 0;
}

.priority-card h3 {
    margin-bottom: 15px;
    margin-top: 10px;
    color: var(--primary-color);
    font-size: 1.3rem;
    position: relative;
    z-index: 1;
}

.priority-card p {
    color: #475569;
    position: relative;
    z-index: 1;
}

/* === STICKY SALES BANNER === */
#sales-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #111;
    color: white;
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
    border-top: 3px solid var(--secondary-color);
}

.banner-content {
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text strong {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 3px;
    color: var(--secondary-color);
}
.banner-text span {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* === SALES MODAL === */
#sales-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal-body {
    position: relative;
    max-width: 500px;
    width: 100%;
    background: #ffffff; /* Čisté biele pozadie modálu */
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}
.modal-body h2 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.modal-body p {
    color: var(--text-dark);
    margin-bottom: 25px;
    font-size: 0.95rem;
}
.modal-body .form-group input, .modal-body .form-group select, .modal-body .form-group textarea {
    background: #f8fafc;
}
.modal-body .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
    resize: vertical;
}
.modal-body .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    background: none; border: none; font-size: 2rem; cursor: pointer; color: #64748b;
    transition: color 0.2s;
}
.close-modal:hover {
    color: #0f172a;
}

/* === VALIDÁCIA FORMULÁRA === */
.form-group input.input-error,
.form-group select.input-error {
    border: 2px solid #dc2626 !important;
    background: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}
.form-group .error-msg {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
    font-weight: 500;
}

/* === RESPONSIVE UTILS === */
@media (max-width: 1024px) {
    .header-content { flex-direction: column; text-align: center; gap: 40px; padding-top: 60px; }
    .text-content h1 { font-size: 3.5rem; }
    .photo-circle-wrapper { width: 300px; height: 300px; }
    .nav-links { display: none; /* Dalo by sa spravit hamburger menu */ }
}
@media (max-width: 768px) {
    .text-content h1 { font-size: 2.5rem; }
    .text-content .motto { font-size: 1.3rem; }
    .banner-content { flex-direction: column; text-align: center; gap: 15px; }
}
