/* Modern Frontend Instruction Page */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.modern-instruction-page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    position: relative;
}

/* Hero Background Container */
.hero-background {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 60px 60px 0 0;
    position: relative;
    padding-bottom: 60px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 600px;
    gap: 60px;
    position: relative;
}



.hero-content {
    flex: 1;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.9;
    max-width: 500px;
}

.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
}

.tv-mockup {
    position: relative;
    width: 300px;
    height: 200px;
    background: linear-gradient(145deg, #2c3e50 0%, #34495e 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.tv-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.tv-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: shine 3s infinite;
}

.tvix-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: white;
    z-index: 1;
}

.tvix-logo i {
    font-size: 40px;
    color: #667eea;
}

.tvix-logo span {
    font-size: 16px;
    font-weight: 600;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(100%); }
}

/* Platform Selector Section */
.platform-selector-section {
    background: white;
    padding: 80px 40px;
    position: relative;
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    z-index: 5;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.1);
}



.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 18px;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.platform-card {
    background: white;
    border-radius: 20px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    position: relative;
}

.platform-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-card:hover::before {
    opacity: 1;
}

.platform-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.platform-card-inner {
    padding: 40px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.platform-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px auto;
    font-size: 32px;
    color: white;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.platform-card:hover .platform-logo {
    transform: scale(1.1);
}

.platform-logo.samsung { background: linear-gradient(135deg, #1f4e79 0%, #2980b9 100%); }
.platform-logo.lg { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); }
.platform-logo.android { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); }
.platform-logo.amazon { background: linear-gradient(135deg, #d35400 0%, #e67e22 100%); }
.platform-logo.apple { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }
.platform-logo.roku { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }

.platform-name {
    font-size: 22px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
}

.platform-os {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
    font-weight: 500;
}

.platform-arrow {
    font-size: 18px;
    color: #667eea;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.platform-card:hover .platform-arrow {
    opacity: 1;
    transform: translateX(0);
}

/* Installation Section */
.installation-section {
    display: none;
    background: white;
    min-height: 100vh;
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 5;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s ease;
}

.installation-section.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}



.instruction-panel {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px;
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.instruction-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.instruction-header {
    margin-bottom: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
    font-size: 16px;
}

.back-button:hover {
    color: #764ba2;
    transform: translateX(-5px);
}

.platform-info {
    text-align: center;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 20px;
    color: white;
}

.platform-badge.samsung { background: linear-gradient(135deg, #1f4e79 0%, #2980b9 100%); }
.platform-badge.lg { background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%); }
.platform-badge.android { background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%); }
.platform-badge.amazon { background: linear-gradient(135deg, #d35400 0%, #e67e22 100%); }
.platform-badge.apple { background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%); }
.platform-badge.roku { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }

.instruction-title {
    font-size: 36px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 40px;
}

.instruction-content {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.instruction-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Enhanced Step Styling for Instruction Content */
.instruction-content .installation-guide {
    margin: 0;
}

.instruction-content .installation-guide h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.instruction-content .installation-guide h2::before {
    content: '';
    width: 50px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.instruction-content .step-container {
    margin: 30px 0;
}

.instruction-content .step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.instruction-content .step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instruction-content .step:hover::before {
    opacity: 1;
}

.instruction-content .step:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    border-left-color: #667eea;
}

.instruction-content .step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.instruction-content .step-content {
    flex-grow: 1;
    position: relative;
    z-index: 1;
}

.instruction-content .step-content h3 {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.instruction-content .step-content p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.7;
    font-size: 16px;
}

.instruction-content .step-content strong {
    color: #667eea;
    font-weight: 600;
}

.instruction-content .step-content a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.instruction-content .step-content a:hover {
    text-decoration: underline;
}

/* Alternative Method Styling */
.instruction-content .alternative-method {
    margin-top: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 2px solid #fdcb6e;
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.instruction-content .alternative-method::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #e17055 0%, #fdcb6e 100%);
}

.instruction-content .alternative-method h3 {
    color: #e67e22;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instruction-content .alternative-method p {
    color: #2d3436;
    margin: 0;
    line-height: 1.6;
}

/* Note Box Styling */
.instruction-content .note-box {
    background: linear-gradient(135deg, #e8f4fd 0%, #b3d9ff 100%);
    border: 2px solid #667eea;
    padding: 20px 25px;
    border-radius: 15px;
    margin: 25px 0;
    position: relative;
    overflow: hidden;
}

.instruction-content .note-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.instruction-content .note-box p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

.instruction-content .note-box strong {
    color: #667eea;
}

/* Enhanced Step Styling */
.modern-instruction-content .step-item {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-instruction-content .step-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modern-instruction-content .step-item:hover::before {
    opacity: 1;
}

.modern-instruction-content .step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.modern-instruction-content .step-number {
    width: 50px;
    height: 50px;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    position: relative;
    z-index: 1;
}

.modern-instruction-content .step-content {
    position: relative;
    z-index: 1;
}

.modern-instruction-content .step-content h4 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #2c3e50;
}

.modern-instruction-content .step-content p {
    font-size: 16px;
    line-height: 1.7;
    color: #5a6c7d;
}

.modern-instruction-content .compatibility-info {
    background: linear-gradient(135deg, #e8f4fd 0%, #f1f8ff 100%);
    border: 2px solid #b3d9ff;
    border-radius: 15px;
    padding: 20px 25px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
}

.modern-instruction-content .compatibility-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Support Section */
.support-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 40px;
    border-radius: 60px 60px 0 0;
    margin-top: -60px;
    position: relative;
    z-index: 4;
}



.support-container {
    max-width: 800px;
    margin: 0 auto;
}

.support-content {
    background: white;
    border-radius: 25px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 40px;
}

.support-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: white;
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.support-text {
    flex: 1;
    text-align: left;
}

.support-text h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.support-text p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.support-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.support-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-background {
        border-radius: 40px 40px 0 0;
        padding-bottom: 40px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 60px 30px;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .platform-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .platform-selector-section {
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }
    
    .installation-section {
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }
    
    .support-section {
        border-radius: 40px 40px 0 0;
        margin-top: -40px;
    }
}

@media (max-width: 768px) {
    .hero-background {
        border-radius: 30px 30px 0 0;
        padding-bottom: 30px;
    }
    
    .hero-section {
        padding: 40px 20px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .platform-selector-section {
        padding: 60px 20px;
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .platform-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .platform-card-inner {
        padding: 30px 20px;
    }
    
    .platform-logo {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .instruction-panel {
        padding: 20px;
    }
    
    .instruction-content {
        padding: 25px;
    }
    
    .modern-instruction-content .step-item {
        padding: 20px;
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .modern-instruction-content .step-number {
        margin-bottom: 15px;
        margin-right: 0;
    }
    
    .support-content {
        flex-direction: column;
        text-align: center;
        padding: 30px;
        gap: 25px;
    }
    
    .support-text {
        text-align: center;
    }
    
    .installation-section {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }
    
    .support-section {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
    }
}

@media (max-width: 480px) {
    .hero-background {
        border-radius: 20px 20px 0 0;
        padding-bottom: 20px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .tv-mockup {
        width: 250px;
        height: 160px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .instruction-title {
        font-size: 28px;
    }
    
    .modern-instruction-content .step-item {
        padding: 15px;
    }
    
    .support-content {
        padding: 20px;
    }
    
    .platform-selector-section {
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
    }
    
    .installation-section {
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
    }
    
    .support-section {
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.platform-card {
    animation: fadeInUp 0.6s ease forwards;
}

.platform-card:nth-child(1) { animation-delay: 0.1s; }
.platform-card:nth-child(2) { animation-delay: 0.2s; }
.platform-card:nth-child(3) { animation-delay: 0.3s; }
.platform-card:nth-child(4) { animation-delay: 0.4s; }
.platform-card:nth-child(5) { animation-delay: 0.5s; }
.platform-card:nth-child(6) { animation-delay: 0.6s; }
