/* Desh-E-TV specific styles */
.tv-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: white;
}

.tv-hero .product-title,
.tv-hero .product-description,
.tv-hero .breadcrumb a {
    color: white;
}

.tv-hero .breadcrumb {
    color: rgba(255, 255, 255, 0.8);
}

/* App Badges */
.app-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.8s both;
}

.badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge i {
    font-size: 1.2rem;
    color: var(--accent);
}

/* TV Showcase */
.tv-showcase {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.smart-tv {
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.tv-screen {
    width: 320px;
    height: 200px;
    background: #000;
    border-radius: 10px;
    border: 8px solid #2c2c54;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.tv-interface {
    padding: 1rem;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    font-size: 0.8rem;
}

.tv-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.logo {
    font-weight: bold;
    color: var(--accent);
}

.channel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.channel-item.active {
    background: var(--primary);
}

.channel-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.channel-logo {
    font-size: 1.2rem;
}

.now-playing {
    position: absolute;
    bottom: 0.5rem;
    left: 1rem;
    right: 1rem;
    font-size: 0.6rem;
    color: var(--accent);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-align: center;
}

.tv-stand {
    width: 60px;
    height: 20px;
    background: #2c2c54;
    margin: 0 auto;
    border-radius: 0 0 10px 10px;
    position: relative;
}

.tv-stand::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -30px;
    right: -30px;
    height: 8px;
    background: #1a1a2e;
    border-radius: 50px;
}

/* Mobile Preview */
.mobile-preview {
    position: absolute;
    right: -50px;
    top: 50px;
    animation: float 6s ease-in-out infinite 2s;
}

.phone-frame {
    width: 140px;
    height: 250px;
    background: #2c2c54;
    border-radius: 20px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 15px;
    overflow: hidden;
}

.mobile-interface {
    padding: 1rem;
    color: white;
    height: 100%;
}

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--accent);
}

.mobile-channels {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-channel {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.8rem;
}

.channel-thumb {
    width: 30px;
    height: 20px;
    background: var(--gradient);
    border-radius: 3px;
}

/* Problems Section */
.problems-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.problems-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.problem-card,
.solution-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.problem-card {
    border-left: 4px solid var(--secondary);
}

.solution-card {
    border-left: 4px solid var(--primary);
}

.problem-icon,
.solution-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.problem-icon {
    background: rgba(244, 42, 65, 0.1);
    color: var(--secondary);
}

.solution-icon {
    background: rgba(0, 106, 78, 0.1);
    color: var(--primary);
}

.problem-card ul,
.solution-card ul {
    list-style: none;
    padding: 0;
}

.problem-card li,
.solution-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
}

.problem-card li::before {
    content: '✗';
    color: var(--secondary);
    font-weight: bold;
    flex-shrink: 0;
}

.solution-card li::before {
    content: '✓';
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* Integration Section */
.integration-section {
    padding: 5rem 0;
    background: white;
}

.integration-steps {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.step-card {
    background: var(--light-gray);
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    transition: all 0.3s ease;
    min-width: 300px;
    max-width: 350px;
}

.step-card:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 2rem;
    width: 40px;
    height: 40px;
    background: var(--gradient);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.step-content h3 {
    margin: 1rem 0;
    color: var(--dark);
    font-size: 1.3rem;
}

.step-content p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.json-example-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.json-example-btn:hover {
    background: #005a42;
    transform: translateY(-2px);
}

/* Shortname Section */
.shortname-section {
    padding: 5rem 0;
    background: var(--light-gray);
}

.shortname-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.shortname-example {
    margin: 2rem 0;
}

.example-box {
    background: var(--dark);
    color: var(--accent);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    font-family: 'Monaco', 'Consolas', monospace;
    display: inline-block;
}

.example-label {
    color: white;
    margin-right: 1rem;
}

.phone-demo {
    background: linear-gradient(135deg, #2c2c54 0%, #1a1a2e 100%);
    border-radius: 20px;
    padding: 2rem;
    max-width: 300px;
    margin: 0 auto;
}

.demo-screen {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.demo-header {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.demo-input {
    margin-bottom: 1.5rem;
    text-align: left;
}

.demo-input label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark);
    font-weight: 500;
}

.demo-input input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: monospace;
    background: var(--light-gray);
    color: var(--primary);
    font-weight: bold;
}

.demo-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.demo-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 106, 78, 0.3);
}

/* JSON Modal */
.json-modal .modal-content {
    max-width: 800px;
}

.json-content {
    padding: 2rem;
}

.json-content pre {
    background: #1a1a2e;
    color: #f8f8f2;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

.json-note {
    background: rgba(0, 106, 78, 0.1);
    border: 1px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.json-note p {
    margin: 0;
    color: var(--primary);
    font-weight: 500;
}

/* Hero buttons for TV page */
.tv-hero .btn-primary {
    background: var(--accent);
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tv-hero .btn-primary:hover {
    background: #ffd700;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.tv-hero .btn-primary i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .shortname-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tv-showcase {
        flex-direction: column;
        height: auto;
        padding: 2rem 0;
    }
    
    .mobile-preview {
        position: static;
        margin-top: 2rem;
    }
    
    .tv-screen {
        width: 280px;
        height: 175px;
    }
    
    .app-badges {
        justify-content: center;
    }
    
    .integration-steps {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .tv-screen {
        width: 240px;
        height: 150px;
    }
    
    .phone-frame {
        width: 120px;
        height: 200px;
        padding: 10px;
    }
    
    .step-card {
        padding: 2rem 1.5rem;
    }
    
    .json-content pre {
        font-size: 0.8rem;
        padding: 1rem;
    }
}