/**
 * Online Mağaza sayfası (ec- öneki)
 * Yönetilen WooCommerce e-ticaret hosting. Koyu hero (dark-hero.css yüklü,
 * $dark_hero_pages listesinde) + zümrüt/teal vurgu ailesi.
 */

/* Koyu hero header ile bütünleşsin (email sayfasıyla aynı teknik) */
.ec-hero {
    padding-top: 220px !important;
    margin-top: -200px !important;
}
@media (max-width: 767px) {
    .ec-hero {
        padding-top: 180px !important;
        margin-top: -160px !important;
    }
}

/* Süzülen ışık küreleri */
@keyframes ec-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-28px) translateX(16px); }
}
.ec-float {
    animation: ec-float 9s ease-in-out infinite;
}

/* Süzülen mağaza ikonları */
@keyframes ec-bubble {
    0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.5; }
    50% { transform: translateY(-22px) rotate(6deg); opacity: 0.9; }
}
.ec-bubble {
    position: absolute;
    color: rgba(110, 231, 183, 0.5);
    font-size: 19px;
    animation: ec-bubble 7s ease-in-out infinite;
}

/* Hero mockup girişi */
@keyframes ec-mock-in {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
.ec-mockup {
    animation: ec-mock-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Canlı nokta nabzı */
@keyframes ec-live {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.35; transform: scale(0.75); }
}
.ec-live-dot {
    animation: ec-live 1.4s ease-in-out infinite;
}

/* Sipariş bildirimi girişi (JS her siparişte sınıfı yeniden tetikler) */
@keyframes ec-toast-in {
    0% { opacity: 0; transform: translateY(8px) scale(0.98); }
    100% { opacity: 1; transform: none; }
}
.ec-toast-in {
    animation: ec-toast-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Değer/entegrasyon kartları hover */
.ec-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ec-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -12px rgba(5, 150, 105, 0.16);
    border-color: rgba(110, 231, 183, 0.6);
}

/* ---- VS panosu (Normal Hosting vs Yönetilen Mağaza) ---- */
.ec-vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background: linear-gradient(135deg, #059669, #0d9488);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.05em;
    align-items: center;
    justify-content: center;
    border: 4px solid #f8fafc;
    box-shadow: 0 10px 30px -8px rgba(5, 150, 105, 0.55);
}
.ec-vs-panel {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ec-vs-panel--normal {
    filter: saturate(0.9);
}
.ec-vs-panel--store {
    box-shadow: 0 24px 60px -20px rgba(6, 78, 59, 0.45);
}
.ec-vs-panel--store:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px -20px rgba(6, 78, 59, 0.55);
}

/* ---- Entegrasyon grupları ---- */
.ec-int-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 9999px;
    filter: blur(90px);
    top: -140px;
    right: -100px;
    pointer-events: none;
}
.ec-int-glow--emerald { background: rgba(16, 185, 129, 0.14); }
.ec-int-glow--sky     { background: rgba(14, 165, 233, 0.14); }
.ec-int-glow--violet  { background: rgba(139, 92, 246, 0.14); }

.ec-int-item {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ec-int-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -10px rgba(15, 23, 42, 0.18);
}

/* Marka monogramı (logo yerine tipografik rozet) */
.ec-int-mono {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
}
.ec-int-mono--emerald { background: linear-gradient(135deg, #059669, #0d9488); }
.ec-int-mono--sky     { background: linear-gradient(135deg, #0284c7, #0891b2); }
.ec-int-mono--violet  { background: linear-gradient(135deg, #7c3aed, #9333ea); }

/* Aylık/Yıllık düğmeleri */
.ec-period-btn {
    color: #6b7280;
}
.ec-period-btn.active {
    background: linear-gradient(90deg, #059669, #0d9488);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.35);
}

/* ---- Plan vitrinleri: tenteli dükkân kartları ---- */
/* Tente: çizgili kumaş + fisto (yarım daire) kenar; karttan hafif taşar */
.ec-awning {
    position: absolute;
    top: 0;
    left: -7px;
    right: -7px;
    height: 34px;
    border-radius: 14px 14px 4px 4px;
    box-shadow: 0 6px 14px -6px rgba(15, 23, 42, 0.3);
    z-index: 2;
}
.ec-awning::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 11px;
    background-size: 48px 11px;
    background-repeat: repeat-x;
}
.ec-awning--sky {
    background: repeating-linear-gradient(90deg, #0284c7 0 24px, #ffffff 24px 48px);
}
.ec-awning--sky::after {
    background-image:
        radial-gradient(circle at 12px 0, #0284c7 11px, transparent 12px),
        radial-gradient(circle at 36px 0, #ffffff 11px, transparent 12px);
}
.ec-awning--emerald {
    background: repeating-linear-gradient(90deg, #059669 0 24px, #ffffff 24px 48px);
}
.ec-awning--emerald::after {
    background-image:
        radial-gradient(circle at 12px 0, #059669 11px, transparent 12px),
        radial-gradient(circle at 36px 0, #ffffff 11px, transparent 12px);
}
.ec-awning--amber {
    background: repeating-linear-gradient(90deg, #d97706 0 24px, #ffffff 24px 48px);
}
.ec-awning--amber::after {
    background-image:
        radial-gradient(circle at 12px 0, #d97706 11px, transparent 12px),
        radial-gradient(circle at 36px 0, #ffffff 11px, transparent 12px);
}

.ec-plan {
    transition: transform 0.3s ease, opacity 0.3s ease, filter 0.3s ease;
}
.ec-plan-card {
    margin-top: 22px; /* tente ile kart gövdesi arası */
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.ec-plan:hover .ec-plan-card {
    box-shadow: 0 24px 50px -18px rgba(5, 150, 105, 0.28);
}
.ec-plan-icon--sky     { color: #0284c7; }
.ec-plan-icon--emerald { color: #059669; }
.ec-plan-icon--amber   { color: #d97706; }

/* Askılı fiyat etiketi */
.ec-pricetag {
    position: relative;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    padding: 12px 18px 12px 26px;
    border-radius: 10px;
    transform: rotate(-2deg);
    color: #ffffff;
    box-shadow: 0 10px 22px -10px rgba(15, 23, 42, 0.4);
    transition: transform 0.25s ease;
}
.ec-plan:hover .ec-pricetag {
    transform: rotate(0deg) scale(1.03);
}
.ec-pricetag--sky     { background: linear-gradient(120deg, #0369a1, #0284c7); }
.ec-pricetag--emerald { background: linear-gradient(120deg, #047857, #059669); }
.ec-pricetag--amber   { background: linear-gradient(120deg, #b45309, #d97706); }
.ec-pricetag-hole {
    position: absolute;
    left: 9px;
    top: 50%;
    transform: translateY(-50%);
    width: 9px;
    height: 9px;
    border-radius: 9999px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.35);
}

/* Sihirbaz düğmeleri */
.ec-fit-btn {
    color: #6b7280;
    background: #f8fafc;
}
.ec-fit-btn:hover {
    color: #059669;
    background: #ecfdf5;
}
.ec-fit-btn.active {
    background: linear-gradient(90deg, #059669, #0d9488);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.4);
}

/* Önerilen plan vurgusu + diğerlerinin sönmesi */
.ec-fit-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    z-index: 3;
    padding: 5px 14px;
    border-radius: 9999px;
    background: linear-gradient(90deg, #7c3aed, #9333ea);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 20px -6px rgba(124, 58, 237, 0.55);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.ec-plan--fit .ec-fit-badge {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}
.ec-plan--fit {
    transform: translateY(-6px) scale(1.015);
}
.ec-plan--fit .ec-plan-card {
    border-color: #7c3aed;
    box-shadow: 0 28px 60px -18px rgba(124, 58, 237, 0.35);
}
.ec-plan--dim {
    opacity: 0.55;
    filter: saturate(0.75);
}

/* Ürün adı iki satırla sınırlı (line-clamp yedeği) */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .ec-float,
    .ec-bubble,
    .ec-mockup,
    .ec-live-dot,
    .ec-toast-in {
        animation: none;
    }
    .ec-card,
    .ec-vs-panel,
    .ec-int-item,
    .ec-plan,
    .ec-plan-card,
    .ec-pricetag,
    .ec-fit-badge {
        transition: none;
    }
}
