/* ==========================================================================
   INSTALLATION HUB STYLES
   Specific styles for the installation hub page
   ========================================================================== */

/* Hub Header */
.installation-hub-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--fiber-border);
}

/* Deployment Comparison Table */
.deployment-comparison {
    margin: 3rem 0;
}

.comparison-table {
    overflow-x: auto;
    margin: 2rem 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--fiber-radius);
    box-shadow: var(--fiber-shadow);
}

.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--fiber-border);
}

.comparison-table th {
    background: var(--fiber-bg-light);
    font-weight: 600;
    color: var(--fiber-primary);
}

/* Deployment Cards Grid */
.deployment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.deployment-card {
    background: white;
    border: 2px solid var(--fiber-border);
    border-radius: var(--fiber-radius);
    box-shadow: var(--fiber-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.deployment-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.deployment-card.cloud {
    border-color: #3b82f6;
}

.deployment-card.local {
    border-color: #10b981;
}

.deployment-card.enterprise {
    border-color: #8b5cf6;
}

/* Card Header */
.card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    text-align: center;
}

.deployment-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.card-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--fiber-primary);
}

.deployment-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--fiber-accent);
    color: white;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Card Content */
.card-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.card-description {
    color: var(--fiber-text-secondary);
    margin-bottom: 1.5rem;
}

/* Card Features */
.card-features {
    margin-bottom: 1.5rem;
}

.card-features h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.9rem;
    color: var(--fiber-primary);
}

.card-features ul {
    margin: 0;
    padding-left: 1.25rem;
}

.card-features li {
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

/* Card Specifications */
.card-specs {
    margin-bottom: 1.5rem;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.85rem;
}

.spec-label {
    color: var(--fiber-text-secondary);
}

.spec-value {
    font-weight: 600;
    color: var(--fiber-primary);
}

/* Card Actions */
.card-actions {
    text-align: center;
}

.card-note {
    margin: 0.75rem 0 0 0;
    font-size: 0.75rem;
    color: var(--fiber-text-secondary);
}

/* Support Section */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.support-card {
    background: var(--fiber-bg-light);
    padding: 1.5rem;
    border-radius: var(--fiber-radius);
    text-align: center;
}

.support-card h3 {
    margin: 0 0 1rem 0;
    color: var(--fiber-primary);
}

.support-link {
    color: var(--fiber-primary);
    text-decoration: none;
    font-weight: 600;
}

.support-link:hover {
    text-decoration: underline;
}

/* Next Steps Flow */
.next-steps-flow {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    align-items: flex-start;
}

.flow-step {
    flex: 1;
    text-align: center;
}

.step-number {
    background: var(--fiber-primary);
    color: white;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.125rem;
    margin: 0 auto 1rem auto;
}

.step-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--fiber-primary);
}

.step-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--fiber-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .deployment-options {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .next-steps-flow {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .comparison-table {
        font-size: 0.85rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }
}

/* ==========================================================================
   QUIZ FUNCTIONALITY STYLES
   ========================================================================== */

/* Quiz Container */
.installation-quiz {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--fiber-radius);
    margin: 3rem 0;
    text-align: center;
}

.quiz-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.quiz-header .quiz-subtitle {
    margin: 0 0 2rem 0;
    opacity: 0.9;
    font-size: 1.1rem;
}

/* Quiz Form */
.quiz-form {
    max-width: 600px;
    margin: 0 auto;
}

.quiz-question {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--fiber-radius);
    margin-bottom: 1.5rem;
    text-align: left;
    backdrop-filter: blur(10px);
}

.quiz-question:not(:first-child) {
    display: none;
}

.quiz-question h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.25rem;
}

.quiz-options {
    display: grid;
    gap: 1rem;
}

.quiz-option {
    position: relative;
}

.quiz-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.quiz-option label {
    display: block;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: var(--fiber-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.quiz-option label:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.quiz-option input[type="radio"]:checked + label {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateX(8px);
}

.quiz-option .option-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.quiz-option .option-description {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Quiz Results */
.quiz-results {
    display: none;
    background: white;
    color: var(--fiber-primary);
    padding: 3rem 2rem;
    border-radius: var(--fiber-radius);
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--fiber-shadow);
}

.quiz-results h2 {
    margin: 0 0 1rem 0;
    font-size: 2rem;
}

.result-reasons {
    max-width: 500px;
    margin: 2rem auto;
    text-align: left;
}

.result-reasons ul {
    list-style: none;
    padding: 0;
}

.result-reasons li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
}

.result-reasons li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--fiber-success);
    font-weight: bold;
}

.quiz-actions {
    margin-top: 2rem;
}

.btn-secondary {
    background: var(--fiber-bg-light);
    color: var(--fiber-primary);
    border: 2px solid var(--fiber-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--fiber-radius);
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--fiber-primary);
    color: white;
    border-color: var(--fiber-primary);
}

/* Quick Navigation */
.quick-nav {
    background: var(--fiber-bg-light);
    padding: 2rem;
    border-radius: var(--fiber-radius);
    margin: 2rem 0;
    text-align: center;
}

.quick-nav h3 {
    margin: 0 0 1.5rem 0;
    color: var(--fiber-primary);
}

.quick-nav-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-nav-btn {
    background: white;
    border: 2px solid var(--fiber-border);
    padding: 0.75rem 1.5rem;
    border-radius: var(--fiber-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--fiber-primary);
    font-weight: 500;
}

.quick-nav-btn:hover {
    border-color: var(--fiber-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.quick-nav-btn.cloud:hover {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.quick-nav-btn.local:hover {
    border-color: #10b981;
    background: #10b981;
    color: white;
}

.quick-nav-btn.enterprise:hover {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: white;
}

/* ==========================================================================
   RECOMMENDATION & HIGHLIGHT EFFECTS
   ========================================================================== */

/* Recommended Path Highlight */
.deployment-card.recommended {
    border-color: var(--fiber-success);
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.3);
    transform: translateY(-8px);
    position: relative;
}

.deployment-card.recommended::before {
    content: "🎯 RECOMMENDED FOR YOU";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fiber-success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.deployment-card.recommended .card-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(34, 197, 94, 0.05) 100%);
}

/* Selected Path (temporary highlight) */
.deployment-card.selected {
    animation: selectPulse 2s ease-in-out;
}

@keyframes selectPulse {
    0% { transform: scale(1); box-shadow: var(--fiber-shadow); }
    50% { transform: scale(1.02); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4); }
    100% { transform: scale(1); box-shadow: var(--fiber-shadow); }
}

/* Recommendation Pulse Animation */
.deployment-card.recommended {
    animation: recommendPulse 3s ease-in-out infinite;
}

@keyframes recommendPulse {
    0% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 0 40px rgba(34, 197, 94, 0.5); }
    100% { box-shadow: 0 0 30px rgba(34, 197, 94, 0.3); }
}

/* Enhanced Card Actions for Recommended */
.deployment-card.recommended .btn-primary {
    background: linear-gradient(135deg, var(--fiber-success) 0%, #059669 100%);
    border-color: var(--fiber-success);
    animation: buttonGlow 2s ease-in-out infinite;
}

@keyframes buttonGlow {
    0% { box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
    50% { box-shadow: 0 6px 25px rgba(34, 197, 94, 0.5); }
    100% { box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3); }
}

/* Enhanced Action Details */
.deployment-card .action-details {
    margin-top: 1rem;
}

.deployment-card .action-details .card-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--fiber-success);
    font-weight: 500;
}

/* Mobile Responsive Quiz */
@media (max-width: 768px) {
    .installation-quiz {
        padding: 2rem 1rem;
    }
    
    .quiz-question {
        padding: 1.5rem 1rem;
    }
    
    .quick-nav-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-nav-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .deployment-card.recommended::before {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
}