/* diet-check.css — Styles for the "Sprawdź dietę" flow */

/* Step indicator */
.dc-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 1.5rem;
}

.dc-step {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dc-step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.dc-step-dot.active {
    background: #2e7d32;
    color: #fff;
}

.dc-step-dot.completed {
    background: #4caf50;
    color: #fff;
}

.dc-step-label {
    font-size: 0.8rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

.dc-step-label.active {
    color: #2e7d32;
    font-weight: 600;
}

.dc-step-line {
    width: 40px;
    height: 2px;
    background: #dee2e6;
    margin: 0 0.5rem;
    transition: background 0.3s ease;
}

.dc-step-line.completed {
    background: #4caf50;
}

/* Gender selector */
.dc-gender-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.dc-gender-btn {
    flex: 1;
    max-width: 180px;
    padding: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.dc-gender-btn:hover {
    border-color: #2e7d32;
}

.dc-gender-btn.selected {
    border-color: #2e7d32;
    background: #f0fdf4;
}

.dc-gender-btn i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

.dc-gender-btn.selected i {
    color: #2e7d32;
}

/* Step transitions */
.dc-step-panel {
    animation: dcFadeIn 0.3s ease;
}

@keyframes dcFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero section */
.dc-hero {
    text-align: center;
    padding: 1.5rem 1rem 0.5rem;
}

.dc-hero h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b5e20;
    margin-bottom: 0.5rem;
}

.dc-hero p {
    color: #6c757d;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form card */
.dc-card {
    max-width: 540px;
    margin: 0 auto 1.5rem;
}

.dc-card .form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.dc-card .form-control,
.dc-card .form-select {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-radius: 8px;
}

/* Mini percentile gauges */
.dc-gauges {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.75rem 0;
}

.dc-gauge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.dc-gauge-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s ease;
}

.dc-gauge-ring.dc-gauge-ok {
    border-color: #4caf50;
}

.dc-gauge-ring.dc-gauge-warning {
    border-color: #ff9800;
}

.dc-gauge-ring.dc-gauge-problem {
    border-color: #f44336;
}

.dc-gauge-value {
    font-weight: 700;
    font-size: 0.85rem;
    color: #333;
}

.dc-gauge-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dc-gauge-base {
    font-size: 0.7rem;
    color: #999;
}

/* Percentile curve charts (small on screen) */
.dc-charts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee;
}

.dc-chart-wrap {
    flex: 1 1 150px;
    max-width: 180px;
}

.dc-chart-title {
    font-size: 0.65rem;
    font-weight: 600;
    color: #555;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.dc-chart-container {
    width: 100%;
    height: 120px;
}

@media (max-width: 576px) {
    .dc-chart-wrap {
        max-width: 48%;
    }

    .dc-chart-container {
        height: 100px;
    }
}

/* Premature toggle */
.dc-premature-toggle {
    cursor: pointer;
    color: #6c757d;
    font-size: 0.9rem;
    user-select: none;
}

.dc-premature-toggle:hover {
    color: #2e7d32;
}

/* Payment card */
.dc-payment-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 540px;
    margin: 0 auto;
}

/* Large touch-friendly buttons */
.dc-btn-next {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
    min-height: 48px;
}

/* Report page thumbnails — click to zoom */
.dc-report-thumb {
    cursor: zoom-in;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dc-report-thumb:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Disclaimer */
.dc-disclaimer {
    font-size: 0.8rem;
    color: #6c757d;
    max-width: 540px;
    margin: 1rem auto;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .dc-hero h1 {
        font-size: 1.3rem;
    }

    .dc-step-label {
        display: none;
    }

    .dc-step-line {
        width: 24px;
    }

    .dc-gender-btn {
        padding: 0.75rem;
    }

    .dc-gender-btn i {
        font-size: 1.5rem;
    }
}
