/* 
   STAR PLAY - Premium IPTV Style
   Theme: HBO Max Inspired (Dark, Purple/Blue, Cinematic)
*/

:root {
    --primary-color: #6a11cb;
    --primary-gradient: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    --secondary-gradient: linear-gradient(45deg, #8e2de2, #4a00e0);
    --bg-color: #050505;
    --bg-secondary: #0f0f0f;
    --card-bg: #1a1a1a;
    --text-white: #ffffff;
    --text-gray: #a1a1a1;
    --accent-glow: rgba(106, 17, 203, 0.4);

    --font-main: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --radius-md: 12px;
    --radius-lg: 20px;

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--accent-glow);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 117, 252, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
}

.btn-block {
    width: 100%;
}

.glow-effect {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(106, 17, 203, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(106, 17, 203, 0);
    }
}

/* --- Header --- */
.header {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
}

.logo span {
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-gray);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: white;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://w.wallhaven.cc/full/wq/wallhaven-wq93rx.jpg') no-repeat center center/cover;
    z-index: -2;
    /* Basic placeholder background, in production would be a changing slider or video */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 10%, rgba(5, 5, 5, 0.8) 50%, rgba(5, 5, 5, 0.4));
    z-index: -1;
}

.hero-content {
    text-align: center;
    z-index: 1;
    max-width: 800px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffd700;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 215, 0.2);
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 800;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.feature-item i {
    color: #2575fc;
    margin-right: 8px;
}

/* --- General Section Styles --- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.left-align {
    text-align: left;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.section-tag {
    color: #2575fc;
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 10px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Benefits Section --- */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--bg-secondary);
    padding: 30px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.benefit-card:hover {
    transform: translateY(-10px);
    background: #151515;
    border-color: #2575fc;
}

.icon-box {
    font-size: 2.5rem;
    margin-bottom: 20px;
    background: var(--primary-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.benefit-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
}

/* --- Apps / Tabs Section --- */
.apps-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-gray);
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn:hover {
    border-color: white;
    color: white;
}

.tab-btn.active {
    background: white;
    color: black;
    border-color: white;
    font-weight: 600;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.device-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    background: var(--card-bg);
    padding: 50px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.device-info h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.device-info p {
    margin-bottom: 30px;
    color: var(--text-gray);
}

.app-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.app-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.app-list li i {
    color: #2575fc;
}

.device-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.mockup-tv,
.mockup-phone,
.mockup-laptop {
    font-size: 10rem;
    color: rgba(255, 255, 255, 0.1);
}

/* --- Content Section --- */
.content-section {
    position: relative;
    padding-bottom: 40px;
}

.content-slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.content-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
    /* Firefox */
}

.content-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.movie-card {
    min-width: 160px;
    height: 240px;
    background: #222;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.8);
}

.movie-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.8) 60%, transparent 100%);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    pointer-events: none;
    /* Let clicks pass through if needed */
}

.movie-card:hover .movie-info {
    opacity: 1;
    transform: translateY(0);
}

.movie-info h4 {
    font-size: 0.9rem;
    color: white;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 1px 3px black;
    /* Limit lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-info span {
    font-size: 0.8rem;
    color: #ffd700;
    font-weight: 700;
}

.skeleton {
    background: linear-gradient(90deg, #222, #333, #222);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.scroll-btn:hover {
    background: white;
    color: black;
}

.scroll-btn.left {
    left: -20px;
}

.scroll-btn.right {
    right: -20px;
}

/* --- Sports Section --- */
.live-tag {
    color: #ff3b30;
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- Sports Section --- */
.live-tag {
    color: #ff3b30;
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.sports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.sport-card {
    height: 350px;
    /* Increased height */
    border-radius: var(--radius-md);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sport-card:hover {
    transform: scale(1.02);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* --- Text Logos (Typography) --- */
.sport-logo-container {
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.text-logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    font-family: 'Outfit', sans-serif;
}

.text-logo-divider {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-weight: 300;
}

/* Brand Colors for Text */
.color-br {
    color: #f9d71c;
    text-shadow: 0 0 10px rgba(249, 215, 28, 0.4);
}

/* Yellow */
.color-copa {
    color: #009c3b;
    text-shadow: 0 0 10px rgba(0, 156, 59, 0.4);
}

/* Green */
.color-nba {
    color: #1d428a;
    text-shadow: 0 0 10px rgba(29, 66, 138, 0.4);
}

/* Blue */
.color-ufc {
    color: #d20a0a;
    text-shadow: 0 0 10px rgba(210, 10, 10, 0.4);
}

/* Red */

.sport-card:hover .sport-logo-container {
    transform: translateY(-40px);
}

.sport-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    background: linear-gradient(to top, #000 10%, rgba(0, 0, 0, 0.9) 60%, transparent 100%);
    transition: transform 0.3s ease;
}

.sport-info h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.sport-info p {
    color: #ccc;
    font-size: 0.95rem;
}

/* --- Plans Section --- */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.plan-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    transition: transform 0.3s;
}

.plan-card:hover {
    transform: translateY(-10px);
}

.plan-card.featured {
    border: 1px solid #2575fc;
    background: linear-gradient(145deg, #151515, #0f0f0f);
    transform: scale(1.05);
}

.plan-card.featured:hover {
    transform: scale(1.08);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-gradient);
    color: white;
    padding: 5px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.plan-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.plan-header h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.plan-card.featured .plan-header h3 {
    color: white;
}

.price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.price .currency {
    font-size: 1.5rem;
}

.price .value {
    font-size: 3.5rem;
    font-weight: 800;
}

.plan-features li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e0e0e0;
}

.plan-features li i {
    color: #2575fc;
}

/* --- Steps Section --- */
.steps-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    text-align: center;
    flex: 1;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #222;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid #333;
}

.step-line {
    flex: 1;
    height: 2px;
    background: #333;
    margin-top: 25px;
}

/* --- FAQ Section --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: white;
    padding: 20px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    color: var(--text-gray);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Approximately enough */
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* --- Testimonials --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #1a1a1a;
    padding: 30px;
    border-radius: var(--radius-md);
    text-align: center;
}

.stars {
    color: #ffd700;
    margin-bottom: 15px;
}

.client-name {
    margin-top: 20px;
    font-weight: 700;
    color: #2575fc;
}

/* --- Footer --- */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
    padding-top: 60px;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}

.footer-links h4,
.footer-contact h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a,
.footer-contact a {
    color: var(--text-gray);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #666;
}

/* --- Responsive --- */
@media (max-width: 991px) {
    .hero-title {
        font-size: 3rem;
    }

    .device-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .app-list {
        text-align: left;
    }

    .steps-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .step-line {
        display: none;
    }

    .footer-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: #111;
        flex-direction: column;
        padding: 40px;
        transition: 0.4s;
        border-left: 1px solid #333;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    .price .value {
        font-size: 2.8rem;
    }

    .plan-card.featured {
        transform: none;
    }

    .plan-card.featured:hover {
        transform: translateY(-10px);
    }

    .scroll-btn {
        display: none;
    }

    /* Hide scroll buttons on mobile, rely on swipe */
}

/* --- Floating WhatsApp Button --- */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    animation: floatPulse 2s infinite;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    background-color: #128c7e;
}

@keyframes floatPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* --- Visitor Popup --- */
.visitor-popup {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.visitor-popup.show {
    opacity: 1;
    transform: translateY(0);
}

.visitor-popup i {
    color: #2575fc;
    font-size: 1.1rem;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

@media (max-width: 768px) {
    .floating-whatsapp {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }

    .visitor-popup {
        bottom: 90px;
        left: 20px;
        right: auto;
        font-size: 0.8rem;
        padding: 12px 20px;
    }
}