/* styles.css - Štýly pre hCaptcha overovací formulár */

/* ==========================================
   ZÁKLADNÉ NASTAVENIA
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00838f;
    --primary-dark: #005662;
    --primary-light: #4fb3bf;
    --success-color: #00c853;
    --error-color: #d32f2f;
    --warning-color: #f57c00;
    --bg-gradient-start: #0d47a1;
    --bg-gradient-end: #00838f;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 40px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 
                 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-primary);
    line-height: 1.6;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */

.container {
    width: 100%;
    max-width: 540px;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* ==========================================
   LANGUAGE SWITCHER
   ========================================== */

.language-switcher {
    position: absolute;
    top: -60px;
    right: 0;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lang-btn svg {
    width: 16px;
    height: 16px;
    opacity: 0.8;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 131, 143, 0.3);
}

.lang-btn:hover svg {
    opacity: 1;
}

.lang-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    cursor: default;
}

.lang-btn.active svg {
    opacity: 1;
}

.lang-btn.active:hover {
    transform: none;
    box-shadow: none;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   VERIFICATION BOX
   ========================================== */

.verification-box {
    background: white;
    border-radius: 20px;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.verification-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

/* ==========================================
   ICON
   ========================================== */

.icon {
    text-align: center;
    margin-bottom: 28px;
}

.icon svg {
    color: var(--primary-color);
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 4px 8px rgba(0, 131, 143, 0.2));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1 {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.description {
    text-align: center;
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 36px;
}

/* ==========================================
   ERROR MESSAGE
   ========================================== */

.error-message {
    background: #ffebee;
    border: 2px solid #ef5350;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 28px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    animation: shakeError 0.5s ease;
}

@keyframes shakeError {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

.error-message svg {
    color: var(--error-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.error-message strong {
    display: block;
    color: var(--error-color);
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.error-message p {
    color: #c62828;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   FORM & CAPTCHA
   ========================================== */

form {
    margin-bottom: 32px;
}

.captcha-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 28px;
    min-height: 78px;
    padding: 12px 0;
}

.h-captcha {
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.h-captcha:hover {
    transform: scale(1.02);
}

/* ==========================================
   SUBMIT BUTTON
   ========================================== */

.submit-btn {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: not-allowed;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.submit-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: white;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 131, 143, 0.4);
}

.submit-btn.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 131, 143, 0.5);
}

.submit-btn.active:hover::before {
    left: 100%;
}

.submit-btn.active:active {
    transform: translateY(0);
}

.submit-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-spinner {
    display: none;
    animation: spin 1s linear infinite;
}

.submit-btn.loading .btn-spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-icon {
    width: 20px;
    height: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.submit-btn.active .btn-icon {
    opacity: 1;
}

.btn-text {
    font-weight: 600;
}

/* ==========================================
   INFO BOX
   ========================================== */

.info-box {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 20px;
    margin-top: 28px;
}

.info-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box h3 svg {
    color: var(--primary-color);
}

.info-box p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.info-features {
    display: grid;
    gap: 10px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: white;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.feature:hover {
    transform: translateX(4px);
}

.feature svg {
    color: var(--primary-color);
    flex-shrink: 0;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    text-align: center;
    margin-top: 32px;
    animation: fadeIn 1s ease 0.5s both;
}

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

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer svg {
    width: 16px;
    height: 16px;
}

.powered-by {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

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

@media (max-width: 600px) {
    body {
        padding: 16px;
    }
    
    .verification-box {
        padding: 36px 24px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .description {
        font-size: 14px;
    }
    
    .icon svg {
        width: 60px;
        height: 60px;
    }
    
    .h-captcha {
        transform: scale(0.9);
    }
    
    .submit-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* Language switcher na mobile */
    .language-switcher {
        top: -50px;
        right: 0;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
    
    .lang-btn svg {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 400px) {
    .verification-box {
        padding: 28px 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .h-captcha {
        transform: scale(0.85);
    }
    
    .info-features {
        font-size: 12px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

.submit-btn:focus,
.h-captcha:focus {
    outline: 3px solid var(--primary-light);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==========================================
   DARK MODE (voliteľné)
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Môžeš pridať dark mode štýly ak chceš */
}
