/* === Shops & Referral Codes Page === */

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.page-header h1 {
    color: white;
}

.page-header p {
    color: rgba(255,255,255,0.9);
}

/* === Region Filter === */
.region-filter {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    padding: 1.5rem 0;
}

.region-btn {
    background: white;
    border: 2px solid var(--gray-light);
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.region-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.region-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* === Stores Grid === */
.stores-grid {
    padding: 1rem 0 3rem;
}

.stores-grid .grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* === Store Card === */
.store-card {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
}

.store-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.store-card.featured {
    border: 2px solid var(--primary);
    position: relative;
}

.store-card.featured::after {
    content: "⭐ Seal of Approval";
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-bottom-left-radius: var(--radius);
}

/* === Store Logo === */
.store-logo-container {
    height: 120px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-light);
}

.store-logo {
    max-height: 85px;
    max-width: 280px;
    width: auto;
    object-fit: contain;
}

.store-name-fallback {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    display: none;
    align-items: center;
    justify-content: center;
}

/* === Store Header === */
.store-header {
    padding: 1.25rem 1.5rem 0.75rem;
}

.store-header h3 {
    font-size: 1.3rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.store-tagline {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === Store Body === */
.store-body {
    padding: 0.75rem 1.5rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.store-meta {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.meta-icon {
    width: 24px;
    height: 24px;
    background: var(--gray-light);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.meta-label {
    color: var(--gray);
    font-weight: 500;
}

.meta-value {
    color: var(--dark);
    font-weight: 600;
    margin-left: auto;
}

.meta-value.good {
    color: var(--success);
}

.meta-value.fast {
    color: var(--primary);
}

/* === Visit Button === */
.btn-visit {
    background: var(--primary);
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 1rem;
    transition: all 0.2s;
}

.btn-visit:hover {
    background: var(--primary-dark);
}

/* === Referral Section === */
.referral-section {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin-top: auto;
}

.referral-section.has-code {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.referral-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray);
    margin-bottom: 0.5rem;
}

.code-box {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.code-display {
    flex: 1;
    background: white;
    border: 2px dashed var(--primary);
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    letter-spacing: 1px;
}

.code-benefit {
    font-size: 0.8rem;
    color: var(--gray);
    margin-top: 0.4rem;
}

.btn-copy {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary);
    color: white;
}

.btn-copy.copied {
    background: var(--success);
    border-color: var(--success);
    color: white;
}

/* === No Code State === */
.no-code {
    text-align: center;
    padding: 0.25rem;
}

.no-code-text {
    color: var(--gray);
    font-size: 0.85rem;
}

.promo-note {
    font-size: 0.8rem;
    color: var(--warning);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* === Store Footer === */
.store-footer {
    padding: 0.75rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--gray-light);
}

.best-for {
    font-size: 0.8rem;
}

.best-for-label {
    color: var(--gray);
}

.best-for-value {
    color: var(--dark);
    font-weight: 600;
}

/* === Disclosure Section === */
.disclosure {
    padding: 2rem 0 4rem;
}

.disclosure-box {
    background: #f8fafc;
    border: 1px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.disclosure-box h3 {
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.disclosure-box p {
    color: var(--gray);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* === No Results === */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--gray);
    font-size: 1.1rem;
    grid-column: 1 / -1;
}

/* === Responsive === */
@media (max-width: 1200px) {
    .stores-grid .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stores-grid .grid {
        grid-template-columns: 1fr;
    }
    
    .region-filter {
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding: 1rem;
        margin: 0 -1rem;
    }
    
    .region-btn {
        flex-shrink: 0;
    }
    
    .code-box {
        flex-direction: column;
    }
    
    .code-display {
        width: 100%;
        font-size: 1rem;
    }
    
    .btn-copy {
        width: 100%;
    }
    
    .store-logo-container {
        height: 100px;
    }
    
    .store-logo {
        max-height: 70px;
        max-width: 220px;
    }
}
