/*
Theme Name: BLACKGOLD IPTV
Theme URI: https://yourun.it
Author: BLACKGOLD
Author URI: https://yourun.it
Description: Premium IPTV theme with 9500+ channels, 4K HDR streaming. Built from custom HTML design.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blackgold-iptv
Tags: iptv, streaming, video, dark, yellow, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

/* ---------- CSS VARIABLES ---------- */
:root {
    --bg-dark: #0a0a0a;
    --bg-soft-black: #111111;
    --bg-card: #1e1e1e;
    --yellow: #c99120;
    --yellow-dark: #b37e1b;
    --yellow-light: #daa73a;
    --text-light: #eaeaea;
    --text-dim: #aaaaaa;
    --border-dark: #2a2a2a;
    --border-light: #333;
    --shadow: 0 20px 30px -10px rgba(0,0,0,0.8);
    --shadow-hover: 0 30px 40px -8px rgba(201, 145, 32, 0.3);
    --transition: all 0.3s ease;
}

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* ---------- DISCOUNT BANNER ---------- */
.discount-banner {
    background: linear-gradient(135deg, var(--yellow) 0%, var(--yellow-light) 100%);
    color: var(--bg-dark);
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border-bottom: 3px solid var(--yellow-dark);
    box-shadow: 0 4px 15px rgba(201, 145, 32, 0.3);
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

.discount-banner-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.discount-banner i {
    font-size: 1.4rem;
    color: var(--bg-dark);
    background: rgba(255,255,255,0.3);
    padding: 0.4rem;
    border-radius: 50%;
    margin: 0 0.2rem;
}

.discount-banner .highlight {
    background: var(--bg-dark);
    color: var(--yellow);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 800;
    margin: 0 0.5rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.discount-banner .countdown {
    background: rgba(0,0,0,0.2);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(2px);
}

.discount-banner .countdown i {
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

.discount-code {
    background: #000;
    color: var(--yellow);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.discount-close {
    background: rgba(0,0,0,0.1);
    border: none;
    color: var(--bg-dark);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    transition: var(--transition);
    margin-left: 1rem;
}

.discount-close:hover {
    background: rgba(0,0,0,0.3);
}

/* ---------- UTILITY CLASSES ---------- */
.text-yellow { color: var(--yellow); }
.bg-soft-black { background-color: var(--bg-soft-black); }

/* ---------- HEADER ---------- */
.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--yellow);
    filter: drop-shadow(0 0 10px rgba(201, 145, 32, 0.3));
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.logo-text span { 
    color: var(--yellow);
    position: relative;
}

.logo-text span::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    border-radius: 2px;
}

.badge {
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    background: var(--bg-soft-black);
    border-radius: 50px;
    border: 1px solid var(--border-dark);
}

.badge i {
    color: var(--yellow);
    margin-right: 0.5rem;
}

/* Blog Button */
.blog-btn {
    background: transparent;
    color: var(--yellow);
    border: 2px solid var(--yellow);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    margin-left: 0.5rem;
}

.blog-btn:hover {
    background: var(--yellow);
    color: var(--bg-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 145, 32, 0.4);
}

.blog-btn i {
    font-size: 1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Business Contact Info */
.business-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.5rem 1rem;
    background: var(--bg-soft-black);
    border-radius: 50px;
    border: 1px solid var(--border-dark);
    font-size: 0.9rem;
}

.business-info i {
    color: var(--yellow);
    margin-right: 0.3rem;
}

.business-info a {
    color: var(--text-dim);
    text-decoration: none;
    transition: var(--transition);
}

.business-info a:hover {
    color: var(--yellow);
}

/* ---------- HERO SECTION ---------- */
.hero-wrapper {
    margin: 2rem 0 2.5rem;
    border-radius: 40px;
    overflow: hidden;
    background-color: var(--bg-soft-black);
    border: 2px solid var(--border-dark);
    transition: var(--transition);
    position: relative;
    box-shadow: var(--shadow);
}

.hero-wrapper:hover {
    border-color: var(--yellow);
    transform: translateY(-2px);
    box-shadow: 0 30px 50px -15px rgba(201, 145, 32, 0.4);
}

.hero-image {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 21/9;
    min-height: 300px;
    transition: transform 0.5s ease;
}

.hero-wrapper:hover .hero-image {
    transform: scale(1.02);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    backdrop-filter: blur(2px);
}

.hero-slogan {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.slogan-big span {
    color: var(--yellow);
    background: rgba(0,0,0,0.3);
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    display: inline-block;
}

.device-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
    color: var(--yellow);
    font-size: 1.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.device-row span {
    font-size: 1rem;
    color: var(--text-dim);
    margin-right: 0.5rem;
}

.device-row i {
    background: var(--bg-card);
    padding: 0.8rem;
    border-radius: 50%;
    border: 1px solid var(--yellow);
    transition: var(--transition);
    font-size: 1.3rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.device-row i:hover {
    background: var(--yellow);
    color: black;
    transform: translateY(-3px);
    border-color: white;
}

.hero-btn {
    background: var(--yellow);
    color: var(--bg-dark);
    border: none;
    padding: 1.2rem 3rem;
    border-radius: 60px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 0 #6b4e15;
    transform: translateY(0);
    transition: all 0.15s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border: 2px solid var(--yellow-light);
}

.hero-btn:hover {
    background-color: var(--yellow-light);
    box-shadow: 0 6px 0 #6b4e15;
    transform: translateY(4px);
    color: #000;
}

.hero-btn:active {
    transform: translateY(8px);
    box-shadow: 0 2px 0 #6b4e15;
}

.hero-btn i {
    font-size: 1.5rem;
}

/* ---------- CAROUSELS ---------- */
.carousel-section, .portrait-carousel-section {
    margin: 3rem 0 2rem;
}

.carousel-container, .portrait-carousel-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    padding: 1rem 0.25rem 2rem;
    scroll-behavior: smooth;
    position: relative;
}

.carousel-container::-webkit-scrollbar, .portrait-carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-container, .portrait-carousel-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.carousel-item {
    min-width: 280px;
    height: 180px;
    background: var(--bg-card);
    border-radius: 24px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 60%, rgba(201, 145, 32, 0.1));
    pointer-events: none;
}

.carousel-item:hover {
    border: 2px solid var(--yellow);
    transform: scale(1.02) translateY(-4px);
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.05);
}

.carousel-caption, .portrait-carousel-caption {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    color: var(--yellow);
    font-weight: 500;
    letter-spacing: 1px;
}

/* Portrait Carousel */
.portrait-carousel-item {
    min-width: 200px;
    width: 200px;
    height: 300px;
    background: var(--bg-card);
    border-radius: 24px;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-dark);
    transition: var(--transition);
    box-shadow: var(--shadow);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.portrait-carousel-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 60%, rgba(201, 145, 32, 0.1));
    pointer-events: none;
}

.portrait-carousel-item:hover {
    border: 2px solid var(--yellow);
    transform: scale(1.02) translateY(-4px);
}

.portrait-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.portrait-carousel-item:hover img {
    transform: scale(1.05);
}

/* ---------- WHY CHOOSE US ---------- */
.why-choose-section {
    background: var(--bg-soft-black);
    border-radius: 48px;
    padding: 3.5rem 2.5rem;
    margin: 3rem 0 2.5rem;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow);
}

h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

h2 i {
    color: var(--yellow);
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(201, 145, 32, 0.3));
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.feature-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border-radius: 32px;
    border: 1px solid var(--border-light);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--yellow), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.feature-item:hover::before {
    transform: translateX(100%);
}

.feature-item:hover {
    border-color: var(--yellow);
    transform: translateY(-8px);
    box-shadow: 0 20px 30px -10px rgba(201, 145, 32, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--yellow);
    margin-bottom: 1.2rem;
    filter: drop-shadow(0 0 10px rgba(201, 145, 32, 0.2));
}

.feature-desc {
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---------- PACKAGES ---------- */
.packages-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin: 3rem 0 2rem;
}

.package-card {
    background: var(--bg-soft-black);
    border-radius: 32px;
    padding: 2.5rem 2rem 2rem;
    flex: 1 1 280px;
    max-width: 320px;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.package-card.popular {
    border: 2px solid var(--yellow);
    transform: scale(1.02);
    position: relative;
}

.package-card.popular::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: 40px;
    right: -40px;
    background: var(--yellow);
    color: var(--bg-dark);
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.package-card:hover {
    border-color: var(--yellow);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.package-card.popular:hover {
    transform: scale(1.02) translateY(-8px);
}

.package-name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: white;
}

.package-duration {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--yellow);
    border-bottom: 2px dashed var(--yellow);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.package-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--yellow);
    margin-bottom: 1rem;
}

.package-price small {
    font-size: 1rem;
    color: var(--text-dim);
    font-weight: 400;
}

.package-features {
    list-style: none;
    margin: 2rem 0 2rem;
    color: var(--text-dim);
    font-size: 1rem;
    text-align: left;
}

.package-features li {
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.package-features i {
    color: var(--yellow);
    width: 20px;
    font-size: 1.2rem;
}

.btn-buy {
    display: inline-block;
    width: 100%;
    padding: 1rem;
    border-radius: 60px;
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    background-color: var(--yellow);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 0 #6b4e15;
    transform: translateY(0);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-buy::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn-buy:hover::after {
    width: 300px;
    height: 300px;
}

.btn-buy:hover {
    background-color: var(--yellow-light);
    box-shadow: 0 4px 0 #6b4e15;
    transform: translateY(4px);
}

.btn-buy:active {
    transform: translateY(6px);
    box-shadow: 0 2px 0 #6b4e15;
}

/* ---------- FAQ SECTION ---------- */
.faq-section {
    background: var(--bg-soft-black);
    border-radius: 48px;
    padding: 3.5rem 2.5rem;
    margin: 4rem 0 2rem;
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.faq-item {
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 24px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--yellow);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -5px rgba(201, 145, 32, 0.2);
}

.faq-question {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.faq-question i {
    color: var(--yellow);
    font-size: 1.2rem;
}

.faq-answer {
    color: var(--text-dim);
    padding-left: 2.5rem;
    border-left: 3px solid var(--yellow);
    margin-top: 0.5rem;
    line-height: 1.6;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.social-links a {
    color: var(--yellow);
    font-size: 1.8rem;
    transition: var(--transition);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-dark);
}

.social-links a:hover {
    color: var(--bg-dark);
    background: var(--yellow);
    transform: translateY(-5px);
}

/* ---------- FOOTER ---------- */
.footer-note {
    text-align: center;
    padding: 3rem 0 1rem;
    color: var(--text-dim);
    border-top: 1px solid var(--border-dark);
    margin-top: 4rem;
}

.footer-note a {
    color: var(--yellow);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-note a:hover {
    color: var(--yellow-light);
    text-decoration: underline;
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-wrapper, .carousel-section, .portrait-carousel-section, .why-choose-section, .packages-grid, .faq-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ---------- RESPONSIVE ---------- */
@media screen and (max-width: 768px) {
    .container { padding: 1rem; }
    .discount-banner { padding: 0.5rem; font-size: 0.8rem; }
    .discount-banner-content { gap: 0.5rem; }
    .header-wrapper { margin: 1rem 0 0.5rem; }
    .logo-icon { font-size: 1.8rem; }
    .logo-text { font-size: 1.3rem; }
    .hero-wrapper { border-radius: 24px; }
    .hero-image { aspect-ratio: 16/9; min-height: 200px; }
    .hero-overlay { padding: 1rem; }
    h1 { font-size: 1.2rem; }
    .carousel-item { min-width: 200px; height: 130px; }
    .portrait-carousel-item { min-width: 140px; height: 210px; }
    .why-choose-section { padding: 1.5rem 1rem; border-radius: 24px; }
    .features-grid { gap: 1rem; }
    .packages-grid { gap: 1rem; }
    .faq-section { padding: 1.5rem 1rem; border-radius: 24px; }
}

@media screen and (max-width: 480px) {
    .carousel-item { min-width: 160px; height: 100px; }
    .portrait-carousel-item { min-width: 120px; height: 180px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .badge { display: none; }
    .device-row span { display: none; }
    .package-card.popular::before { content: 'HOT'; top: 30px; right: -35px; padding: 0.3rem 4rem; font-size: 0.7rem; }
    .blog-btn span { display: none; }
}