/* ==========================================================================
   SCANDISHOP CALCULATORS SYSTEM STYLESHEET
   Style skandynawski, optymalizacja pod Mobile, UX & SEO
   ========================================================================== */

.scandi-calc-wrapper {
    max-width: 1100px;
    margin: 0 auto 50px auto;
    font-family: var(--font-primary, 'Inter', sans-serif);
    color: var(--color-text, #1a1a1a);
}

.scandi-calc-card {
    background: #ffffff;
    border: 1px solid var(--color-border, #e5e2dc);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.05);
    padding: 32px;
    margin-bottom: 40px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scandi-calc-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--color-border, #e5e2dc);
}

.scandi-calc-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-secondary, #f6f5f2);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.scandi-calc-title {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 32px;
    font-weight: 600;
    margin: 8px 0;
    color: #111827;
}

.scandi-calc-subtitle {
    font-size: 15px;
    color: var(--color-muted, #6c6c6c);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Grid Layout */
.scandi-calc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

@media (max-width: 868px) {
    .scandi-calc-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .scandi-calc-card {
        padding: 20px;
        border-radius: 12px;
    }
    .scandi-calc-title {
        font-size: 26px;
    }
}

/* Form Controls */
.scandi-calc-inputs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scandi-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.scandi-input-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scandi-input-hint {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
}

.scandi-input-control-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.scandi-input-field {
    width: 100%;
    height: 48px;
    padding: 10px 16px;
    padding-right: 50px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 16px;
    font-family: inherit;
    color: #111827;
    background: #fafafa;
    transition: all 0.2s ease;
}

.scandi-input-field:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.scandi-input-unit {
    position: absolute;
    right: 14px;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    pointer-events: none;
}

select.scandi-input-field {
    padding-right: 36px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%36B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

/* Range Slider */
.scandi-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.scandi-range-slider {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: #e5e7eb;
    outline: none;
}

.scandi-range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #2563eb;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4);
    transition: transform 0.1s ease;
}

.scandi-range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* Result Card */
.scandi-calc-outputs {
    background: var(--bg-secondary, #f6f5f2);
    border: 1px solid var(--color-border, #e5e2dc);
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.scandi-output-primary {
    background: #ffffff;
    border: 1.5px solid #2563eb;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
}

.scandi-output-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4b5563;
    margin-bottom: 6px;
}

.scandi-output-value {
    font-size: 38px;
    font-weight: 800;
    color: #1d4ed8;
    line-height: 1.1;
}

.scandi-output-unit {
    font-size: 20px;
    font-weight: 600;
    color: #3b82f6;
    margin-left: 4px;
}

.scandi-output-breakdown {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.scandi-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #ffffff;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #e5e7eb;
}

.scandi-breakdown-row span:first-child {
    color: #4b5563;
    font-weight: 500;
}

.scandi-breakdown-row span:last-child {
    color: #111827;
    font-weight: 700;
}

.scandi-calc-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.scandi-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.scandi-btn-secondary {
    background: #ffffff;
    color: #374151;
    border: 1px solid #d1d5db;
}

.scandi-btn-secondary:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.scandi-btn-outline {
    background: transparent;
    color: #2563eb;
    border: 1px solid #2563eb;
}

.scandi-btn-outline:hover {
    background: #eff6ff;
}

/* Article & SEO Content */
.scandi-article-wrapper {
    background: #ffffff;
    border: 1px solid var(--color-border, #e5e2dc);
    border-radius: 16px;
    padding: 40px;
    line-height: 1.8;
    font-size: 16px;
    color: #2d3748;
}

.scandi-article-wrapper h2 {
    font-family: var(--font-serif, 'Cormorant Garamond', serif);
    font-size: 28px;
    font-weight: 600;
    color: #1a202c;
    margin: 36px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--bg-secondary, #f6f5f2);
}

.scandi-article-wrapper h2:first-of-type {
    margin-top: 0;
}

.scandi-article-wrapper h3 {
    font-size: 20px;
    font-weight: 700;
    color: #2d3748;
    margin: 24px 0 12px 0;
}

.scandi-article-wrapper p {
    margin-bottom: 18px;
}

.scandi-article-wrapper ul {
    margin: 20px 0 24px 24px;
    padding: 0;
}

.scandi-article-wrapper li {
    margin-bottom: 10px;
    line-height: 1.7;
}

.scandi-box-tip {
    background: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
}

.scandi-box-tip strong {
    color: #15803d;
}

.scandi-box-info {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 20px;
    border-radius: 0 10px 10px 0;
    margin: 24px 0;
}

.scandi-box-info strong {
    color: #1d4ed8;
}

.scandi-faq-accordion {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.scandi-faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
}

.scandi-faq-question {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 17px;
    color: #111827;
    background: #f9fafb;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.scandi-faq-answer {
    padding: 18px 20px;
    font-size: 15px;
    color: #4b5563;
    border-top: 1px solid #e5e7eb;
    line-height: 1.7;
}

/* Hub Directory Grid */
.scandi-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.scandi-hub-card {
    background: #ffffff;
    border: 1px solid var(--color-border, #e5e2dc);
    border-radius: 14px;
    padding: 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
}

.scandi-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    border-color: #2563eb;
}

.scandi-hub-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.scandi-hub-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #111827;
}

.scandi-hub-desc {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.scandi-hub-link {
    font-size: 14px;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    gap: 6px;
}

.scandi-search-box {
    margin-bottom: 30px;
    position: relative;
}

.scandi-search-input {
    width: 100%;
    height: 56px;
    padding: 12px 20px 12px 50px;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    font-size: 17px;
    outline: none;
    transition: border-color 0.2s;
}

.scandi-search-input:focus {
    border-color: #2563eb;
}

.scandi-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #9ca3af;
}

/* Toast Notice */
.scandi-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #111827;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    animation: scandiFadeIn 0.3s ease;
}

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