/* ==========================================================
   Zarif Davetiye — Premium UX/UI & CRO Focused Theme
   ========================================================== */

/* Design Tokens & Theme Variables */
:root {
    --primary: #0f2c22;       /* Deep Emerald */
    --primary-light: #184435;
    --primary-dark: #071813;
    --gold: #d4af37;          /* Classic Gold */
    --gold-light: #e6c55f;
    --gold-dark: #b59328;
    --gold-bg: #fcf6e8;
    --gold-border: #f7ebc7;
    --accent: #e6007e;        /* CMYK Magenta Accent */
    
    --bg-page: #fdfdfb;       /* Soft luxury warm white */
    --bg-card: #ffffff;
    --text-main: #1e293b;     /* Slate 800 */
    --text-secondary: #64748b;/* Slate 500 */
    --text-light: #94a3b8;    /* Slate 400 */
    --border-color: #e2e8f0;  /* Slate 200 */
    
    --active-blue: #0ea5e9;
    --active-bg: #eff6ff;
    --active-text: #0369a1;
    
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1.25rem;
    --radius-xl: 2rem;
    
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 20px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.06);
    --shadow-premium: 0 20px 40px rgba(212, 175, 55, 0.05);
}

/* Base Styles & Typography */
html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page) !important;
    color: var(--text-main) !important;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Micro-Animations & Transitions */
.smooth-transition {
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gold Text & Gradient Accent */
.gold-text-gradient {
    background: linear-gradient(135deg, var(--gold-dark) 0%, var(--gold-light) 50%, var(--gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gold-border-gradient {
    border-image: linear-gradient(135deg, var(--gold-dark), var(--gold-light), var(--gold-dark)) 1;
}

/* Premium Card Elements */
.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.premium-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
    border-color: var(--gold-border);
}

/* Theme / Model Gallery Styling */
.category-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.category-tab-btn:hover {
    color: var(--primary);
    background: #ffffff;
    border-color: var(--primary);
}

.category-tab-btn.active {
    background: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(15, 44, 34, 0.2) !important;
}

/* Interactive iPhone Mockup */
.iphone-simulator {
    position: relative;
    width: 300px;
    height: 610px;
    background: #e2e8f0;
    border: 10px solid #e2e8f0; /* Silver-gray premium casing */
    border-radius: 44px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    box-sizing: border-box;
}

.iphone-screen {
    position: relative;
    width: 280px; /* 300px - 20px borders */
    height: 590px; /* 610px - 20px borders */
    background: #000000;
    overflow: hidden;
    border-radius: 34px;
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 20px;
    background: #e2e8f0;
    border-bottom-left-radius: 14px;
    border-bottom-right-radius: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.iphone-notch::after {
    content: '';
    width: 40px;
    height: 4px;
    background: #cbd5e1;
    border-radius: 2px;
}

.iphone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    z-index: 50;
    pointer-events: none;
}

/* Iframe Wrapper to handle scaling mathematically */
.iphone-iframe-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 375px;
    height: 790px;
    transform: scale(0.746666); /* 280 / 375 */
    transform-origin: top left;
    border: none;
    overflow: hidden;
}

.iphone-iframe-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Theme Selection Buttons */
.demo-theme-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1.25rem;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    transition: all 0.25s ease;
    cursor: pointer;
    text-align: left;
}

.demo-theme-btn:hover {
    background: #fafaf9;
    border-color: var(--gold-light);
}

.demo-theme-btn.active {
    background: var(--gold-bg) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.1);
    color: var(--text-main) !important;
}

/* Stepper Wizard Styling */
.wizard-stepper-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.wizard-stepper-line-bg {
    position: absolute;
    top: 1.25rem; /* Exactly half of badge height (w-10 = 2.5rem = 40px, so half is 1.25rem = 20px) */
    left: 16.66%;
    right: 16.66%;
    height: 3px;
    background: #e2e8f0;
    z-index: 1;
    transform: translateY(-50%);
    border-radius: 9999px;
}

.wizard-stepper-line-progress {
    height: 100%;
    width: 0%;
    background: var(--primary); /* Deep Emerald */
    border-radius: 9999px;
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.wizard-step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 33.33%;
    position: relative;
    z-index: 5;
    cursor: pointer;
    background: transparent;
    border: none;
    padding: 0;
}

.wizard-step-badge {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    z-index: 2;
}

.wizard-step-node:hover .wizard-step-badge {
    border-color: #94a3b8;
    color: #475569;
}

.wizard-step-node.active .wizard-step-badge {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 44, 34, 0.12), 0 4px 10px rgba(15, 44, 34, 0.2);
}

.wizard-step-node.completed .wizard-step-badge {
    background: #10b981; /* Nice green for completed step */
    border-color: #10b981;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.2);
}

.wizard-step-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.02em;
    max-width: 90%;
}

.wizard-step-node.active .wizard-step-label {
    color: var(--primary);
    font-weight: 800;
}

.wizard-step-node.completed .wizard-step-label {
    color: #1e293b;
    font-weight: 700;
}

/* Mobile specific styling to make stepper super compact */
@media (max-width: 640px) {
    .wizard-stepper-line-bg {
        top: 1.1rem; /* w-9 = 2.25rem = 36px, half is 1.1rem */
    }
    
    .wizard-step-badge {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.8rem;
    }
    
    .wizard-step-label {
        font-size: 0.65rem;
        max-width: 95%;
    }
}

@media (max-width: 380px) {
    .wizard-step-label {
        font-size: 0.6rem;
    }
}

#sticky-progress-navigation {
    position: sticky;
    top: 104px; /* Aligns right below the desktop sticky header */
    z-index: 40;
}

@media (max-width: 1024px) {
    #sticky-progress-navigation {
        top: 108px; /* Category bar on mobile/tablet */
    }
}

@media (max-width: 768px) {
    #sticky-progress-navigation {
        top: 124px; /* Taller wrapped mobile banner header */
    }
}

/* Stepper Sections Box */
.step-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    background: #ffffff;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    transition: box-shadow 0.3s ease;
}

/* Multi-Layered Rotating Gradient Options Card */
.product-options-card {
    position: relative !important;
    overflow: hidden !important;
    isolation: isolate !important;
    border: none !important;
    border-radius: var(--radius-lg) !important;
    background: transparent !important;
    box-shadow: var(--shadow-md) !important;
}

.product-options-card::before {
    content: "";
    position: absolute;
    inset: -50%;
    background: conic-gradient(
        from 0deg,
        #00aeef,
        #ec008c,
        #fff200,
        #111827,
        #00aeef
    );
    animation: cmykBorderRotate 10s linear infinite;
    z-index: 0;
    pointer-events: none;
}

.product-options-card::after {
    content: "";
    position: absolute;
    inset: 1.5px;
    background: #ffffff;
    border-radius: calc(var(--radius-lg) - 1.5px);
    z-index: 1;
    pointer-events: none;
}

.product-options-card > * {
    position: relative;
    z-index: 2;
    background: #ffffff;
}

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

/* Option Cards (Selection Actions) */
.option-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    color: var(--text-main);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    text-align: center;
    font-family: inherit;
    box-sizing: border-box;
}

.option-card:hover {
    border-color: var(--gold);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.08);
}

.option-card.active {
    border-color: var(--gold) !important;
    background: var(--gold-bg) !important;
    color: var(--text-main) !important;
    box-shadow: 0 0 0 1px var(--gold), 0 8px 20px rgba(212, 175, 55, 0.12) !important;
}

/* Package Pricing Cards */
.pricing-package-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.pricing-package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
}

.pricing-package-card.featured {
    border-color: var(--gold);
    box-shadow: var(--shadow-md), var(--shadow-premium);
    background: #fdfcf9;
}

.pricing-package-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gold);
    color: var(--primary-dark);
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
}

/* Custom inputs styling */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    color: var(--text-main);
}

.form-input:focus {
    border-color: var(--gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
    outline: none !important;
}

/* Accordion FAQ styles */
.faq-accordion details {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: #ffffff;
    transition: all 0.25s ease;
}

.faq-accordion details:hover {
    border-color: var(--gold-border);
    background: #fdfcf9;
}

.faq-accordion details[open] {
    border-color: var(--gold);
    box-shadow: var(--shadow-premium);
}

/* Toast styling */
.toast-notification {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 10000;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(3rem);
    opacity: 0;
}

.toast-notification.visible {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background: #059669;
    border: 1px solid #10b981;
}

.toast-notification.error {
    background: #dc2626;
    border: 1px solid #f87171;
}

.toast-notification.info {
    background: var(--primary);
    border: 1px solid var(--gold);
}

/* Kağıt Dokuları */
.texture-bristol {
    box-shadow: inset 0 0 15px rgba(0,0,0,0.01), 0 15px 35px -10px rgba(0,0,0,0.08);
    position: relative;
}
.texture-bristol::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 60%, rgba(0,0,0,0.01) 100%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
}
.texture-kuse {
    box-shadow: inset 0 0 8px rgba(0,0,0,0.01), 0 15px 35px -10px rgba(0,0,0,0.1);
    position: relative;
}
.texture-kuse::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.4) 0%, transparent 70%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
}
.texture-tuale {
    position: relative;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.03), 0 20px 40px -12px rgba(0,0,0,0.12);
}
.texture-tuale::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(90deg, rgba(148,163,184,0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(148,163,184,0.06) 1px, transparent 1px);
    background-size: 3px 3px;
    pointer-events: none;
    border-radius: inherit;
    z-index: 4;
}
.texture-tuale::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.2) 0%, rgba(0,0,0,0.02) 100%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 5;
}

/* Slayt Görseli */
.model-slide-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0.75rem;
    transition: opacity 0.4s ease;
}

.model-slide-img.loading {
    opacity: 0.3;
}

.slide-fade-enter {
    animation: slideFadeIn 0.4s ease forwards;
}

@keyframes slideFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #94a3b8;
    text-align: center;
    padding: 2rem;
}
.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--active-blue);
    opacity: 0.4;
}

/* Custom Scrollbar for option grid lists */
.scrollbar-thin::-webkit-scrollbar {
    width: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
    background: transparent;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.qty-quick-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.qty-quick-btn {
    padding: 0.35rem 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: white;
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-quick-btn:hover {
    border-color: var(--active-blue);
    color: var(--active-blue);
    background: #f0f9ff;
}

.qty-quick-btn.active {
    border-color: var(--active-blue);
    color: white;
    background: var(--active-blue);
}

.pp-quantity-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pp-qty-btn {
    width: 36px;
    height: 36px;
    border: 1.5px solid #e2e8f0;
    background: white;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    color: #0f172a;
}

.pp-qty-btn:hover {
    border-color: var(--active-blue);
    color: var(--active-blue);
    background: #f8fafc;
}

.pp-qty-input {
    width: 80px;
    height: 36px;
    text-align: center;
    border: 1.5px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    outline: none;
}

.pp-qty-input::-webkit-outer-spin-button,
.pp-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pp-qty-note {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Price Matrix Expandable Panel Styles */
.price-matrix-panel {
    background: #ffffff;
    border: 1px solid var(--gold-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.price-matrix-panel:hover {
    border-color: var(--gold);
    box-shadow: var(--shadow-lg), var(--shadow-premium);
}

.price-matrix-panel[open] {
    border-color: var(--gold);
    background: #fdfbf7;
}

.price-matrix-summary {
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    user-select: none;
    cursor: pointer;
    font-size: 0.85rem;
}

.price-matrix-table th {
    background: #fcf6e8;
    color: #7c5d20;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.price-matrix-table tr:hover {
    background: #faf8f2;
}

/* Bottom Details Tab Panel */
.product-details-tabs {
    margin-top: 3rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    width: 100%;
}

.tabs-header {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    border-bottom: none;
    margin-bottom: 2rem;
    background: #f8f6f0;
    padding: 0.4rem;
    border-radius: 0.9rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.85rem 0.5rem;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 0.65rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    outline: none;
}

.tab-btn:hover {
    color: var(--gold-dark);
    background: rgba(255, 255, 255, 0.4);
}

.tab-btn.active {
    background: var(--primary);
    color: white !important;
    box-shadow: 0 4px 12px rgba(15, 44, 34, 0.15);
}

@media (max-width: 768px) {
    .tabs-header {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }
    .tab-btn {
        font-size: 0.72rem;
        padding: 0.7rem 0.3rem;
    }
    .product-details-tabs {
        padding: 1.25rem 1rem;
    }
}

.tab-content-panel {
    display: none;
    animation: slideFadeIn 0.35s ease-out;
}

.tab-content-panel.active {
    display: block;
}

.tab-content-panel h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    letter-spacing: 0.02em;
}

.tab-content-panel p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* --- Dosya Yükleme Alanı --- */
.pp-upload-area {
    border: 2px dashed #e2e8f0;
    border-radius: 0.9rem;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8fafc;
    margin-top: 0.5rem;
}
.pp-upload-area:hover, .pp-upload-area.dragover {
    border-color: var(--gold);
    background: #fdfbf7;
}
.pp-upload-icon {
    font-size: 1.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}
.pp-upload-title {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.pp-upload-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
}
