/* ===================================
   HostCMS Theme CSS
   =================================== */

:root {
    --hc-primary: #2563eb;
    --hc-secondary: #1e40af;
    --hc-accent: #f59e0b;
    --hc-font: 'Inter', sans-serif;
    --hc-heading: 'Poppins', sans-serif;
    --hc-success: #10b981;
    --hc-danger: #ef4444;
    --hc-warning: #f59e0b;
    --hc-info: #06b6d4;
    --hc-bg: #ffffff;
    --hc-surface: #f8fafc;
    --hc-text: #1f2937;
    --hc-text-muted: #6b7280;
    --hc-border: #e5e7eb;
    --hc-shadow: 0 1px 3px rgba(0,0,0,.1);
    --hc-shadow-lg: 0 10px 25px rgba(0,0,0,.1);
    --hc-radius: 0.75rem;
    --hc-radius-lg: 1rem;
    --hc-transition: 0.3s ease;
}

/* Dark Mode */
[data-bs-theme="dark"] {
    --hc-bg: #0f172a;
    --hc-surface: #1e293b;
    --hc-text: #f1f5f9;
    --hc-text-muted: #94a3b8;
    --hc-border: #334155;
}

* { box-sizing: border-box; }

body {
    font-family: var(--hc-font);
    color: var(--hc-text);
    background: var(--hc-bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--hc-heading);
    font-weight: 600;
    line-height: 1.3;
}

a { color: var(--hc-primary); transition: color var(--hc-transition); }
a:hover { color: var(--hc-secondary); }

/* ── Buttons ──────────────────────────────── */

.btn {
    font-family: var(--hc-font);
    font-weight: 500;
    border-radius: var(--hc-radius);
    transition: all var(--hc-transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
}
.btn-primary:hover {
    background: var(--hc-secondary);
    border-color: var(--hc-secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, .3);
}

.btn-outline-primary {
    color: var(--hc-primary);
    border-color: var(--hc-primary);
}
.btn-outline-primary:hover {
    background: var(--hc-primary);
    border-color: var(--hc-primary);
    transform: translateY(-1px);
}

/* ── Navbar ───────────────────────────────── */

.hc-navbar {
    background: var(--hc-bg);
    border-bottom: 1px solid var(--hc-border);
    box-shadow: var(--hc-shadow);
    padding: 0.5rem 0;
    transition: all var(--hc-transition);
}

.hc-navbar .nav-link {
    font-weight: 500;
    color: var(--hc-text);
    padding: 0.6rem 1rem !important;
    border-radius: var(--hc-radius);
    transition: all var(--hc-transition);
}

.hc-navbar .nav-link:hover,
.hc-navbar .nav-link.active {
    color: var(--hc-primary);
    background: rgba(37, 99, 235, 0.05);
}

.hc-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--hc-shadow-lg);
    border-radius: var(--hc-radius);
    padding: 0.5rem;
}

.hc-navbar .dropdown-item {
    border-radius: calc(var(--hc-radius) - 4px);
    padding: 0.5rem 1rem;
    transition: all var(--hc-transition);
}

.hc-navbar .dropdown-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--hc-primary);
}

/* ── Top Bar ──────────────────────────────── */

.hc-topbar {
    font-size: 0.85rem;
}

.hc-topbar a:hover { color: var(--hc-accent) !important; }

/* ── Hero Slider ──────────────────────────── */

.hc-hero-slider .carousel-item { position: relative; }

.hc-slide {
    min-height: 70vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.hc-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.min-vh-75 { min-height: 70vh; }

.hc-slide-title {
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hc-hero-slider .carousel-indicators {
    bottom: 2rem;
}

.hc-hero-slider .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
}

/* ── Domain Search ────────────────────────── */

.hc-domain-search {
    position: relative;
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-secondary)) !important;
}

.hc-search-form .input-group {
    border-radius: var(--hc-radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hc-search-form .form-control {
    padding: 0.8rem 1.2rem;
    font-size: 1.1rem;
}

/* ── Feature Cards ────────────────────────── */

.hc-feature-card {
    background: var(--hc-bg);
    transition: all var(--hc-transition);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
}

.hc-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hc-shadow-lg);
    border-color: var(--hc-primary) !important;
}

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

.hc-feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--hc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Statistics ───────────────────────────── */

.hc-statistics {
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-secondary)) !important;
}

.hc-counter {
    font-size: 2.5rem;
    font-weight: 700;
}

/* ── Cards ────────────────────────────────── */

.card {
    border-radius: var(--hc-radius-lg);
    transition: all var(--hc-transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hc-shadow-lg) !important;
}

/* ── Pricing Cards ────────────────────────── */

.hc-pricing-card {
    border: 2px solid var(--hc-border);
    border-radius: var(--hc-radius-lg);
    transition: all var(--hc-transition);
    position: relative;
    overflow: hidden;
}

.hc-pricing-card.featured {
    border-color: var(--hc-primary);
    transform: scale(1.05);
    box-shadow: var(--hc-shadow-lg);
}

.hc-pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--hc-primary), var(--hc-accent));
}

.hc-pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hc-shadow-lg);
}

.hc-pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

/* ── FAQ ──────────────────────────────────── */

.hc-faq .accordion-item {
    border-radius: var(--hc-radius) !important;
}

.hc-faq .accordion-button {
    font-weight: 600;
    color: var(--hc-text);
}

.hc-faq .accordion-button:not(.collapsed) {
    color: var(--hc-primary);
    background: rgba(37, 99, 235, 0.05);
}

.hc-faq .accordion-button:focus {
    box-shadow: none;
}

/* ── Blog Cards ───────────────────────────── */

.hc-blog .card .card-img-top {
    transition: transform 0.5s ease;
}

.hc-blog .card:hover .card-img-top {
    transform: scale(1.05);
}

/* ── Partners ─────────────────────────────── */

.hc-partner-logo {
    transition: opacity var(--hc-transition);
}

.hc-partner-logo:hover {
    opacity: 1 !important;
}

/* ── CTA ──────────────────────────────────── */

.hc-cta {
    background: linear-gradient(135deg, var(--hc-primary), var(--hc-secondary)) !important;
}

/* ── Footer ───────────────────────────────── */

.hc-footer {
    background: #0f172a !important;
}

.hc-footer a.text-muted:hover {
    color: var(--hc-primary) !important;
}

/* ── Hosting Page ─────────────────────────── */

.hc-hosting-hero {
    background: linear-gradient(135deg, var(--hc-primary) 0%, var(--hc-secondary) 100%);
    padding: 5rem 0;
    color: white;
}

.hc-comparison-table th {
    background: var(--hc-surface);
    font-weight: 600;
}

.hc-comparison-table td.text-center i.fa-check {
    color: var(--hc-success);
}

.hc-comparison-table td.text-center i.fa-times {
    color: var(--hc-danger);
}

/* ── Blog ─────────────────────────────────── */

.hc-blog-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.hc-blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--hc-radius);
}

.hc-blog-content h2,
.hc-blog-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* ── Responsive ───────────────────────────── */

@media (max-width: 768px) {
    .hc-slide {
        min-height: 50vh;
    }
    .min-vh-75 {
        min-height: 50vh;
    }
    .hc-slide-title {
        font-size: 1.75rem;
    }
    .hc-counter {
        font-size: 1.8rem;
    }
    .hc-pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 576px) {
    .hc-slide {
        min-height: 40vh;
    }
}

/* ── Animations ───────────────────────────── */

.hc-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.hc-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Partner logo hover ───────────────────── */

.hc-partner-logo img {
    filter: grayscale(100%);
    transition: filter var(--hc-transition);
    max-height: 40px;
    width: auto;
}

.hc-partner-logo:hover img {
    filter: grayscale(0%);
}

[data-bs-theme="dark"] .hc-partner-logo img {
    filter: grayscale(100%) brightness(2);
}

[data-bs-theme="dark"] .hc-partner-logo:hover img {
    filter: grayscale(0%) brightness(1);
}

/* ── Contact ──────────────────────────────── */

.hc-contact-info .hc-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hc-contact-info .hc-contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--hc-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--hc-primary);
}

/* ── Search ───────────────────────────────── */

.hc-search-results .hc-result-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--hc-border);
}

.hc-search-results .hc-result-item:last-child {
    border-bottom: none;
}

/* ── Page Content ─────────────────────────── */

.hc-page-content {
    font-size: 1.05rem;
    line-height: 1.8;
}

.hc-page-content h2,
.hc-page-content h3 {
    margin-top: 2rem;
}

.hc-page-content img {
    max-width: 100%;
    border-radius: var(--hc-radius);
}
