/**
 * Bar-360 Guide Styles
 * Styles pour le guide de démarrage et la documentation
 */

:root {
    --bar360-primary: #2c3e50;
    --bar360-secondary: #3498db;
    --bar360-success: #27ae60;
    --bar360-warning: #f39c12;
    --bar360-danger: #e74c3c;
    --bar360-light: #ecf0f1;
    --bar360-dark: #1a252f;
}

/* Container */
.guide-container {
    min-height: 100vh;
    padding: 2rem 0;
}

/* Header */
.guide-header {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.guide-logo {
    max-width: 200px;
    margin-bottom: 1rem;
}

.guide-reading-time {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, var(--bar360-secondary), var(--bar360-primary));
    color: white;
    border-radius: 25px;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    margin-top: 0.5rem;
}

.guide-reading-time i {
    font-size: 1rem;
}

.guide-reading-time strong {
    font-weight: 600;
}

/* Layout */
.guide-content {
    display: flex;
    gap: 2rem;
}

/* Sidebar */
.guide-sidebar {
    flex: 0 0 280px;
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.guide-sidebar h4 {
    color: var(--bar360-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Navigation */
.guide-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.guide-nav-item {
    margin-bottom: 0.5rem;
}

.guide-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #555;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.guide-nav-link:hover {
    background: var(--bar360-light);
    color: var(--bar360-secondary);
    transform: translateX(5px);
}

.guide-nav-link.active {
    background: linear-gradient(135deg, var(--bar360-secondary), var(--bar360-primary));
    color: white;
}

.guide-nav-icon {
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Main Content */
.guide-main {
    flex: 1;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Sections */
.guide-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--bar360-light);
}

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

.guide-section h2 {
    color: var(--bar360-primary);
    border-radius: 15px;
    margin-bottom: 1.5rem;
    background: white;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.guide-section h2 i {
    margin-right: 1rem;
    color: var(--bar360-secondary);
}

/* Steps */
.guide-step {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bar360-light);
    border-radius: 10px;
}

.guide-step h3 {
    color: var(--bar360-primary);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--bar360-secondary), var(--bar360-primary));
    color: white;
    border-radius: 50%;
    margin-right: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.guide-step p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.guide-step ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
}

.guide-step ul li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

/* Badges */
.guide-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.badge-important {
    background: var(--bar360-danger);
    color: white;
}

.badge-tip {
    background: var(--bar360-success);
    color: white;
}

.badge-info {
    background: var(--bar360-secondary);
    color: white;
}

/* Alerts */
.alert-guide {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin: 1rem 0;
    border-left: 4px solid;
}

.alert-guide-warning {
    background: #fff3cd;
    border-color: var(--bar360-warning);
    color: #856404;
}

.alert-guide-info {
    background: #d1ecf1;
    border-color: var(--bar360-secondary);
    color: #0c5460;
}

.alert-guide-success {
    background: #d4edda;
    border-color: var(--bar360-success);
    color: #155724;
}

/* Code Examples */
.code-example {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    overflow-x: auto;
    margin: 1rem 0;
}

/* Responsive */
@media (max-width: 992px) {
    .guide-container {
        padding: 1rem 0;
    }

    .guide-content {
        flex-direction: column;
    }

    .guide-sidebar {
        position: relative;
        top: 0;
        flex: 1;
        margin-bottom: 1.5rem;
    }

    .guide-section h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .guide-container {
        padding: 0.5rem;
    }

    .guide-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 10px;
    }

    .guide-logo {
        max-width: 120px;
    }

    .guide-header h1 {
        font-size: 1.5rem;
    }

    .guide-header p {
        font-size: 0.9rem;
    }

    .guide-reading-time {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }

    .guide-sidebar {
        padding: 1rem;
    }

    .guide-sidebar h4 {
        font-size: 1.1rem;
    }

    .guide-nav-link {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }

    .guide-nav-icon {
        font-size: 1rem;
        margin-right: 0.5rem;
    }

    .guide-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }

    .guide-section h2 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .guide-section h2 i {
        font-size: 1.2rem;
    }

    .guide-step {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .guide-step h3 {
        font-size: 1.1rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
        margin-right: 0.8rem;
    }

    .guide-step p,
    .guide-step li {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .guide-badge {
        display: block;
        margin-left: 0;
        margin-top: 0.5rem;
        width: fit-content;
    }

    .alert-guide {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .guide-container {
        padding: 0;
    }

    .guide-header {
        border-radius: 0;
        padding: 1rem;
    }

    .guide-sidebar {
        border-radius: 0;
    }

    .guide-main {
        border-radius: 0;
    }

    .guide-section h2 {
        font-size: 1.2rem;
        flex-wrap: wrap;
    }

    .guide-step {
        padding: 0.8rem;
    }

    .guide-step h3 {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .step-number {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .guide-step ul {
        padding-left: 1rem;
    }
}
