/* Tutorials Page Specific Styles */

/* Page Header */
.tutorials-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 0;
    color: white;
    text-align: center;
}

.tutorials-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    animation: fadeInDown 0.6s ease;
}

.tutorials-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Tutorial Navigation Buttons */
.tutorials-header .contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.tutorials-header .contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.tutorials-header .contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.tutorials-header .contact-btn i {
    font-size: 1.3rem;
}

.purchase-btn {
    background: #10b981;
    color: white;
}

.purchase-btn:hover {
    background: #059669;
}

.setup-btn {
    background: #f59e0b;
    color: white;
}

.setup-btn:hover {
    background: #d97706;
}

@media (max-width: 576px) {
    .tutorials-header .contact-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tutorials-header .contact-btn {
        justify-content: center;
    }
}

/* Tutorials Grid */
.tutorials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    padding: 4rem 0;
}

/* Tutorial Cards */
.tutorial-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 0.6s ease;
}

.tutorial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.tutorial-card:nth-child(1) { animation-delay: 0.1s; }
.tutorial-card:nth-child(2) { animation-delay: 0.2s; }
.tutorial-card:nth-child(3) { animation-delay: 0.3s; }
.tutorial-card:nth-child(4) { animation-delay: 0.4s; }
.tutorial-card:nth-child(5) { animation-delay: 0.5s; }
.tutorial-card:nth-child(6) { animation-delay: 0.6s; }

/* Tutorial Header */
.tutorial-header {
    background: var(--gradient);
    color: white;
    padding: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tutorial-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    50% { transform: translate(-50%, -50%) rotate(180deg); }
}

.tutorial-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.tutorial-header h3 {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

/* Tutorial Steps */
.tutorial-steps {
    padding: 2rem;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s, transform 0.3s;
}

.step:hover {
    opacity: 1;
    transform: translateX(5px);
}

.step-number {
    background: var(--primary-color);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 1rem;
    flex-shrink: 0;
    position: relative;
}

.step-number::after {
    content: '';
    position: absolute;
    width: 2px;
    height: calc(100% + 1.5rem);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.step:last-child .step-number::after {
    display: none;
}

.step-content {
    flex: 1;
}

.step-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

.step-description {
    color: var(--text-color);
    line-height: 1.6;
}

/* Video Tutorial Section */
.video-tutorials {
    background: var(--light-color);
    padding: 4rem 0;
}

.video-tutorials h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.video-card:hover {
    transform: translateY(-5px);
}

.video-thumbnail {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    cursor: pointer;
}

.video-thumbnail::before {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    background: rgba(0,0,0,0.5);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.video-thumbnail:hover::before {
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 1.5rem;
}

.video-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.video-duration {
    color: var(--text-color);
    font-size: 0.9rem;
}

/* Quick Start Guide */
.quick-start {
    padding: 4rem 0;
    background: white;
}

.quick-start h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.timeline {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 2rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 2rem;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* FAQ Section for Tutorials */
.tutorials-faq {
    background: var(--light-color);
    padding: 4rem 0;
}

.tutorials-faq h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.faq-categories {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.faq-category-btn {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.faq-category-btn.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
}

.faq-category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Device Compatibility Section */
.device-compatibility {
    padding: 4rem 0;
}

.device-compatibility h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-color);
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.device-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
    cursor: pointer;
}

.device-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.device-item i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.device-name {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.device-status {
    color: var(--success-color);
    font-size: 0.9rem;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 4rem 0;
    color: white;
    text-align: center;
}

.download-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.download-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.download-btn {
    background: white;
    color: var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.download-btn i {
    font-size: 1.25rem;
}

/* Setup Guides by Device Section - Enhanced */
.setup-guides {
    padding: 4rem 0;
    background: #f8f9fa;
}

.setup-guides h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.section-subtitle {
    text-align: center;
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Device Categories Tabs */
.device-categories {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-tab {
    background: white;
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-color);
}

.category-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.category-tab.active {
    background: var(--gradient);
    color: white;
    border-color: transparent;
    transform: scale(1.05);
}

.category-tab i {
    font-size: 1.1rem;
}

/* Setup Guides Grid */
.setup-guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    animation: fadeIn 0.6s ease;
}

/* Setup Card */
.setup-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.setup-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.setup-card.featured {
    border: 2px solid var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 20px;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 0 0 8px 8px;
    z-index: 1;
}

/* Card Header */
.setup-card-header {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 1rem;
}

/* Device Icons with Brand Colors */
.device-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
}

.device-icon.samsung {
    background: linear-gradient(135deg, #1428A0 0%, #0066B3 100%);
}

.device-icon.lg {
    background: linear-gradient(135deg, #A50034 0%, #6B0020 100%);
}

.device-icon.android-tv {
    background: linear-gradient(135deg, #3DDC84 0%, #00A971 100%);
}

.device-icon.firestick {
    background: linear-gradient(135deg, #FF9900 0%, #FF6600 100%);
}

.device-icon.roku {
    background: linear-gradient(135deg, #662D8C 0%, #8B3A8F 100%);
    font-size: 0.9rem;
    font-weight: bold;
}

.roku-logo {
    font-family: 'Arial Black', sans-serif;
    letter-spacing: 1px;
}

.device-icon.apple-tv {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.device-icon.chromecast {
    background: linear-gradient(135deg, #4285F4 0%, #EA4335 100%);
}

.device-icon.ios {
    background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

.device-icon.android {
    background: linear-gradient(135deg, #3DDC84 0%, #00C853 100%);
}

.device-icon.windows {
    background: linear-gradient(135deg, #0078D4 0%, #00BCF2 100%);
}

.device-icon.mac {
    background: linear-gradient(135deg, #333333 0%, #666666 100%);
}

.device-icon.mag {
    background: linear-gradient(135deg, #FF6B6B 0%, #C92A2A 100%);
}

/* Device Info */
.device-info h3 {
    font-size: 1.25rem;
    color: var(--dark-color);
    margin-bottom: 0.25rem;
}

/* Difficulty Badges */
.difficulty {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.difficulty.easy {
    background: #D1FAE5;
    color: #065F46;
}

.difficulty.medium {
    background: #FED7AA;
    color: #92400E;
}

.difficulty.hard {
    background: #FECACA;
    color: #991B1B;
}

/* Card Body */
.setup-card-body {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
}

.setup-card-body p {
    color: var(--text-color);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Setup Meta */
.setup-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #6B7280;
}

.setup-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.setup-meta i {
    color: var(--primary-color);
}

/* Setup Button */
.setup-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--gradient);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border-top: 1px solid var(--border-color);
}

.setup-btn:hover {
    gap: 1rem;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.setup-btn i {
    transition: transform 0.3s;
}

.setup-card:hover .setup-btn i {
    transform: translateX(3px);
}

/* Filter Animation */
.setup-card {
    animation: fadeInUp 0.5s ease;
}

.setup-card[data-category]:not(.show) {
    display: none;
}

.setup-card.show {
    display: flex;
    animation: fadeInUp 0.5s ease;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Tutorials Page */
@media (max-width: 768px) {
    .tutorials-grid {
        grid-template-columns: 1fr;
        padding: 2rem 0;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content,
    .timeline-item:nth-child(odd) .timeline-content {
        margin-left: 4rem;
        margin-right: 0;
    }
    
    .timeline-dot {
        left: 30px;
    }
    
    .devices-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tutorials-header h1 {
        font-size: 2rem;
    }
    
    .tutorial-card {
        margin: 0 10px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
    }
    
    .step-number::after {
        display: none;
    }
}

/* Responsive Design for Setup Guides */
@media (max-width: 768px) {
    .setup-guides-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .device-categories {
        flex-direction: column;
        align-items: stretch;
        padding: 0 1rem;
    }
    
    .category-tab {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .setup-card-header {
        padding: 1rem;
    }
    
    .device-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .device-info h3 {
        font-size: 1.1rem;
    }
    
    .setup-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}