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

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

/* ─── Selection Color ────────────────────────── */
::selection {
    background-color: rgba(249, 115, 22, 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: #f97316;
}

/* ─── 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, #f97316, #fbbf24, #22d3ee);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Glow Effects ───────────────────────────── */
.glow-primary {
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

.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, #f97316, #fbbf24);
    border-radius: 1.125rem;
    z-index: -1;
    opacity: 0.5;
}

/* ─── 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 #f97316;
    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;
    }
}
