/* Scent Finder Stylesheet - KINEM London Premium Style */

:root {
    --gold: #6E5C7B;
    --gold-soft: #d8c096;
}

.scent-finder-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    min-height: 500px;
    scroll-margin-top: 100px;
}

/* Stepper progress tracker */
.scent-stepper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    scroll-margin-top: 100px;
}

.scent-stepper::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(110, 92, 123, 0.12);
    transform: translateY(-50%);
    z-index: 1;
}

.scent-stepper-progress {
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-soft), var(--gold));
    transform: translateY(-50%);
    z-index: 2;
    transition: width 0.4s ease;
    width: 0%;
}

html[dir="rtl"] .scent-stepper-progress {
    left: auto;
    right: 0;
}

.scent-stepper-step {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--surface-strong, #fff);
    border: 2px solid rgba(110, 92, 123, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--muted);
    position: relative;
    z-index: 3;
    transition: all 0.35s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

.scent-stepper-step.is-active {
    border-color: var(--gold);
    color: var(--text);
    background: var(--surface-strong, #fff);
    box-shadow: 0 0 0 5px rgba(110, 92, 123, 0.15);
    transform: scale(1.1);
}

.scent-stepper-step.is-completed {
    border-color: var(--gold);
    background: var(--gold);
    color: #fff;
}

/* Question Header band */
.scent-question-band {
    text-align: center;
    margin-bottom: 36px;
    animation: sfFadeInUp 0.6s ease both;
}

.scent-question-band h2 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text);
    margin: 8px 0 12px;
    line-height: 1.2;
    font-weight: 700;
}

body.is-rtl .scent-question-band h2 {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    line-height: 1.45;
}

.scent-question-band p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Stepper step panel wrapper */
.scent-step-panel {
    display: none;
}

.scent-step-panel.is-active {
    display: block;
    animation: sfFadeInUp 0.5s ease both;
}

/* Option Grid */
.scent-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.scent-option-card {
    background: var(--surface);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(110, 92, 123, 0.10);
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scent-option-card:hover {
    transform: translateY(-6px);
    border-color: rgba(110, 92, 123, 0.35);
    box-shadow: 0 20px 45px rgba(110, 92, 123, 0.12);
}

.scent-option-card.is-selected {
    border-color: var(--gold);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(245, 240, 248, 0.90));
    box-shadow: 0 16px 36px rgba(110, 92, 123, 0.12);
    transform: scale(1.02);
}

.scent-option-card.is-selected::after {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    top: 16px;
    right: 16px;
    color: var(--gold);
    font-size: 0.9rem;
    background: rgba(110, 92, 123, 0.08);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[dir="rtl"] .scent-option-card.is-selected::after {
    right: auto;
    left: 16px;
}

.scent-option-icon {
    font-size: 1.85rem;
    color: var(--gold);
    background: rgba(110, 92, 123, 0.06);
    width: 64px;
    height: 64px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.scent-option-card:hover .scent-option-icon {
    transform: scale(1.1);
    background: rgba(110, 92, 123, 0.12);
}

.scent-option-card h3 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--text);
    font-weight: 700;
    line-height: 1.35;
}

/* Nav Action Row */
.scent-nav-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

/* Diffusion Loader */
.scent-diffusion-loader {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: sfFadeIn 0.4s ease both;
}

.scent-diffusion-loader.is-active {
    display: block;
}

.scent-diffusion-waves {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 36px;
}

.scent-diffusion-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 92, 123, 0.25) 0%, transparent 75%);
    width: 20px;
    height: 20px;
    opacity: 0;
    animation: sfPulseScent 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.scent-diffusion-circle:nth-child(2) {
    animation-delay: 0.8s;
}

.scent-diffusion-circle:nth-child(3) {
    animation-delay: 1.6s;
}

.scent-diffusion-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 8px 24px rgba(110, 92, 123, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    z-index: 4;
}

.scent-loader-text {
    font-size: 1.25rem;
    font-family: "Cormorant Garamond", serif;
    color: var(--text);
    margin: 16px 0 0;
    font-weight: 700;
}

body.is-rtl .scent-loader-text {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.1rem;
}

/* Result Panel */
.scent-result-panel {
    display: none;
    scroll-margin-top: 100px;
}

.scent-result-panel.is-active {
    display: block;
    animation: sfFadeInUp 0.6s ease both;
}

.scent-result-badge {
    text-align: center;
    margin-bottom: 30px;
}

.scent-result-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(110, 92, 123, 0.12);
    border-radius: var(--radius);
    box-shadow: 0 20px 45px rgba(110, 92, 123, 0.08);
    padding: clamp(24px, 5vw, 48px);
    margin-bottom: 36px;
    overflow: hidden;
}

.scent-result-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 36px;
    align-items: center;
}

.scent-result-visual {
    background: linear-gradient(180deg, rgba(245, 242, 248, 0.9), rgba(255, 255, 255, 0.55));
    border-radius: 24px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(110, 92, 123, 0.08);
}

.scent-result-visual img {
    max-height: 280px;
    width: auto;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.12));
}

.scent-result-visual:hover img {
    transform: scale(1.05) rotate(2deg);
}

.scent-result-info h3 {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.2rem;
    color: var(--text);
    margin: 0 0 12px;
    line-height: 1.15;
    font-weight: 700;
}

body.is-rtl .scent-result-info h3 {
    font-family: "Noto Kufi Arabic", sans-serif;
    font-size: 1.75rem;
    line-height: 1.4;
}

.scent-result-headline {
    font-size: 1.05rem;
    color: var(--gold-soft);
    font-weight: 700;
    margin-bottom: 18px;
    line-height: 1.4;
}

.scent-result-excerpt {
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.scent-result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.scent-result-tag-pill {
    font-size: 0.76rem;
    background: rgba(110, 92, 123, 0.06);
    border: 1px solid rgba(110, 92, 123, 0.12);
    color: var(--gold);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.scent-result-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.scent-result-benefits-list li {
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.94rem;
}

html[dir="rtl"] .scent-result-benefits-list li {
    padding-left: 0;
    padding-right: 28px;
}

.scent-result-benefits-list li::before {
    content: "\f00c";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--gold);
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 0.85rem;
}

html[dir="rtl"] .scent-result-benefits-list li::before {
    left: auto;
    right: 0;
}

.scent-result-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;

}

/* Animations */
@keyframes sfFadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes sfFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sfPulseScent {
    0% {
        width: 20px;
        height: 20px;
        opacity: 0.8;
    }

    100% {
        width: 140px;
        height: 140px;
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .scent-result-split {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .scent-result-visual {
        padding: 20px;
    }

    .scent-result-visual img {
        max-height: 200px;
    }

    .scent-result-card {
        padding: 24px;
        border-radius: 20px;
    }

    .scent-option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .scent-option-card {
        padding: 20px 16px;
        border-radius: 20px;
    }

    .scent-option-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .scent-option-card h3 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .scent-option-grid {
        grid-template-columns: 1fr;
    }

    .scent-nav-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .scent-nav-actions .button,
    .scent-nav-actions .button-secondary {
        margin: 0;
    }

    .scent-stepper {
        padding: 0 10px;
    }

    .scent-stepper-step {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }
}

/* Premium Button Designs */
.scent-btn,
.scent-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 17px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.93rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 0px solid transparent;
}

.scent-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--gold-soft), var(--gold));
    box-shadow: 0 10px 24px rgba(110, 92, 123, 0.2);
}

.scent-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(110, 92, 123, 0.3);
    background: linear-gradient(135deg, #e3cfae, #7e6b8c);
}

.scent-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 6px 16px rgba(110, 92, 123, 0.15);
}

.scent-btn:disabled {
    background: rgba(110, 92, 123, 0.12) !important;
    color: rgba(110, 92, 123, 0.35) !important;
    cursor: not-allowed;
    box-shadow: none;
}

.scent-btn-secondary {
    color: var(--text);
    border: 1px solid rgba(110, 92, 123, 0.16);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.scent-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(110, 92, 123, 0.3);
    transform: translateY(-2px);
}

.scent-btn-secondary:active {
    transform: translateY(1px);
}

@media (max-width: 480px) {

    .scent-nav-actions .scent-btn,
    .scent-nav-actions .scent-btn-secondary {
        margin: 0;
        width: 100%;
    }
}

/* ===== RTL Arrow Flip & Alignment Adjustments ===== */
html[dir="rtl"] .scent-btn i,
html[dir="rtl"] .scent-btn-secondary i {
    transform: scaleX(-1);
    display: inline-block;
}