/*
 * Store Modern Clean Template
 * Clean white cards with colored accent borders — Stripe/Linear style
 * All colours driven by CSS custom properties populated from admin settings
 */

/* ─── CSS Custom Properties (defaults, overridden inline by Blade) ─── */
:root {
    --store-clean-heading-gradient-start: #2563eb;
    --store-clean-heading-gradient-end: #7c3aed;
    --store-clean-card-bg: #ffffff;
    --store-clean-card-shadow: #d1d5db;
    --store-clean-accent-1: #2563eb;
    --store-clean-accent-2: #7c3aed;
    --store-clean-accent-3: #059669;
    --store-clean-accent-4: #ea580c;
    --store-clean-btn-color: #2563eb;
    --store-clean-popular-border: #7c3aed;
}

/* ─── Hero Section ─── */
.store-clean-hero {
    padding: 4rem 1rem 2.5rem;
    text-align: center;
}

.store-clean-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--store-clean-heading-gradient-start), var(--store-clean-heading-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
}

.store-clean-hero p {
    font-size: 1.1rem;
    color: #6b7280;
    max-width: 550px;
    margin: 0 auto;
}

/* ─── Card Grid ─── */
.store-clean-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

/* ─── Clean Card ─── */
.store-clean-card {
    background: var(--store-clean-card-bg);
    border-radius: 12px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #e5e7eb;
    /* Top accent border via pseudo-element for per-card colours */
    border-top: 3px solid var(--card-accent);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.store-clean-card:hover {
    border-color: var(--card-accent);
    box-shadow: 0 8px 25px color-mix(in srgb, var(--card-accent) 15%, transparent);
    transform: translateY(-4px);
}

/* ─── Card Icon Badge ─── */
.store-clean-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--card-accent) 12%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--card-accent);
    margin-bottom: 1rem;
    flex-shrink: 0;
}

/* ─── Card Content ─── */
.store-clean-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.store-clean-card .card-desc {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* ─── Pricing ─── */
.store-clean-price {
    color: var(--card-accent);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.store-clean-price .amount {
    font-size: 1.4rem;
    font-weight: 800;
}

/* ─── CTA Buttons ─── */
.store-clean-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
    color: var(--store-clean-btn-color);
    background: transparent;
    border: 1.5px solid var(--store-clean-btn-color);
}

.store-clean-btn:hover {
    background: var(--store-clean-btn-color);
    color: #ffffff;
}

.store-clean-btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
    text-align: center;
    color: #ffffff;
    background: var(--store-clean-btn-color);
    border: 1.5px solid var(--store-clean-btn-color);
}

.store-clean-btn-filled:hover {
    filter: brightness(1.1);
    box-shadow: 0 4px 15px color-mix(in srgb, var(--store-clean-btn-color) 30%, transparent);
    color: #ffffff;
}

/* ─── Pricing Table (Show Page) ─── */
.store-clean-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    align-items: stretch;
}

.store-clean-pricing-card {
    background: var(--store-clean-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.store-clean-pricing-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* Popular plan — gradient border effect */
.store-clean-pricing-card.is-popular {
    border: 2px solid var(--store-clean-popular-border);
    box-shadow: 0 8px 30px color-mix(in srgb, var(--store-clean-popular-border) 15%, transparent);
    transform: scale(1.03);
    z-index: 2;
}

.store-clean-pricing-card.is-popular:hover {
    transform: scale(1.05) translateY(-4px);
}

/* Popular badge */
.store-clean-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--store-clean-popular-border);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    white-space: nowrap;
    z-index: 3;
}

.store-clean-pricing-card .plan-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111827;
    text-align: center;
    margin-bottom: 1rem;
    padding-top: 0.5rem;
}

.store-clean-pricing-card .plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
}

.store-clean-pricing-card .plan-price .amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
}

.store-clean-pricing-card .plan-price .cycle {
    font-size: 1rem;
    color: #9ca3af;
    font-weight: 400;
}

.store-clean-pricing-card .plan-price .starting-at {
    display: block;
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.25rem;
}

/* Product description HTML */
.store-clean-pricing-card .product-description {
    color: #6b7280;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.store-clean-pricing-card .product-description ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.store-clean-pricing-card .product-description li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.store-clean-pricing-card .product-description li:last-child {
    border-bottom: none;
}

.store-clean-pricing-card .product-description li::before {
    content: '✓';
    color: var(--store-clean-accent-1);
    font-weight: 700;
    flex-shrink: 0;
}

/* Addons disclaimer */
.store-clean-addons-note {
    text-align: center;
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.75rem;
}

/* ─── Domain Search ─── */
.store-clean-search-box {
    background: var(--store-clean-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.store-clean-search-box h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--store-clean-heading-gradient-start), var(--store-clean-heading-gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.store-clean-search-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 550px;
    margin: 0 auto;
}

.store-clean-search-input-group input {
    flex: 1;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: #111827;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.store-clean-search-input-group input::placeholder {
    color: #9ca3af;
}

.store-clean-search-input-group input:focus {
    border-color: var(--store-clean-btn-color);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-clean-btn-color) 15%, transparent);
}

/* Domain result rows */
.store-clean-domain-row {
    background: var(--store-clean-card-bg);
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    transition: all 0.2s ease;
}

.store-clean-domain-row:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.store-clean-domain-row.is-primary {
    border-left: 3px solid var(--store-clean-accent-3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.store-clean-domain-row .domain-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: #111827;
}

.store-clean-badge-available {
    background: #d1fae5;
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-clean-badge-taken {
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.store-clean-domain-price {
    color: #111827;
    font-weight: 700;
    font-size: 1rem;
}

/* Small CTA for domain rows */
.store-clean-btn-sm {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    color: #ffffff;
    background: var(--store-clean-btn-color);
}

.store-clean-btn-sm:hover {
    filter: brightness(1.1);
    box-shadow: 0 2px 8px color-mix(in srgb, var(--store-clean-btn-color) 30%, transparent);
}

.store-clean-btn-sm-outline {
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1.5px solid #d1d5db;
    color: #6b7280;
}

.store-clean-btn-sm-outline:hover {
    border-color: var(--store-clean-btn-color);
    color: var(--store-clean-btn-color);
}

/* Section headings for domain results */
.store-clean-section-heading {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
}

.store-clean-section-heading:first-child {
    margin-top: 0;
}

/* Show More button */
.store-clean-show-more {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    background: transparent;
    border: none;
    color: var(--store-clean-btn-color);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.store-clean-show-more:hover {
    opacity: 0.8;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .store-clean-hero h1 {
        font-size: 1.75rem;
    }

    .store-clean-grid {
        grid-template-columns: 1fr;
    }

    .store-clean-pricing-grid {
        grid-template-columns: 1fr;
    }

    .store-clean-pricing-card.is-popular {
        transform: scale(1);
    }

    .store-clean-pricing-card.is-popular:hover {
        transform: translateY(-4px);
    }

    .store-clean-search-input-group {
        flex-direction: column;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .store-clean-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .store-clean-pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
