/* style.css - Styly pro CEIB ROI Kalkulačku */
/* Umístění: www/subdom/roi/style.css */

/* === RESET A ZÁKLADY === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === LOADING SCREEN === */
.loading-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #10b981 50%, #0f172a 100%);
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-screen p {
    color: white;
    margin-top: 20px;
    font-size: 18px;
}

/* === MAIN CONTAINER === */
#app {
    min-height: 100vh;
}

.screen {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a 0%, #047857 50%, #0f172a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 640px;
}

.container-large {
    max-width: 768px;
}

/* === CARDS === */
.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.icon-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
    font-size: 48px;
}

.icon-medium {
    width: 64px;
    height: 64px;
    font-size: 32px;
}

/* === TYPOGRAPHY === */
h1 {
    font-size: 36px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

h2 {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

h3 {
    font-size: 24px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 20px;
    color: #a7f3d0;
    margin-bottom: 8px;
}

.description {
    font-size: 16px;
    color: rgba(167, 243, 208, 0.8);
}

/* === PROGRAM GRID === */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.program-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.program-card .icon {
    font-size: 36px;
    margin-bottom: 8px;
}

.program-card .name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.program-card .price {
    font-size: 14px;
    color: #6ee7b7;
}

.program-card .duration {
    font-size: 12px;
    color: rgba(110, 231, 183, 0.7);
}

/* === BUTTONS === */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    font-weight: 600;
    font-size: 16px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
    transform: scale(1.02);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* === OPTIONS (pro výběr odpovědí) === */
.options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: #d1fae5;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}

.option:hover {
    border-color: rgba(16, 185, 129, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.option.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.2);
    color: white;
}

.option .icon {
    font-size: 28px;
    flex-shrink: 0;
}

.option .text {
    flex: 1;
}

.option .detail {
    text-align: right;
}

.option .detail-price {
    font-size: 14px;
    color: #6ee7b7;
}

.option .detail-duration {
    font-size: 12px;
    color: rgba(110, 231, 183, 0.7);
}

/* === PROGRESS BAR === */
.progress-wrapper {
    margin-bottom: 32px;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6ee7b7;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
    border-radius: 999px;
    transition: width 0.5s ease;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    color: #a7f3d0;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: rgba(167, 243, 208, 0.5);
}

.form-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.form-input.error {
    border-color: #f87171;
}

.form-input.error:focus {
    border-color: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.error-message {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fca5a5;
    font-size: 14px;
    margin-top: 8px;
}

.form-note {
    text-align: center;
    color: rgba(110, 231, 183, 0.6);
    font-size: 12px;
    margin-top: 16px;
}

/* === BACK BUTTON === */
.back-button {
    margin-top: 16px;
    text-align: center;
}

.back-link {
    color: #6ee7b7;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: white;
}

/* === RESULT SCREEN === */
.result-header {
    text-align: center;
    margin-bottom: 32px;
}

.result-program-icon {
    display: inline-flex;
    align-items: center;
    justify-center;
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 48px;
}

.result-title {
    font-size: 32px;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.result-subtitle {
    font-size: 16px;
    color: #a7f3d0;
}

/* === ROI CARD === */
.roi-main-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
    text-align: center;
}

.roi-label {
    color: #6ee7b7;
    font-size: 14px;
    margin-bottom: 8px;
}

.roi-percentage {
    font-size: 56px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.roi-years {
    color: #a7f3d0;
    font-size: 14px;
    margin-bottom: 24px;
}

.roi-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.metric-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px;
}

.metric-label {
    color: #6ee7b7;
    font-size: 12px;
    margin-bottom: 4px;
}

.metric-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

/* === COMPARISON SECTION === */
.comparison-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.comparison-item {
    margin-bottom: 24px;
}

.comparison-item:last-child {
    margin-bottom: 0;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.comparison-label {
    color: #6ee7b7;
}

.comparison-value {
    color: white;
    font-weight: 600;
}

.progress-bar-visual {
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 1s ease;
}

.progress-bar-fill.green {
    background: #10b981;
}

.progress-bar-fill.gradient {
    background: linear-gradient(90deg, #10b981 0%, #14b8a6 100%);
}

.highlight-box {
    margin-top: 16px;
    padding: 16px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.highlight-label {
    color: #a7f3d0;
    font-size: 14px;
}

.highlight-value {
    color: white;
    font-size: 24px;
    font-weight: 700;
}

/* === TIMELINE === */
.timeline-section {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 24px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}

.timeline-icon.emerald {
    background: #10b981;
}

.timeline-icon.teal {
    background: #14b8a6;
}

.timeline-content {
    flex: 1;
}

.timeline-title {
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-text {
    color: #6ee7b7;
    font-size: 14px;
}

/* === CTA SECTION === */
.cta-section {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(20, 184, 166, 0.2) 100%);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(16, 185, 129, 0.3);
    text-align: center;
    margin-bottom: 24px;
}

.cta-title {
    font-size: 20px;
    color: white;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-text {
    color: #a7f3d0;
    margin-bottom: 16px;
    font-size: 14px;
}

.cta-button {
    display: inline-block;
    padding: 12px 32px;
    background: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    color: white;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cta-button:hover {
    background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
}

/* === FOOTER === */
.footer {
    text-align: center;
    color: rgba(110, 231, 183, 0.6);
    font-size: 14px;
    margin-top: 24px;
}

.footer-logo {
    opacity: 0.6;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 12px;
    color: rgba(167, 243, 208, 0.4);
}

/* === TIME NOTE === */
.time-note {
    text-align: center;
    color: rgba(110, 231, 183, 0.6);
    font-size: 14px;
    margin-top: 16px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .card {
        padding: 24px;
        border-radius: 20px;
    }
    
    .icon-large {
        width: 64px;
        height: 64px;
        font-size: 36px;
    }
    
    .roi-percentage {
        font-size: 48px;
    }
    
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .screen {
        padding: 16px;
    }
    
    .card {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 18px;
    }
    
    .roi-percentage {
        font-size: 40px;
    }
    
    .metric-value {
        font-size: 20px;
    }
}

/* === ANIMATIONS === */
/* Animace vypnuty pro okamžitý přechod */
.fade-in {
    /* Žádná animace */
}

.screen {
    /* Žádný přechod */
}

.card {
    /* Žádný přechod */
}

/* === UTILITY CLASSES === */
.hidden {
    display: none !important;
}

.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-6 {
    margin-bottom: 24px;
}

.mt-4 {
    margin-top: 16px;
}
