/*
 * PRO IPTV - Custom CSS
 * Tailwind ile birlikte çalışan özel stiller
 * 
 * @package PRO IPTV
 */

/* ─── Smooth Scroll ─────────────────────────── */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

/* ─── Selection Color ────────────────────────── */
::selection {
    background-color: rgba(217, 70, 239, 0.3);
    color: #fff;
}

/* ─── Scrollbar Styling ──────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0f172a;
}

::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d946ef;
}

/* ─── Navbar Scroll Effect ───────────────────── */
.navbar-scrolled {
    background-color: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ─── FAQ Accordion ──────────────────────────── */
.faq-item .faq-icon {
    transition: transform 0.3s ease;
}

.faq-item[data-open="true"] .faq-icon {
    transform: rotate(180deg);
}

/* ─── Floating Animation Enhancement ─────────── */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

.animate-float-slow {
    animation: floatSlow 8s ease-in-out infinite;
}

/* ─── Gradient Text ──────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #d946ef, #06b6d4, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Glow Effects ───────────────────────────── */
.glow-primary {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.35);
}

.glow-neon {
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.3);
}

.glow-accent {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

/* ─── Card Hover Effects ─────────────────────── */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ─── Pricing Card Popular ───────────────────── */
.pricing-popular {
    position: relative;
}

.pricing-popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #d946ef, #06b6d4);
    border-radius: 1.125rem;
    z-index: -1;
    opacity: 0.5;
}

/* ─── Package Price Block ────────────────────── */
.pkg-price-block {
    margin-bottom: 1.25rem;
    padding: 0.75rem 0.9rem;
    min-height: 5.25rem;
    border-radius: 0.75rem;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pkg-price-block--popular {
    border-color: rgba(217, 70, 239, 0.28);
    background: linear-gradient(160deg, rgba(217, 70, 239, 0.1), rgba(255, 255, 255, 0.02));
}

.pkg-price-block--vip {
    border-color: rgba(6, 182, 212, 0.28);
    background: linear-gradient(160deg, rgba(6, 182, 212, 0.1), rgba(255, 255, 255, 0.02));
}

.pkg-price-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 1.35rem;
    margin-bottom: 0.3rem;
}

.pkg-price-old {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: line-through;
    text-decoration-color: rgba(239, 68, 68, 0.55);
}

.pkg-price-discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.2rem 0.45rem;
    border-radius: 9999px;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.28);
    white-space: nowrap;
}

.pkg-price-main {
    font-family: 'Outfit', 'Inter', system-ui, sans-serif;
    font-size: clamp(1.55rem, 3.2vw, 1.85rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.pkg-price-period {
    margin-top: 0.3rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.2;
}

/* ─── Stats Counter Animation ────────────────── */
.stat-counter {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.stat-counter.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── WhatsApp Button Pulse ──────────────────── */
@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-pulse {
    animation: whatsappPulse 2s infinite;
}

/* ─── Mobile Responsive Tweaks ───────────────── */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
}

/* ─── Line Clamp ─────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Focus Styles ───────────────────────────── */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #d946ef;
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ─── Print Styles ───────────────────────────── */
@media print {
    nav, footer, .whatsapp-float, #back-to-top { display: none !important; }
    body { background: #fff !important; color: #000 !important; }
    a { color: #000 !important; text-decoration: underline; }
}

/* ─── WordPress Specific ─────────────────────── */
.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 0.5rem;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-item img {
    border-radius: 0.75rem;
    width: 100%;
    height: auto;
}

/* ─── Admin Bar Fix ──────────────────────────── */
body.admin-bar #site-navigation {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-navigation {
        top: 46px;
    }
}
