/* WebGuy IT Tier Chooser - Custom Styles
 *
 * The chooser now uses the site-wide header/footer (see templates/layout.tpl),
 * so every rule here is scoped to the chooser's content wrapper (.chooser-app)
 * and can't restyle the new navbar or footer (which also use .btn,
 * .site-footer, .list-unstyled, ...). :where() adds zero specificity, so each
 * rule keeps the weight it had before scoping.
 *
 * Removed when switching to the shared header/footer: body/main/html rules,
 * the old #chooser-navbar and .site-footer styles, and .navbar-brand effects.
 */

:root {
    --webguy-green: #28a745;
    --webguy-dark-green: #218838;
    --webguy-light-green: #d4edda;
}

/* Chooser content area (was the body background) */
.chooser-app {
    background-color: #f8f9fa;
    padding-bottom: 3rem;
    overflow: visible;
}


/* Card Enhancements */
:where(.chooser-app) .card {
    border-radius: 10px;
    transition: transform 0.2s, box-shadow 0.2s;
}

:where(.chooser-app) .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

/* Button Styles */
:where(.chooser-app) .btn {
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

:where(.chooser-app) .btn-success {
    background-color: var(--webguy-green);
    border-color: var(--webguy-green);
}

:where(.chooser-app) .btn-success:hover {
    background-color: var(--webguy-dark-green);
    border-color: var(--webguy-dark-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

:where(.chooser-app) .btn-outline-success {
    color: var(--webguy-green);
    border-color: var(--webguy-green);
}

:where(.chooser-app) .btn-outline-success:hover {
    background-color: var(--webguy-green);
    border-color: var(--webguy-green);
}

/* Question Slide Transitions */
:where(.chooser-app) .question-slide {
    animation: fadeIn 0.5s;
}

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

:where(.chooser-app) .question-slide.d-none {
    display: none !important;
}

/* Answer Button Hover Effects */
:where(.chooser-app) .answer-btn {
    transition: all 0.3s;
    border-width: 2px;
}

:where(.chooser-app) .answer-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Progress Bar */
:where(.chooser-app) .progress {
    border-radius: 10px;
}

:where(.chooser-app) .progress-bar {
    transition: width 0.5s ease;
}

/* Tier Cards on Results Page */
:where(.chooser-app) .border-success {
    border-width: 3px !important;
}

:where(.chooser-app) .border-primary {
    border-width: 2px !important;
}

/* Icon Colors */
:where(.chooser-app) .text-success {
    color: var(--webguy-green) !important;
}

/* Alert Enhancements */
:where(.chooser-app) .alert {
    border-radius: 8px;
    border-left-width: 4px;
}

:where(.chooser-app) .alert-success {
    background-color: var(--webguy-light-green);
    border-left-color: var(--webguy-green);
}

:where(.chooser-app) .alert-info {
    border-left-color: #17a2b8;
}

/* Form Validation */
:where(.chooser-app) .form-control:focus {
    border-color: var(--webguy-green);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

:where(.chooser-app) .is-valid {
    border-color: var(--webguy-green) !important;
}

:where(.chooser-app) .is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    :where(.chooser-app) .display-4 {
        font-size: 2rem;
    }
    
    :where(.chooser-app) .display-5 {
        font-size: 1.75rem;
    }
    
    :where(.chooser-app) .display-6 {
        font-size: 1.5rem;
    }
    
    :where(.chooser-app) .card-body {
        padding: 1.5rem !important;
    }
    
    :where(.chooser-app) h1, :where(.chooser-app) h2, :where(.chooser-app) h3 {
        font-size: calc(1.3rem + .6vw);
    }
}

/* Loading Spinner */
:where(.chooser-app) .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

/* Hover Effects for Tier Selection */
:where(.chooser-app) .choose-tier-btn {
    position: relative;
    overflow: hidden;
}

:where(.chooser-app) .choose-tier-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

:where(.chooser-app) .choose-tier-btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Feature List Styling */
:where(.chooser-app) .list-unstyled li {
    padding: 8px 0;
}

/* Card Header Enhancement */
:where(.chooser-app) .card-header {
    border-bottom: none;
    border-radius: 10px 10px 0 0 !important;
    padding: 1.25rem;
}

/* Shadow Utilities */
:where(.chooser-app) .shadow-sm {
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.075) !important;
}

