/* ==========================================================================
   WebmasterThailand Theme — Component Styles
   ========================================================================== */

/* 1. Header & Navigation Components */
.wmt-top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.header-scrolled {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    background: rgba(10, 22, 40, 0.95) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.primary-menu-list a {
    color: var(--color-text-secondary);
    font-weight: 500;
    transition: var(--transition);
}
.primary-menu-list a:hover,
.primary-menu-list .current-menu-item > a {
    color: var(--color-secondary);
}

/* Mobile Hamburger & slide menu */
.hamburger-box {
    display: inline-block;
    vertical-align: middle;
}
.mobile-menu-active #mobile-navigation {
    transform: translateX(0);
}
.mobile-menu-active #mobile-nav-overlay {
    opacity: 1;
    pointer-events: auto;
}

/* 2. Hero & Stat Counter Components */
.section-hero {
    position: relative;
}
.bg-grid-pattern {
    background-size: 40px 40px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.hero-content h1 {
    letter-spacing: -0.5px;
}
.stats-counter-grid .stat-item h3 {
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

/* 3. Service Cards Grid */
.service-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--card-hover-border);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.1);
}
.service-card .service-icon {
    display: inline-block;
    transition: var(--transition);
}
.service-card:hover .service-icon {
    transform: scale(1.1);
}

/* 4. Pricing Tables */
.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}
.pricing-card:hover {
    transform: translateY(-6px);
    border-color: var(--card-hover-border);
    box-shadow: 0 15px 35px rgba(0, 212, 255, 0.08);
}
.pricing-card.recommended {
    border: 2px solid var(--color-secondary);
    background: rgba(10, 22, 40, 0.6);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.15);
}
.pricing-card.recommended:hover {
    border-color: var(--color-secondary);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.2);
}
.badge-recommended {
    box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

/* Pricing Toggle Switch */
.wmt-switch input:checked + .wmt-slider {
    background-color: var(--color-secondary);
}
.wmt-switch input:checked + .wmt-slider:before {
    transform: translateX(26px);
}
.wmt-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .3s;
}
.wmt-slider {
    background-color: rgba(255,255,255,0.1);
}

/* 5. Domain Search Results Box */
#wmt-domain-results {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.wmt-spinner {
    border-color: rgba(255, 255, 255, 0.1);
    border-top-color: var(--color-secondary);
}
.domain-result-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
.domain-result-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

/* 6. Testimonials Carousel */
.wmt-testimonials-carousel {
    max-width: 800px;
    margin: 0 auto;
}
.testimonial-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.testimonial-slide {
    width: 100%;
    flex-shrink: 0;
}
.slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: var(--transition);
}
.slider-dots button.active {
    background: var(--color-secondary);
    width: 24px;
    border-radius: 5px;
}

/* 7. FAQ Accordion Item */
.faq-item {
    transition: var(--transition);
}
.faq-item.active {
    border-color: rgba(0, 212, 255, 0.2);
    background: rgba(255,255,255,0.06);
}
.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* 8. Comparison Table */
.wmt-comparison-table-wrapper {
    background: var(--card-bg);
}
.wmt-comparison-table th, 
.wmt-comparison-table td {
    padding: 16px 20px;
}
.wmt-comparison-table tr {
    transition: var(--transition);
}
.wmt-comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* 9. Interactive Order Form Multi-step */
.wmt-order-step {
    transition: opacity 0.3s ease;
}
.wmt-radio-card {
    transition: var(--transition);
}
.wmt-radio-card input[type="radio"]:checked + span + span + span,
.wmt-radio-card input[type="radio"]:checked ~ span {
    color: var(--color-secondary);
}
.wmt-radio-card input[type="radio"]:checked + span {
    transform: scale(1.1);
}
.wmt-radio-card input[type="radio"]:checked ~ .wmt-radio-card-title {
    color: white;
}
.wmt-radio-card:hover {
    border-color: rgba(0, 212, 255, 0.2);
}
.wmt-radio-card.selected {
    border-color: var(--color-secondary);
    background: rgba(0, 212, 255, 0.03) !important;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* 10. Keyframes & Animation helper classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.slide-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Utility layout helpers */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CSS resets and form helpers */
select option {
    background: #0A1628;
    color: white;
}

/* Badge styles for services CPTs */
.wmt-badge-service {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: 700;
    color: #0A1628;
    background: var(--color-secondary);
    text-transform: uppercase;
}
.wmt-badge-domain { background-color: #6C63FF; color: white; }
.wmt-badge-email { background-color: #FF5252; color: white; }
.wmt-badge-ssl { background-color: #00E676; color: #0A1628; }
.wmt-badge-vps { background-color: #FFB300; color: #0A1628; }

/* Breadcrumbs */
.breadcrumbs {
    margin-top: 10px;
}
.breadcrumb-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.breadcrumb-list a {
    color: var(--color-text-secondary);
    transition: var(--transition);
}
.breadcrumb-list a:hover {
    color: var(--color-secondary);
}

/* Custom indicators */
.step-indicator.active {
    color: var(--color-secondary) !important;
}

/* Custom slider */
.wmt-slider.round {
    border-radius: 34px;
}

/* responsive grid overrides */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

@media (max-width: 992px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
    .grid-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-counter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
