/* ============================================
   KltraTV - Global Stylesheet
   ============================================ */

/* Reset & Variables */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #e94560;
    --primary-dark: #d63447;
    --bg-dark: #1a1a2e;
    --bg-card: #16213e;
    --bg-secondary: #0f3460;
    --text-main: #eee;
    --text-muted: #aaa;
    --accent-cyan: #0ff;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--bg-card) 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent-cyan); }

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--primary);
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logo-text {
    font-size: 22px;
    font-weight: bold;
}

.logo-text span { color: var(--primary); }

.nav { display: flex; gap: 25px; }

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
}

.nav a:hover, .nav a.active { color: var(--primary); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 24px;
    cursor: pointer;
}

/* ============================================
   Main Layout
   ============================================ */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 25px;
}

.content { display: flex; flex-direction: column; gap: 20px; }

.sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ============================================
   Section Box (Content Blocks)
   ============================================ */
.section-box {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.section-title {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-box {
    text-align: center;
    padding: 40px 30px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-card) 100%);
    border: 2px solid var(--primary);
}

.hero-box h1 {
    font-size: 28px;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat .stat-num {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: var(--primary);
}

.hero-stat .stat-text {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   Article Body (Long Content)
   ============================================ */
.article-body {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.article-body p {
    margin-bottom: 15px;
}

.article-body h3 {
    color: var(--text-main);
    font-size: 18px;
    margin: 25px 0 15px;
}

.article-body ul, .article-body ol {
    margin: 15px 0;
    padding-left: 25px;
}

.article-body li {
    margin-bottom: 10px;
}

.article-body strong {
    color: var(--text-main);
}

/* Info Box */
.info-box {
    background: rgba(233, 69, 96, 0.1);
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

/* ============================================
   Key Generator Section
   ============================================ */
.key-section {
    border: 2px solid var(--primary);
}

.key-generator-box {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px;
    margin: 20px 0;
    text-align: center;
}

.key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
		padding-bottom: 15px;
}

.key-stat {
    text-align: center;
    padding: 15px 10px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 8px;
}

.key-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary);
}

.key-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.turnstile-wrapper {
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

@media (max-width: 400px) {
    .turnstile-wrapper {
        transform: scale(0.9);
        transform-origin: center;
    }
}
.generate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
		margin-top: 8px;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.4);
}

.generate-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

/* Key States */
.key-loading, .key-result, .key-error {
    display: none;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
    border-radius: 10px;
}

.key-loading.show, .key-result.show, .key-error.show { display: block; }

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(233, 69, 96, 0.3);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.loading-text { font-size: 14px; color: var(--text-muted); }

.countdown { font-size: 24px; color: var(--primary); font-weight: bold; margin-top: 10px; }

.key-result {
    background: var(--bg-dark);
    border: 2px solid var(--primary);
}

.key-code {
    font-family: 'Courier New', monospace;
    font-size: 32px;
    color: var(--accent-cyan);
    letter-spacing: 3px;
    margin-bottom: 10px;
    font-weight: bold;
}

.key-expires { font-size: 12px; color: var(--text-muted); margin-bottom: 15px; }

.copy-btn {
    background: var(--primary);
    border: none;
    color: white;
    padding: 10px 25px;
    font-size: 14px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.copy-btn:hover { 
    background: var(--primary-dark);
    transform: scale(1.05);
}

.key-error {
    background: rgba(255, 68, 68, 0.1);
    border: 2px solid #ff4444;
}

.error-text { color: #ff6b6b; font-size: 14px; }

/* ============================================
   Features Grid
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.2);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ============================================
   Download Grid
   ============================================ */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.download-card {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    border: 1px solid rgba(233, 69, 96, 0.1);
}

.download-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(233, 69, 96, 0.2);
}

.download-icon {
    font-size: 35px;
    width: 60px;
    height: 60px;
    background: rgba(233, 69, 96, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-info h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.download-info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.download-btn {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 11px;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
}

/* ============================================
   FAQ Section
   ============================================ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: var(--bg-card);
    border-radius: 10px;
    padding: 20px;
    border-left: 3px solid var(--primary);
}

.faq-question {
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   Sidebar Widgets
   ============================================ */
.widget {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
}

.widget-title {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Quick Download Widget */
.quick-download {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-dl-btn {
    display: flex;
    align-items: center;
		justify-Content: center;
    gap: 10px;
    background: var(--bg-card);
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 14px;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.quick-dl-btn:hover {
    border-color: var(--primary);
    background: rgba(233, 69, 96, 0.1);
    color: var(--primary);
}

.quick-dl-btn span {
    font-size: 18px;
}

/* App Info Table */
.app-info-table {
    width: 100%;
    font-size: 13px;
}

.app-info-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.app-info-table td {
    padding: 10px 0;
}

.app-info-table td:first-child {
    color: var(--text-muted);
}

.app-info-table td:last-child {
    text-align: right;
    color: var(--text-main);
    font-weight: 500;
}

/* Popular Items */
.popular-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.popular-item:last-child { border-bottom: none; padding-bottom: 0; }
.popular-item:first-child { padding-top: 0; }

.popular-num {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
    flex-shrink: 0;
}

.popular-info a {
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.4;
    display: block;
}

.popular-info a:hover { color: var(--primary); }

.popular-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
    background: rgba(233, 69, 96, 0.1);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 12px;
}

.tag:hover { background: var(--primary); color: white; }

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid rgba(233, 69, 96, 0.2);
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.footer-section h4 {
    color: var(--primary);
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-section p, .footer-section a {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-section a { display: block; }
.footer-section a:hover { color: var(--primary); }

.footer-bottom {
    max-width: 1200px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

/* Big Download Button */
.big-download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
		max-width: 200px;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 30px;
    margin: 10px auto;
    font-size: 15px;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.big-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(233, 69, 96, 0.5);
    color: white;
}

.big-download-btn span {
    font-size: 24px;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 900px) {
    .main-container { grid-template-columns: 1fr; }
    
    .nav { display: none; }
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 15px 20px;
        border-bottom: 2px solid var(--primary);
    }
    
    .menu-toggle { display: block; }
    
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .download-grid { grid-template-columns: 1fr; }
    
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    
    .hero-box h1 { font-size: 24px; }
    .hero-stats { gap: 20px; }
}

@media (max-width: 600px) {
    .features-grid { grid-template-columns: 1fr; }
    .key-stats { grid-template-columns: 1fr; }
    .hero-stat .stat-num { font-size: 24px; }
    .key-code { font-size: 24px; }
}

@media (max-width: 600px) {
    .key-generator-box {
        padding: 15px 10px;
    }
    
    .key-stats {
        gap: 10px;
    }
    
    .key-stat {
        padding: 12px 8px;
    }
}
