/* ========================================
   KOLORY JOTUN
   ======================================== */
:root {
    --jotun-blue: #031E45;
    --jotun-red: #D52B1E;
    --jotun-yellow: #F0AB00;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #CCCCCC;
    --text-dark: #333333;
    --text-gray: #666666;
    --border-color: #E0E0E0;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--jotun-blue);
    color: var(--text-dark);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
}

/* ========================================
   LAYOUT 2-KOLUMNOWY
   ======================================== */
.app-wrapper {
    width: 100%;
    max-width: 1200px;
}

.main-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* LEWA KOLUMNA - Wizard */
.wizard-column {
    flex: 2;
    background: var(--white);
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    min-height: 500px;
}

.wizard-header h1 {
    color: var(--jotun-blue);
    margin-bottom: 5px;
    font-size: 1.8rem;
}

.wizard-header p {
    color: var(--jotun-yellow);
    font-weight: 500;
    margin-bottom: 15px;
}

/* Progress Bar */
.progress-bar-container {
    height: 6px;
    background: var(--medium-gray);
    border-radius: 3px;
    margin-top: 15px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--jotun-red);
    width: 0%;
    transition: width 0.3s ease;
}

/* Pytania */
.question-title {
    font-size: 1.5rem;
    margin: 20px 0 10px 0;
    font-weight: 700;
    color: var(--jotun-blue);
}

.question-help {
    color: var(--text-gray);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Opcje */
.options-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.option-btn {
    background: var(--jotun-blue);
    color: var(--white);
    padding: 15px;
    border-radius: 6px;
    border: none;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
    width: 100%;
}

.option-btn:hover {
    transform: translateX(5px);
    background: #052a5e;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 3px;
}

/* Inputs */
.input-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.form-control {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Roboto', sans-serif;
}

.form-control:focus {
    outline: none;
    border-color: var(--jotun-blue);
}

.btn-primary {
    background: var(--jotun-yellow);
    color: var(--white);
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: #d99a00;
}

/* ========================================
   PRAWA KOLUMNA - Summary
   ======================================== */
.summary-column {
    flex: 1;
    display: none;
}

@media (min-width: 900px) {
    .summary-column {
        display: block;
    }
}

.sticky-summary {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    position: sticky;
    top: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.summary-item {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    border-left: 5px solid var(--jotun-yellow);
    font-size: 0.9rem;
    margin-top: 10px;
    animation: slideIn 0.3s ease;
}

.summary-label {
    display: block;
    font-size: 0.75rem;
    font-weight: bold;
    opacity: 0.8;
    margin-bottom: 2px;
}

.summary-value {
    display: block;
}

.btn-reset {
    width: 100%;
    margin-top: 20px;
    padding: 10px;
    background: transparent;
    border: 1px solid var(--medium-gray);
    border-radius: 6px;
    cursor: pointer;
    color: var(--text-gray);
    font-family: 'Roboto', sans-serif;
    transition: all 0.2s;
}

.btn-reset:hover {
    background: var(--light-gray);
}

/* ========================================
   RAL PICKER
   ======================================== */
.ral-section {
    margin-top: 15px;
}

.ral-chip {
    display: inline-block;
    padding: 8px 15px;
    margin: 5px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.ral-chip:hover {
    background: var(--jotun-blue);
    color: white;
    border-color: var(--jotun-blue);
}

.ral-color-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #ddd;
    vertical-align: middle;
}

/* ========================================
   WYNIKI
   ======================================== */
.result-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: white;
}

.result-card.recommended {
    border: 2px solid var(--jotun-yellow);
}

.result-card.info-card {
    border: 2px solid #0288d1;
    background: #f0f7ff;
}

.badge {
    background: var(--jotun-yellow);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

.badge.recommended {
    background: var(--jotun-red);
    color: white;
}

.badge.alternative {
    background: var(--jotun-blue);
    color: white;
}

.badge.info {
    background: #0288d1;
    color: white;
}

.narrative-content {
    line-height: 1.8;
    font-size: 0.95rem;
}

.narrative-content p {
    margin-bottom: 1rem;
}

.narrative-content h3 {
    color: var(--jotun-blue);
    font-size: 1.3rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.narrative-content h4 {
    color: var(--jotun-blue);
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.narrative-content strong {
    color: var(--jotun-blue);
    font-weight: 600;
}

.narrative-content ul {
    margin-left: 20px;
    margin-bottom: 1rem;
    list-style-type: disc;
}

.narrative-content li {
    margin-bottom: 0.3rem;
}

.narrative-content hr {
    border: none;
    border-top: 2px solid #E0E0E0;
    margin: 20px 0;
}

.btn-shop {
    display: block;
    background: var(--jotun-red);
    color: white;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 15px;
    transition: all 0.2s;
}

.btn-shop:hover {
    background: #b92419;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(3, 30, 69, 0.7);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--jotun-yellow);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

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

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
    .main-container {
        flex-direction: column;
    }
    
    .wizard-column {
        padding: 20px;
    }
}
