/**
 * Kurumsal E-posta sayfası stilleri (em- öneki)
 * Koyu lacivert-mavi tema; storage/cloud sayfalarıyla aynı desen ailesi.
 */

/* Hero, şeffaf header'ın arkasına uzanır (site geneli dark-hero tekniği).
   !important şart: Tailwind Play CDN stillerini çalışma anında head'in sonuna
   enjekte ettiği için py-16/md:py-20 sınıfları aksi halde bu padding'i ezer
   (storage.css'teki çalışan desenle birebir aynı). */
.em-hero {
    position: relative;
    padding-top: 220px !important;
    margin-top: -200px !important;
}

@media (max-width: 768px) {
    .em-hero {
        padding-top: 180px !important;
        margin-top: -160px !important;
    }
}

/* Nokta deseni (site geneli dot-grid dili) */
.em-dot-grid {
    background-image: radial-gradient(rgba(148, 163, 253, 0.14) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Scroll reveal */
.em-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.em-reveal.em-in {
    opacity: 1;
    transform: translateY(0);
}

/* Kart yükselme (site geneli hover dili) */
.em-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.em-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px -14px rgba(30, 64, 175, 0.25);
}
.em-lift:hover .em-icon {
    transform: scale(1.08) rotate(-3deg);
}
.em-icon {
    transition: transform 0.3s ease;
}

/* Bölüm başlığı alt çizgisi */
.em-bar {
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, #2563eb, #0ea5e9);
}
.em-bar-light {
    display: block;
    width: 64px;
    height: 4px;
    border-radius: 999px;
    margin: 22px auto 0;
    background: linear-gradient(90deg, #60a5fa, #7dd3fc);
}

/* Süzülen arkaplan ışıkları */
@keyframes em-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    50% { transform: translateY(-24px) translateX(12px); }
}
.em-float {
    animation: em-float 7s ease-in-out infinite;
}

/* Hero'da süzülen zarf ikonları */
@keyframes em-drift {
    0%, 100% { transform: translateY(0) rotate(-6deg); opacity: 0.5; }
    50% { transform: translateY(-30px) rotate(6deg); opacity: 0.9; }
}
.em-envelope {
    position: absolute;
    font-size: 19px;
    color: rgba(147, 197, 253, 0.55);
    animation: em-drift 9s ease-in-out infinite;
    pointer-events: none;
}

/* Canlı adres önizlemesi: güncellemede yumuşak vurgu */
@keyframes em-addr-pop {
    0% { transform: scale(1); color: #111827; }
    40% { transform: scale(1.05); color: #2563eb; }
    100% { transform: scale(1); color: #111827; }
}
.em-addr {
    display: inline-block;
}
.em-addr-pop {
    animation: em-addr-pop 0.5s ease;
}

/* Fiyat değişiminde vurgu */
@keyframes em-price-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.07); }
    100% { transform: scale(1); }
}
.em-price {
    display: inline-block;
}
.em-price-pop {
    animation: em-price-pop 0.45s ease;
}

/* Dönem düğmeleri */
.em-period-btn {
    color: #6b7280;
}
.em-period-btn.active {
    background: #111827;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.25);
}

/* Webmail mockup satırları: sıra ile belirme */
@keyframes em-mail-in {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}
.em-mail-row {
    animation: em-mail-in 0.6s ease both;
}

/* Senkron rozeti: canlı nokta */
@keyframes em-sync-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    60% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
}
.em-sync-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #10b981;
    display: inline-block;
    animation: em-sync-pulse 2s ease-out infinite;
}

/* Güvenlik kalkanı */
@keyframes em-shield-glow {
    0%, 100% { box-shadow: 0 0 32px rgba(59, 130, 246, 0.35); }
    50% { box-shadow: 0 0 56px rgba(59, 130, 246, 0.65); }
}
.em-shield {
    width: 84px;
    height: 84px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    animation: em-shield-glow 3.2s ease-in-out infinite;
}

/* Hareket azaltma tercihi: animasyonlar kapanır, içerik anında görünür */
@media (prefers-reduced-motion: reduce) {
    .em-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .em-float,
    .em-envelope,
    .em-mail-row,
    .em-sync-dot,
    .em-shield,
    .em-addr-pop,
    .em-price-pop {
        animation: none;
    }
    .em-lift,
    .em-lift:hover {
        transform: none;
    }
}
