/**
 * StarReg Domains - Public Styles
 */

/* Domain Search */
.startreg-domain-search {
    max-width: 600px;
    margin: 2rem auto;
}

.startreg-search-form {
    margin-bottom: 2rem;
}

.startreg-search-input-wrapper {
    display: flex;
    gap: 0.5rem;
}

.startreg-domain-input {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    transition: border-color 0.2s;
}

.startreg-domain-input:focus {
    outline: none;
    border-color: #3b82f6;
}

.startreg-search-button {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    background: #3b82f6;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.startreg-search-button:hover {
    background: #2563eb;
}

/* Results */
.startreg-search-results {
    margin-bottom: 2rem;
}

.startreg-result-card {
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-align: center;
}

.startreg-result-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    border-radius: 2rem;
    margin-bottom: 1rem;
}

.startreg-available {
    color: #059669;
    background: #d1fae5;
}

.startreg-not-available {
    color: #dc2626;
    background: #fee2e2;
}

.startreg-result-domain {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.startreg-result-price {
    font-size: 1.25rem;
    color: #3b82f6;
    margin-bottom: 1.5rem;
}

.startreg-add-to-cart {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    color: white;
    background: #10b981;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.startreg-add-to-cart:hover {
    background: #059669;
}

.startreg-add-to-cart:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

/* Suggestions */
.startreg-suggestions-header {
    font-size: 1.125rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
}

.startreg-suggestions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.startreg-suggestion-card {
    padding: 1.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.startreg-suggestion-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.startreg-suggestion-domain {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.startreg-suggestion-price {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.startreg-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* Loading */
.startreg-loading {
    padding: 2rem;
    text-align: center;
    color: #64748b;
}

.startreg-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    color: #dc2626;
    background: #fee2e2;
    border-radius: 0.5rem;
}

/* Zone Page */
.startreg-zone-page {
    max-width: 800px;
    margin: 0 auto;
}

.startreg-zone-header {
    text-align: center;
    margin-bottom: 2rem;
}

.startreg-zone-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.startreg-zone-price {
    font-size: 1.5rem;
}

.startreg-price-value {
    font-weight: 700;
    color: #3b82f6;
}

.startreg-zone-info {
    text-align: center;
    margin-bottom: 3rem;
    color: #64748b;
}

.startreg-zone-features {
    margin-top: 3rem;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 0.75rem;
}

.startreg-zone-features h3 {
    margin-bottom: 1rem;
}

.startreg-zone-features ul {
    list-style: none;
    padding: 0;
}

.startreg-zone-features li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.startreg-zone-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

/* Popular Domains */
.startreg-domains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.startreg-domain-card {
    padding: 1.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-align: center;
    transition: border-color 0.2s, transform 0.2s;
}

.startreg-domain-card:hover {
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.startreg-domain-tld {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.startreg-domain-price {
    font-size: 1.125rem;
    font-weight: 600;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.startreg-domain-category {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
}

.startreg-domain-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    color: #3b82f6;
    text-decoration: none;
    border: 1px solid #3b82f6;
    border-radius: 0.25rem;
    transition: background 0.2s, color 0.2s;
}

.startreg-domain-link:hover {
    background: #3b82f6;
    color: white;
}

/* Categories */
.startreg-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.startreg-category-card {
    padding: 2rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.startreg-category-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.startreg-category-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.startreg-category-count {
    color: #64748b;
    margin-bottom: 1rem;
}

.startreg-category-link {
    display: inline-block;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.startreg-category-link:hover {
    text-decoration: underline;
}

/* ==========================================
   Product Cards & Grid
   ========================================== */

/* Button base */
.startreg-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #3b82f6;
    background: transparent;
    border: 2px solid #3b82f6;
    border-radius: 0.5rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
}

.startreg-button:hover {
    background: #3b82f6;
    color: white;
}

.startreg-button-primary {
    background: #3b82f6;
    color: white;
}

.startreg-button-primary:hover {
    background: #2563eb;
    border-color: #2563eb;
}

/* Product Grid */
.startreg-products-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.startreg-columns-1 { grid-template-columns: 1fr; }
.startreg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.startreg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.startreg-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Product Card */
.startreg-product-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.startreg-product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
    transform: translateY(-2px);
}

.startreg-product-image {
    overflow: hidden;
}

.startreg-product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.startreg-product-info {
    padding: 1.5rem;
}

.startreg-product-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem;
}

.startreg-product-title a {
    color: inherit;
    text-decoration: none;
}

.startreg-product-title a:hover {
    color: #3b82f6;
}

.startreg-product-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.startreg-product-pricing {
    margin-bottom: 1rem;
}

.startreg-price-current {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3b82f6;
}

.startreg-price-old {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.startreg-price-term {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 400;
}

.startreg-product-action {
    margin-top: 1rem;
}

.startreg-no-products {
    text-align: center;
    color: #64748b;
    padding: 3rem;
}

/* ==========================================
   Pricing Table
   ========================================== */

.startreg-pricing-table {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.startreg-pricing-column {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.startreg-pricing-column:hover {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.15);
}

.startreg-pricing-highlighted {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.2);
    transform: scale(1.03);
}

.startreg-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #3b82f6;
    color: white;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.startreg-pricing-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.startreg-pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem;
}

.startreg-pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.startreg-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
}

.startreg-price-currency {
    font-size: 1.25rem;
    font-weight: 600;
    color: #64748b;
}

.startreg-pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
}

.startreg-pricing-features li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    position: relative;
    color: #475569;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
}

.startreg-pricing-features li:last-child {
    border-bottom: none;
}

.startreg-pricing-features li:before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
}

.startreg-pricing-footer {
    padding-top: 1rem;
}

.startreg-pricing-footer .startreg-button {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .startreg-search-input-wrapper {
        flex-direction: column;
    }

    .startreg-zone-title {
        font-size: 2rem;
    }

    .startreg-domains-grid,
    .startreg-categories-grid {
        grid-template-columns: 1fr;
    }

    .startreg-products-grid,
    .startreg-pricing-table {
        grid-template-columns: 1fr !important;
    }

    .startreg-pricing-highlighted {
        transform: none;
    }
}

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