/* TIM Router Guide - Stile Guida Interattiva */

/* Reset e Base */
.tim-guide-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 12px;
}

.tim-guide-container * {
    box-sizing: border-box;
}

/* Titoli */
.guide-title {
    font-size: 32px;
    font-weight: 700;
    color: #003D7A;
    text-align: center;
    margin: 0 0 10px 0;
}

.guide-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin: 0 0 40px 0;
}

/* ========== SELEZIONE ROUTER ========== */

.router-selection {
    background: white;
    padding: 40px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.router-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.router-card {
    background: white;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.router-card:hover,
.router-card.hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 61, 122, 0.2);
    border-color: #003D7A;
}

.router-image-container {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.router-image-container img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.router-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #003D7A;
    margin: 0;
}

/* ========== GUIDA STEPS ========== */

.guide-steps {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.guide-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.btn-back {
    background: #f5f5f5;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-back:hover {
    background: #e0e0e0;
    color: #333;
}

.guide-header .guide-title {
    margin: 0;
    text-align: left;
    flex: 1;
}

/* Progress Bar */
.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.progress-fill {
    background: linear-gradient(90deg, #003D7A 0%, #0066CC 100%);
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 10px;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

/* Step Content */
.step-content {
    max-width: 800px;
    margin: 0 auto;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #003D7A 0%, #0066CC 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.step-title {
    font-size: 26px;
    font-weight: 600;
    color: #003D7A;
    text-align: center;
    margin: 0 0 30px 0;
}

.step-image-container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto 30px;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-image-container img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.step-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 40px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #003D7A;
}

.step-description ul {
    margin: 10px 0;
    padding-left: 20px;
}

.step-description li {
    margin: 8px 0;
}

.step-description p {
    margin: 10px 0;
}

/* Navigation Buttons */
.step-navigation {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 40px;
}

.btn-nav {
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-prev {
    background: #f5f5f5;
    color: #666;
}

.btn-prev:hover:not(:disabled) {
    background: #e0e0e0;
    color: #333;
}

.btn-prev:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-next,
.btn-finish {
    background: linear-gradient(135deg, #003D7A 0%, #0066CC 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.btn-next:hover,
.btn-finish:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.4);
}

/* Completion Message */
.completion-message {
    text-align: center;
    padding: 60px 20px;
}

.completion-content {
    max-width: 500px;
    margin: 0 auto;
}

.completion-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.completion-message h3 {
    font-size: 32px;
    color: #003D7A;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.completion-message p {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
}

.btn-restart {
    background: linear-gradient(135deg, #003D7A 0%, #0066CC 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 61, 122, 0.3);
}

.btn-restart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 61, 122, 0.4);
}

/* Animation */
.step-animate {
    animation: fadeSlideIn 0.3s ease;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========== RESPONSIVE ========== */

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

    .router-selection,
    .guide-steps {
        padding: 20px 15px;
    }

    .guide-title {
        font-size: 24px;
    }

    .guide-subtitle {
        font-size: 14px;
    }

    .router-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .guide-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .guide-header .guide-title {
        text-align: center;
        font-size: 20px;
    }

    .step-title {
        font-size: 20px;
    }

    .step-description {
        font-size: 16px;
    }

    .step-navigation {
        flex-direction: column;
        gap: 10px;
    }

    .btn-nav {
        width: 100%;
        justify-content: center;
    }

    .completion-message h3 {
        font-size: 24px;
    }

    .completion-message p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .router-image-container {
        height: 150px;
    }

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

    .completion-icon {
        width: 80px;
        height: 80px;
        font-size: 48px;
    }
}
