/* Página Individual de Loja - Modelo Cuponomia */

/* Variáveis CSS */
:root {
    --primary-color: #3498db;
    --secondary-color: #e74c3c;
    --accent-color: #f39c12;
    --success-color: #27ae60;
    --warning-color: #f1c40f;
    --text-dark: #2c3e50;
    --text-light: #7f8c8d;
    --bg-light: #f8f9fa;
    --border-color: #e9ecef;
    --shadow: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

/* Container principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header da Loja */
.store-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2980b9 100%);
    color: white;
    padding: 40px 0;
    margin-bottom: 40px;
}

.store-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.store-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.store-logo {
    width: 120px;
    height: 80px;
    background: white;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-shadow: var(--shadow);
}

.store-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.store-info {
    flex: 1;
}

.store-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.store-description {
    font-size: 1.1rem;
    margin: 0 0 15px 0;
    opacity: 0.9;
    line-height: 1.5;
}

.store-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.store-region,
.store-clicks {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.store-actions {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.visit-store-btn,
.share-store-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.visit-store-btn {
    background: var(--secondary-color);
    color: white;
}

.visit-store-btn:hover {
    background: #c0392b;
    color: white;
    text-decoration: none;
}

.share-store-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

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

/* Layout do Conteúdo */
.store-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

/* Sidebar da Loja */
.store-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.sidebar-widget h3 {
    color: var(--text-dark);
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

/* Detalhes da Loja */
.store-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.detail-value {
    color: var(--text-dark);
    font-weight: 600;
}

.status-ativo {
    color: var(--success-color);
}

.status-inativo {
    color: var(--secondary-color);
}

/* Estatísticas */
.store-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.stat-item:hover {
    background: var(--primary-color);
    color: white;
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-item:hover .stat-number {
    color: white;
}

.stat-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.stat-item:hover .stat-label {
    color: rgba(255,255,255,0.8);
}

/* Lojas Relacionadas */
.related-stores {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-store {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.related-store:hover {
    box-shadow: var(--shadow);
}

.related-store img {
    width: 40px;
    height: 25px;
    object-fit: contain;
    border-radius: 4px;
}

.related-store-info h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: var(--text-dark);
}

.related-store-info a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
}

.related-store-info a:hover {
    text-decoration: underline;
}

/* Conteúdo Principal */
.store-main {
    min-height: 500px;
}

/* Seções */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
}

.section-header h2 {
    color: var(--text-dark);
    margin: 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.section-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Filtros e Ordenação */
.filter-options {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 14px;
}

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

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
}

/* Grid de Cupons */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Cards de Cupom */
.coupon-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.coupon-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.coupon-card.expired {
    opacity: 0.6;
    background: #f8f9fa;
}

.coupon-header {
    padding: 20px 20px 15px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.coupon-info h3 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.coupon-info p {
    margin: 0;
    color: var(--text-light);
    line-height: 1.4;
    font-size: 14px;
}

.discount-badge {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #c0392b 100%);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.coupon-content {
    padding: 20px;
}

.coupon-details {
    margin-bottom: 20px;
}

.coupon-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--bg-light);
    border-radius: 4px;
}

.date-label {
    color: var(--text-light);
    font-size: 12px;
    font-weight: 500;
}

.date-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 12px;
}

.coupon-code-section {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.code-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.coupon-code {
    background: var(--secondary-color);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    flex: 1;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition);
}

.copy-btn:hover {
    background: var(--border-color);
    color: var(--text-dark);
}

.coupon-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.use-coupon-btn {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.use-coupon-btn:hover {
    background: #2980b9;
    color: white;
    text-decoration: none;
}

.expired-badge {
    background: var(--text-light);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

/* Grid de Promoções */
.promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.promotion-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.promotion-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.promotion-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: var(--text-dark);
    font-weight: 600;
}

.promotion-content p {
    margin: 0 0 15px 0;
    color: var(--text-light);
    line-height: 1.4;
    font-size: 14px;
}

.promotion-dates {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 4px;
}

.promotion-link {
    display: inline-block;
    background: var(--accent-color);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    transition: var(--transition);
    font-size: 14px;
}

.promotion-link:hover {
    background: #e67e22;
    color: white;
    text-decoration: none;
}

/* Estados vazios */
.no-coupons,
.no-promotions {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
    grid-column: 1 / -1;
}

.no-coupons p,
.no-promotions p {
    margin: 10px 0;
    font-size: 16px;
}

/* Responsividade */
@media (max-width: 1024px) {
    .store-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .store-sidebar {
        position: static;
        order: 2;
    }
    
    .store-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .store-header-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .store-logo-section {
        flex-direction: column;
        gap: 15px;
    }
    
    .store-title {
        font-size: 2rem;
    }
    
    .store-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .visit-store-btn,
    .share-store-btn {
        width: 100%;
        justify-content: center;
    }
    
    .store-meta {
        justify-content: center;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .filter-options {
        justify-content: center;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .promotions-grid {
        grid-template-columns: 1fr;
    }
    
    .store-stats {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .store-header {
        padding: 30px 0;
    }
    
    .store-logo {
        width: 100px;
        height: 60px;
    }
    
    .coupon-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-code-section {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
} 