/* Guide Page Styles */

/* Hero Section */
.guide-hero {
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 30, 63, 0.95) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    padding: 120px 0 80px;
    min-height: 40vh;
    position: relative;
}

.guide-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 14, 39, 0.85) 0%, rgba(26, 30, 63, 0.85) 100%);
    z-index: 1;
}

.guide-hero .container {
    position: relative;
    z-index: 2;
}

.guide-search {
    max-width: 600px;
    margin-top: 2rem;
}

.guide-search .input-group-text {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.guide-search .form-control {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 16px;
}

.guide-search .form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
    box-shadow: 0 0 0 0.2rem rgba(0, 255, 136, 0.25);
    color: white;
}

.guide-search .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Main Content */
.guide-content {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* Sidebar */
.guide-sidebar {
    background-color: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.sidebar-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 12px;
}

.guide-sidebar .nav-link {
    color: #495057;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.guide-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.guide-sidebar .nav-link.active {
    background-color: #0d6efd;
    color: white;
}

.guide-sidebar .nav-link i {
    font-size: 1rem;
}

/* Main Content Area */
.guide-main {
    background-color: white;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-section {
    margin-bottom: 60px;
    padding-bottom: 60px;
    border-bottom: 1px solid #e9ecef;
}

.guide-section:last-child {
    border-bottom: none;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: #0a0e27;
}

/* Step Cards */
.step-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    height: 100%;
    transition: transform 0.2s;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-card h5 {
    font-weight: 600;
    margin-bottom: 12px;
    color: #0a0e27;
}

.step-card p {
    color: #6c757d;
    margin: 0;
}

/* Feature Boxes */
.feature-box {
    background-color: #f8f9fa;
    border-left: 4px solid #0d6efd;
    padding: 20px;
    border-radius: 8px;
}

.feature-box h5 {
    font-weight: 600;
    margin-bottom: 16px;
}

.example-list {
    list-style: none;
    padding: 0;
}

.example-list li {
    padding: 12px;
    background-color: white;
    border-radius: 6px;
    margin-bottom: 8px;
    border-left: 3px solid #00ff88;
}

/* Video Placeholder */
.video-placeholder {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-radius: 12px;
    padding: 60px;
    text-align: center;
    color: #6c757d;
    display: none; /* Hidden for now until videos are ready */
}

.video-placeholder i {
    color: #adb5bd;
}

/* Video Container */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 1s ease-in-out, padding-bottom 1s ease-in-out;
    max-width: 700px;
    margin: 0 auto;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Rotated state - 90 degrees anticlockwise */
.video-container.rotated {
    transform: rotate(-90deg) scale(0.56);
    padding-bottom: 56.25%; /* Keep original aspect ratio */
    margin: 0 auto;
}

/* CTA Box */
.cta-box {
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
}

/* Method Cards */
.method-card {
    background-color: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    height: 100%;
    transition: all 0.3s;
}

.method-card:hover {
    border-color: #0d6efd;
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.1);
}

.method-icon {
    text-align: center;
    margin-bottom: 16px;
}

.method-card h5 {
    font-weight: 600;
    margin-bottom: 12px;
}

.example-box {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
}

.example-box pre {
    background-color: white;
    padding: 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    margin: 0;
}

/* Feature Items */
.feature-item {
    padding: 12px;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-bottom: 8px;
}

/* Numbered List */
.numbered-list {
    counter-reset: item;
    list-style: none;
    padding-left: 0;
}

.numbered-list li {
    counter-increment: item;
    padding: 12px 12px 12px 48px;
    position: relative;
    margin-bottom: 12px;
}

.numbered-list li::before {
    content: counter(item);
    position: absolute;
    left: 0;
    top: 8px;
    width: 32px;
    height: 32px;
    background-color: #0d6efd;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Steps Container */
.steps-container {
    margin-top: 24px;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid #e9ecef;
}

.step-item:last-child {
    border-bottom: none;
}

.step-badge {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h5 {
    font-weight: 600;
    margin-bottom: 8px;
}

.placeholder-image {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    margin-top: 16px;
    display: none; /* Hidden for now until screenshots are ready */
}

.placeholder-image i {
    font-size: 3rem;
}

/* Device Cards */
.device-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    transition: all 0.2s;
}

.device-card:hover {
    background-color: #e9ecef;
}

.device-card i {
    font-size: 2rem;
    color: #0d6efd;
    margin-bottom: 8px;
}

.device-card p {
    margin: 0;
    font-weight: 500;
}

/* Accordion Customization */
.accordion-item {
    border: 1px solid #e9ecef;
    margin-bottom: 8px;
    border-radius: 8px !important;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: #0a0e27;
}

.accordion-button:not(.collapsed) {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: #e9ecef;
}

/* Troubleshooting Items */
.troubleshooting-item {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.troubleshooting-item h5 {
    font-weight: 600;
    margin-bottom: 12px;
}

.troubleshooting-item ul {
    margin-bottom: 0;
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .guide-sidebar {
        position: relative;
        top: 0;
        max-height: none;
        margin-bottom: 24px;
    }
    
    .guide-main {
        padding: 24px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .step-item {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 767px) {
    .guide-hero {
        padding: 100px 0 60px;
    }
    
    .guide-main {
        padding: 20px;
    }
    
    .video-placeholder {
        padding: 40px 20px;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Highlight Search Results */
.highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
}

/* Rotating Phone Icon Animation */
.rotate-icon {
    display: inline-block;
    color: #0d6efd;
    animation: rotatePhone 2s ease-in-out infinite;
}

@keyframes rotatePhone {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(90deg);
    }
    75% {
        transform: rotate(90deg);
    }
}
