/*
Theme Name: StreamFiesta
Theme URI: https://streamfiesta.com
Author: StreamFiesta
Author URI: https://streamfiesta.com
Description: Premium IPTV WordPress Theme - Modern dark design with purple accents
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: streamfiesta
*/

/* ============================================
   CSS VARIABLES
============================================ */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #13131f;
    --primary-color: #6d28d9;
    --primary-hover: #5b21b6;
    --accent-color: #00d4ff;
    --text-primary: #ffffff;
    --text-secondary: #b0b7c3;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --max-width: 1200px;
}

/* ============================================
   RESET & BASE
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   UTILITIES
============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-padding {
    padding: 6rem 0;
}

.text-center {
    text-align: center;
}

/* ============================================
   BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #4c1d95);
    color: white;
    box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(109, 40, 217, 0.6);
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
}

/* ============================================
   TYPOGRAPHY
============================================ */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.text-highlight {
    color: var(--primary-color);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================
   NAVBAR
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 800;
    gap: 0.5rem;
    color: var(--text-primary);
}

.logo svg {
    color: var(--primary-color);
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.desktop-menu a:hover {
    color: var(--primary-color);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
}

/* ============================================
   HERO SECTION
============================================ */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.5), var(--bg-primary));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(109, 40, 217, 0.2);
    color: #c4b5fd;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(109, 40, 217, 0.4);
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

@media (min-width: 768px) {
    .hero-content h1 {
        font-size: 4rem;
    }
}

.hero-content>p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2rem;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d5db;
    font-weight: 500;
}

.feature-item svg {
    color: var(--accent-color);
    width: 20px;
    height: 20px;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* ============================================
   GLASS PANELS
============================================ */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

/* ============================================
   FEATURES SECTION
============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
}

.icon-wrapper {
    background: rgba(109, 40, 217, 0.15);
    width: 70px;
    height: 70px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper svg {
    color: var(--primary-color);
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ============================================
   PRICING SECTION
============================================ */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    text-align: center;
    position: relative;
}

.pricing-card.popular {
    border: 2px solid var(--primary-color);
    background: linear-gradient(to bottom, rgba(109, 40, 217, 0.15), var(--glass-bg));
    box-shadow: 0 10px 40px rgba(109, 40, 217, 0.25);
}

.popular-tag {
    position: absolute;
    top: -12px;
    right: 20px;
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price {
    margin: 1.5rem 0 0.5rem;
}

.price .currency {
    font-size: 3rem;
    font-weight: 800;
}

.price .period {
    color: var(--text-secondary);
    font-size: 1rem;
}

.price-total {
    font-size: 0.9rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.pricing-features {
    text-align: left;
    margin: 1.5rem 0;
}

.pricing-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #e5e7eb;
}

.pricing-features li svg {
    color: var(--accent-color);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ============================================
   DEVICES SECTION
============================================ */
.devices-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.device-pill {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.device-pill:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.device-pill img {
    width: 24px;
    height: 24px;
}

.device-pill span {
    font-weight: 500;
}

/* ============================================
   FAQ SECTION
============================================ */
.faq-grid {
    max-width: 800px;
    margin: 3rem auto 0;
}

.faq-item {
    margin-bottom: 1rem;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
}

.faq-question svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   CTA BANNER
============================================ */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), #4c1d95);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    margin-top: 4rem;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.footer-col p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.footer-col ul li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-secondary);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ============================================
   FORMS
============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.admin-input {
    width: 100%;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.admin-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.admin-input::placeholder {
    color: var(--text-secondary);
}

/* ============================================
   PAGE CONTAINERS
============================================ */
.trial-page-container {
    min-height: 100vh;
    padding-top: 100px;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trial-form-card {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

.legal-page-container {
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 4rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-section {
    margin-bottom: 2rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   BLOG STYLES
============================================ */
.main-content {
    padding: 120px 0 4rem;
    min-height: calc(100vh - 200px);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.post-card {
    overflow: hidden;
}

.post-thumbnail {
    height: 200px;
    overflow: hidden;
    border-radius: 15px 15px 0 0;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-content {
    padding: 1.5rem;
}

.post-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.post-title a {
    color: var(--text-primary);
}

.post-title a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   ANIMATIONS
============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* ============================================
   CONTENT SHOWCASE (Marquee)
============================================ */
.content-showcase-section {
    padding: 4rem 0;
    overflow: hidden;
}

.section-subtitle-small {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.section-title-left {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    text-align: left;
}

.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 1rem 0;
}

.marquee-content {
    display: flex;
    gap: 1rem;
    animation: scroll 30s linear infinite;
    width: max-content;
}

.channel-card-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    white-space: nowrap;
}

.channel-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.movies-container {
    margin-top: 4rem;
}

.movies-marquee .marquee-content {
    animation-direction: reverse;
}

.movie-card {
    flex-shrink: 0;
}

.movie-poster {
    width: 180px;
    height: 270px;
    background: linear-gradient(135deg, var(--bg-secondary), var(--primary-color));
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.movie-poster svg {
    color: rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
}

.quality-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
}

/* ============================================
   REVIEWS SECTION
============================================ */
.reviews-section {
    background: var(--bg-primary);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.review-card {
    padding: 1.5rem;
}

.review-card:hover {
    transform: translateY(-3px);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: white;
}

.review-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
    opacity: 0.7;
}

/* ============================================
   FAQ ANSWER TOGGLE
============================================ */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.25rem;
}

.faq-answer.open {
    max-height: 200px;
    padding: 0 1.25rem 1.25rem;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .footer-grid {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .section-title-left {
        text-align: center;
    }
}