/* guides.css  */
.troubleshooting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

@media (min-width: 992px) {
    .troubleshooting-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.troubleshooting-card {
    position: relative;
    background-color: var(--background-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.troubleshooting-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.troubleshooting-card p {
    margin-bottom: 1rem;
}

.dark-mode .troubleshooting-grid .issue-icon {
	filter: invert(1);
}

.issue-header {
    display: flex;
    align-items: center;
    padding: 2rem;
    background-color: var(--background-dark);
    border-bottom: 1px solid var(--border-color);
}

.issue-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: rgba(98, 0, 234, 0.1);
    border-radius: 50%;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.issue-icon img {
    width: 2.6rem;
    height: 2.6rem;
}

.issue-header h3 {
    margin-bottom: 0;
    font-size: 1.8rem;
    line-height: 1.3;
    padding: 0;
}

.issue-content {
    padding: 2rem;
}

.issue-description {
    color: var(--text-secondary);
    font-size: 1.6rem;
    line-height: 1.5;
}

.solution {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--primary-color);
}

.solution:last-child {
    margin-bottom: 0;
}

.solution h5 {
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 1.7rem;
    display: flex;
    align-items: center;
}

.solution-steps {
    padding-left: 2rem;
}

.solution-steps li {
    margin-bottom: 1.5rem;
    position: relative;
}

.solution-steps li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: -1.5rem;
}

.solution-steps ol {
    margin-top: 1rem;
    padding-left: 2rem;
    counter-reset: item;
}

.solution-steps ol li {
    margin-bottom: 0.8rem;
    counter-increment: item;
    list-style: none;
}

.solution-steps ol li::before {
    content: counter(item) ".";
    left: -2rem;
}

.solution-image {
    margin-top: 1.5rem;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.solution-image img {
    max-width: 100%;
    display: block;
}

pre {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
}


/* Section transitions */
.guide-section {
    position: relative;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: -3rem;
    left: 0;
    right: 0;
    height: 3rem;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.02));
    pointer-events: none;
}

.guide-section.alt {
    background-color: var(--background-dark);
}

/* Guide Cards */
.guide-card {
    background-color: var(--background-card);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.guide-card p {
    margin-bottom: 1rem;
}

.guide-card .guide-note p {
    margin: 0;
}


.guide-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.guide-card h3 {
    color: var(--primary-color);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
}

.guide-list li, .guide-steps li {
    margin-bottom: 1.2rem;
}

.guide-note {
    background-color: rgba(98, 0, 234, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.guide-image {
    margin: 2rem 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Platform Guides */
.platform-guide {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.platform-guide:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.platform-guide h4 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

/* Templates Grid */
.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.template-card {
    background-color: var(--background-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.template-preview {
    height: 180px;
    overflow: hidden;
}

.template-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.template-card:hover .template-preview img {
    transform: scale(1.05);
}

.template-card h4 {
    padding: 1.5rem;
    margin-bottom: 0.5rem;
}

.template-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.template-card a {
    margin: 0 1.5rem 1.5rem;
    display: flex;
    align-items: center;
}

.template-note {
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    color: var(--text-secondary);
}


.guide-card ul {
    padding-left: 2rem;
    margin: 2rem 0;
}

.guide-card ul li {
    position: relative;
    padding-left: 2.4rem;
    margin-bottom: 1.6rem;
    line-height: 1.5;
}

.guide-card ul li:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.guide-card ul li:last-child {
    margin-bottom: 0;
}
/* Mobile responsiveness */
@media (max-width: 768px) {
    .guide-nav-links {
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
    }
    
    .guide-nav-link {
        flex: 0 0 auto;
    }
    
    .troubleshooting-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .templates-grid,
    .support-buttons {
        grid-template-columns: 1fr;
    }
    
    .solution-steps {
        padding-left: 1rem;
    }
    
    .issue-header h3 {
        font-size: 1.6rem;
    }
}

/* Guide tabs styling */
.guide-tabs {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

.tab-btn {
    padding: 0.8rem 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    background: none;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(157, 70, 255, 0.05);
}

.tab-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: rgba(157, 70, 255, 0.1);
}

.guide-section-wrapper {
    display: none;
}

.guide-section-wrapper.active {
    display: block;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.dark-mode .tab-btn {
    color: var(--text-secondary);
}

.dark-mode .tab-btn:hover {
    color: var(--primary-light);
    background-color: rgba(157, 70, 255, 0.1);
}

.dark-mode .tab-btn.active {
    color: var(--primary-light);
    border-color: var(--primary-light);
    background-color: rgba(157, 70, 255, 0.15);
}

/* Video container for tutorial videos */
.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Mobile responsiveness for tabs */
@media (max-width: 768px) {
    .guide-tabs {
        gap: 1rem;
    }
    
    .tab-btn {
        padding: 0.6rem 1.5rem;
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .guide-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 280px;
    }
}