/* ===== assets/css/style.css ===== */
/* Hosting Finder Pro - Frontend Styles */

:root {
    --primary: #6c5ce7;
    --primary-dark: #5a4bd1;
    --primary-light: #a29bfe;
    --success: #00b894;
    --bg: #f8faff;
    --text-dark: #1e1e2f;
    --text-muted: #6b7280;
    --border-color: #e2e8f0;
    --card-bg: rgba(255, 255, 255, 0.85);
}

.hosting-finder-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* ===== HERO ===== */
.hf-hero {
    padding: 40px 20px;
    text-align: center;
}

.hf-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hf-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 20px;
}

/* ===== GLASS CARD ===== */
.hf-glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 2rem;
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
    transition: all 0.3s ease;
}

.hf-glass-card:hover {
    box-shadow: 0 30px 50px -18px rgba(108, 92, 231, 0.15);
}

/* ===== BUTTONS ===== */
.hf-btn-primary {
    background: var(--primary);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.7rem 2rem;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.25);
}

.hf-btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(108, 92, 231, 0.35);
    color: #fff;
}

.hf-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hf-btn-outline {
    border: 1.5px solid var(--primary);
    color: var(--primary);
    border-radius: 60px;
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    background: transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    text-decoration: none;
}

.hf-btn-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

.hf-btn-success {
    background: var(--success);
    border: none;
    color: #fff;
    font-weight: 600;
    padding: 0.8rem 2.5rem;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 184, 148, 0.25);
}

.hf-btn-success:hover {
    background: #00a381;
    transform: scale(1.02);
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 184, 148, 0.35);
}

.hf-btn-theme-toggle {
    background: rgba(108, 92, 231, 0.08);
    border: 1px solid rgba(108, 92, 231, 0.15);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--primary);
    font-size: 1rem;
}

.hf-btn-theme-toggle:hover {
    background: rgba(108, 92, 231, 0.15);
    transform: rotate(30deg);
}

/* ===== PROGRESS BAR ===== */
.hf-progress-bar {
    height: 6px;
    background: #e9ecf5;
    border-radius: 20px;
    overflow: hidden;
    margin: 10px 0;
}

.hf-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 20px;
    transition: width 0.5s ease;
    width: 0%;
}

/* ===== STEP DOTS ===== */
.hf-step-dots {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.hf-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 30px;
    background: #d0d8e8;
    transition: all 0.3s ease;
}

.hf-step-dot.active {
    background: var(--primary);
    width: 32px;
}

.hf-step-dot.completed {
    background: var(--success);
}

/* ===== WIZARD STEPS ===== */
.hf-wizard-step {
    display: none;
    animation: hfFadeIn 0.3s ease;
}

.hf-wizard-step.active {
    display: block;
}

@keyframes hfFadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.hf-wizard-step h4 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-dark);
}

/* ===== OPTION GRID ===== */
.hf-option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.8rem;
}

.hf-option-btn {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 60px;
    padding: 0.6rem 1rem;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    color: var(--text-dark);
    user-select: none;
}

.hf-option-btn:hover {
    border-color: var(--primary);
    background: #f5f3ff;
    transform: translateY(-2px);
}

.hf-option-btn.selected {
    border-color: var(--primary);
    background: #edeaff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
    color: var(--primary);
}

/* ===== RESULTS ===== */
.hf-result-card {
    background: rgba(108, 92, 231, 0.06);
    border-radius: 1.5rem;
    padding: 2rem;
    border: 1px solid rgba(108, 92, 231, 0.08);
}

.hf-result-logo {
    font-size: 4rem;
    line-height: 1;
}

.hf-result-name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0;
    color: var(--text-dark);
}

.hf-result-rating {
    color: #fdcb6e;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.hf-result-score {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hf-result-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* ===== FEATURE BADGES ===== */
.hf-feature-badge {
    background: #f0f3ff;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dark);
    border: 1px solid rgba(108, 92, 231, 0.08);
}

.hf-feature-badge i {
    color: var(--success);
}

/* ===== COMPARISON TABLE ===== */
.hf-comparison-table {
    width: 100%;
    background: transparent;
    border-collapse: collapse;
}

.hf-comparison-table th {
    background: #f0f3ff;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
}

.hf-comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eef2f7;
    vertical-align: middle;
    color: var(--text-dark);
}

.hf-comparison-table tr:hover {
    background: rgba(108, 92, 231, 0.04);
}

/* ===== TOAST ===== */
.hf-toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.hf-toast {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    min-width: 280px;
    max-width: 450px;
    animation: hfSlideUp 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 0.95rem;
    color: var(--text-dark);
}

@keyframes hfSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ===== CONFETTI ===== */
.hf-confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ===== DARK MODE ===== */
.hf-dark-mode {
    background: #12121c !important;
    color: #eef2ff !important;
}

.hf-dark-mode .hf-title {
    color: #eef2ff;
}

.hf-dark-mode .hf-subtitle {
    color: #9ca3af;
}

.hf-dark-mode .hf-glass-card {
    background: rgba(30, 30, 50, 0.85);
    border-color: rgba(255, 255, 255, 0.06);
}

.hf-dark-mode .hf-option-btn {
    background: #26263a;
    border-color: #3b3b5a;
    color: #d0d0e8;
}

.hf-dark-mode .hf-option-btn:hover {
    background: #32324a;
    border-color: var(--primary);
}

.hf-dark-mode .hf-option-btn.selected {
    background: #3b2f6e;
    border-color: var(--primary);
    color: var(--primary-light);
}

.hf-dark-mode .hf-wizard-step h4 {
    color: #eef2ff;
}

.hf-dark-mode .hf-result-card {
    background: rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.15);
}

.hf-dark-mode .hf-result-name {
    color: #eef2ff;
}

.hf-dark-mode .hf-result-price {
    color: #eef2ff;
}

.hf-dark-mode .hf-feature-badge {
    background: #26263a;
    color: #d0d0e8;
    border-color: rgba(255, 255, 255, 0.05);
}

.hf-dark-mode .hf-comparison-table th {
    background: #26263a;
    color: #eef2ff;
    border-bottom-color: #3b3b5a;
}

.hf-dark-mode .hf-comparison-table td {
    color: #d0d0e8;
    border-bottom-color: #2d2d45;
}

.hf-dark-mode .hf-comparison-table tr:hover {
    background: rgba(108, 92, 231, 0.08);
}

.hf-dark-mode .hf-toast {
    background: rgba(30, 30, 50, 0.95);
    border-color: rgba(255, 255, 255, 0.06);
    color: #eef2ff;
}

.hf-dark-mode .hf-progress-bar {
    background: #2d2d45;
}

.hf-dark-mode .hf-step-dot {
    background: #3b3b5a;
}

.hf-dark-mode .hf-step-dot.active {
    background: var(--primary);
}

.hf-dark-mode .hf-step-dot.completed {
    background: var(--success);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hf-title {
        font-size: 1.8rem;
    }
    
    .hf-subtitle {
        font-size: 1rem;
    }
    
    .hf-glass-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
    }
    
    .hf-option-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .hf-option-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .hf-result-logo {
        font-size: 3rem;
    }
    
    .hf-result-name {
        font-size: 1.3rem;
    }
    
    .hf-result-score {
        font-size: 2.5rem;
    }
    
    .hf-result-price {
        font-size: 1.5rem;
    }
    
    .hf-result-card {
        padding: 1.5rem;
    }
    
    .hf-result-card .row > div {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hf-title {
        font-size: 1.5rem;
    }
    
    .hf-hero {
        padding: 20px 10px;
    }
    
    .hf-glass-card {
        padding: 1rem;
        border-radius: 1.2rem;
    }
    
    .hf-option-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }
    
    .hf-option-btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
        border-radius: 40px;
    }
    
    .hf-result-logo {
        font-size: 2.5rem;
    }
    
    .hf-result-name {
        font-size: 1.1rem;
    }
    
    .hf-result-score {
        font-size: 2rem;
    }
    
    .hf-step-dots {
        gap: 0.3rem;
    }
    
    .hf-step-dot {
        width: 8px;
        height: 8px;
    }
    
    .hf-step-dot.active {
        width: 24px;
    }
}