/**
 * TiviMate Premium Deutschland – Custom CSS
 * Animationen, Scrollbar, Hilfsstyles
 *
 * @package Tivimate_Premium
 */

/* ========================================
   ANIMATIONEN
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.93); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

.animate-fadeInUp    { animation: fadeInUp    0.55s ease forwards; }
.animate-fadeInLeft  { animation: fadeInLeft  0.55s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.55s ease forwards; }
.animate-scaleIn     { animation: scaleIn     0.45s ease forwards; }
.animate-float       { animation: floatY      3.5s ease-in-out infinite; }

/* Verzögerungen */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ========================================
   SHIMMER (Skeleton Loading)
   ======================================== */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-tertiary) 25%,
        rgba(255,255,255,0.06) 50%,
        var(--bg-tertiary) 75%
    );
    background-size: 200% auto;
    animation: shimmer 1.5s linear infinite;
}

/* ========================================
   SCROLLBAR
   ======================================== */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-tertiary); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ========================================
   TEXT-AUSWAHL
   ======================================== */
::selection     { background: var(--accent); color: white; }
::-moz-selection { background: var(--accent); color: white; }

/* ========================================
   FOKUS-STILE (Barrierefreiheit)
   ======================================== */
*:focus               { outline: 2px solid var(--accent); outline-offset: 2px; }
*:focus:not(:focus-visible) { outline: none; }

/* ========================================
   LAZY LOADING PLACEHOLDER
   ======================================== */
img[loading="lazy"] { background: var(--bg-tertiary); }

/* ========================================
   GRADIENT-TEXT SHIMMER (Hero-Effekt)
   ======================================== */
.text-gradient-animated {
    background: linear-gradient(
        135deg,
        var(--accent-light),
        #93c5fd,
        var(--gold-light),
        var(--accent-light)
    );
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
}

/* ========================================
   PREMIUM BADGE (wiederverwendbar)
   ======================================== */
.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: linear-gradient(135deg, var(--gold-glow), rgba(245,158,11,0.08));
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    color: var(--gold-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   GLOWING BORDER (Featured-Elemente)
   ======================================== */
.border-glow {
    position: relative;
}

.border-glow::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), var(--accent-light), var(--gold));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-glow:hover::before { opacity: 1; }

/* ========================================
   PRICE HIGHLIGHT (Bestpreis-Indikator)
   ======================================== */
.best-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    background: rgba(16,185,129,0.12);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ========================================
   COUNTDOWN-TIMER (optional)
   ======================================== */
.countdown-wrap {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 20px 0;
}

.countdown-item {
    text-align: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    min-width: 64px;
}

.countdown-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--accent-light);
    line-height: 1;
    letter-spacing: -0.03em;
}

.countdown-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ========================================
   NOTIFICATION TOAST (Live-Käufe)
   ======================================== */
.toast-notification {
    position: fixed;
    bottom: 110px;
    left: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 300px;
    z-index: 997;
    transform: translateX(-120%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-lg);
}

.toast-notification.show { transform: translateX(0); }

.toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--green-glow);
    border: 1px solid rgba(16,185,129,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green);
    font-size: 16px;
    flex-shrink: 0;
}

.toast-text strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-text span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ========================================
   HILFSKASSEN
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.no-scroll { overflow: hidden; }

.mt-0  { margin-top: 0 !important; }
.mb-0  { margin-bottom: 0 !important; }
.text-green  { color: var(--green) !important; }
.text-gold   { color: var(--gold-light) !important; }
.text-accent { color: var(--accent-light) !important; }
.text-muted  { color: var(--text-muted) !important; }

/* ========================================
   FIX OVERFLOW HORIZONTAL MOBILE
   ======================================== */
*, *::before, *::after {
    max-width: 100%;
}

@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
    }

    /* Empêche les radial-gradient de créer un scroll horizontal */
    .hero-section,
    .pricing-section,
    .channels-hero,
    .cta-content {
        overflow: hidden;
    }

    /* Fix texte trop large */
    h1, h2, h3 {
        word-break: break-word;
        overflow-wrap: break-word;
    }

    /* Fix hero h1 mobile */
    .hero-section h1 {
        font-size: 1.9rem;
        line-height: 1.15;
    }
}

/* ========================================
   DRUCKSTILE
   ======================================== */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .scroll-to-top,
    .mobile-nav-panel,
    .mobile-nav-overlay,
    .toast-notification {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    a { text-decoration: underline; }
}