/* Guide Pages Common Styles */

.guide-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-top: 100px;
}

.guide-container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.guide-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.guide-header h1 {
    color: #333;
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.guide-header .subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Guide Navigation */
.guide-nav {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.guide-nav h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.guide-nav ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.5rem;
}

.guide-nav li a {
    display: block;
    padding: 0.8rem 1rem;
    color: #667eea;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.guide-nav li a:hover {
    background: #667eea;
    color: white;
    transform: translateX(5px);
}

/* Guide Content Sections */
.guide-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

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

.guide-section h2 {
    color: #333;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-left: 1rem;
}

.guide-section h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.guide-section h3 {
    color: #444;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
}

.guide-section h4 {
    color: #555;
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.guide-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.guide-section ul,
.guide-section ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.guide-section li {
    color: #666;
    line-height: 1.8;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

/* Guide Tips and Highlights */
.guide-tip {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #667eea;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.guide-tip::before {
    content: '💡';
    position: absolute;
    top: 1rem;
    left: -2px;
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.guide-tip h4 {
    color: #333;
    margin: 0 0 1rem 2rem;
    font-size: 1.1rem;
}

.guide-tip p {
    margin: 0 0 0 2rem;
    color: #555;
}

.guide-warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffebee 100%);
    border-left: 4px solid #ff9800;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 10px 10px 0;
    position: relative;
}

.guide-warning::before {
    content: '⚠️';
    position: absolute;
    top: 1rem;
    left: -2px;
    background: #ff9800;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.guide-warning h4 {
    color: #333;
    margin: 0 0 1rem 2rem;
    font-size: 1.1rem;
}

.guide-warning p {
    margin: 0 0 0 2rem;
    color: #555;
}

/* Guide Steps */
.guide-steps {
    counter-reset: step-counter;
    margin: 2rem 0;
}

.guide-step {
    counter-increment: step-counter;
    background: #f8f9fa;
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    position: relative;
    padding-left: 4rem;
}

.guide-step::before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
}

.guide-step h4 {
    margin: 0 0 1rem 0;
    color: #333;
    font-size: 1.1rem;
}

.guide-step p {
    margin: 0;
    color: #666;
}

/* Guide Images and Media */
.guide-image {
    text-align: center;
    margin: 2rem 0;
}

.guide-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.guide-image-caption {
    margin-top: 1rem;
    color: #666;
    font-style: italic;
    font-size: 0.95rem;
}

/* Guide Code Blocks */
.guide-code {
    background: #2d3748;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 10px;
    margin: 2rem 0;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
}

/* Guide Tables */
.guide-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.guide-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.guide-table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    color: #666;
}

.guide-table tr:last-child td {
    border-bottom: none;
}

.guide-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Guide Action Buttons */
.guide-actions {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
}

.guide-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.guide-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.guide-btn-secondary {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.guide-btn-secondary:hover {
    background: #667eea;
    color: white;
}

/* Responsive Guide Design */
@media (max-width: 768px) {
    .guide-body {
        padding-top: 80px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .guide-container {
        margin: 0 2px 1rem 2px;
        padding: 0.75rem;
        border-radius: 8px;
        max-width: none;
        width: calc(100% - 4px);
    }
    
    .guide-header h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .guide-intro {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .guide-navigation {
        margin: 1.5rem 0;
        gap: 0.5rem;
    }
    
    .guide-nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
        margin: 0.25rem;
    }
    
    .guide-nav ul {
        grid-template-columns: 1fr;
    }
    
    .guide-section h2 {
        font-size: 1.6rem;
        margin: 1.5rem 0 1rem 0;
    }
    
    .guide-section h3 {
        font-size: 1.3rem;
        margin: 1rem 0 0.5rem 0;
    }
    
    .guide-section p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .detailed-guides-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detailed-guide-card {
        padding: 1.5rem;
    }
    
    .guide-tip,
    .guide-warning {
        padding: 1rem;
        margin: 1rem 0;
    }
    
    .guide-tip h4,
    .guide-warning h4 {
        margin-left: 1.5rem;
        font-size: 1.1rem;
    }
    
    .guide-tip p,
    .guide-warning p {
        margin-left: 1.5rem;
        font-size: 0.9rem;
    }
    
    .guide-step {
        padding-left: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .guide-actions {
        padding: 1.5rem;
    }
    
    .guide-btn {
        display: block;
        margin: 10px 0;
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .guide-container {
        padding: 1.5rem;
    }
    
    .guide-header h1 {
        font-size: 2rem;
    }
    
    .guide-section h2 {
        font-size: 1.6rem;
    }
    
    .guide-table {
        font-size: 0.9rem;
    }
    
    .guide-table th,
    .guide-table td {
        padding: 0.8rem;
    }
}