/**
 * Stores App Styles
 * Import brand kit for centralized color system
 */
@import url('../../../webpages/css/brand-kit-custom.css');

/* Stores App Styles */

/* Card Styles */
.card {
    border: none;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    border-radius: 8px 8px 0 0;
}

/* Store Card */
.store-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.store-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.store-cover {
    height: 300px;
    object-fit: cover;
    width: 100%;
}

.store-logo {
    border-radius: 4px;
    border: 1px solid var(--border-light);
    padding: 2px;
}

.store-logo-img-sm,
.store-logo-placeholder-sm {
    height: 50px;
    width: 50px;
}

.store-logo-img-sm {
    object-fit: contain;
}

.store-logo-img-md,
.store-logo-placeholder-md {
    height: 60px;
    width: 60px;
}

.store-logo-img-md {
    object-fit: cover;
    border-radius: 4px;
}

.rating-star {
    background: transparent;
    border: none;
    color: var(--icon-star-muted);
    font-size: 1.25rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-star.active,
.rating-star.preview,
.rating-star:hover {
    color: var(--icon-star);
}

.rating-star:focus {
    outline: none;
    box-shadow: none;
}

.rating-star i {
    pointer-events: none;
}

/* Rating Styles */
.rating-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    display: inline-flex;
    gap: 2px;
}

.rating-stars i {
    font-size: 14px;
}

/* Review Styles */
.review-item {
    transition: background-color 0.3s ease;
}

.review-item:hover {
    background-color: #f8f9fa;
}

/* Forms */
.form-control:focus,
.form-select:focus {
    border-color: var(--brand-aqua);
    box-shadow: 0 0 0 0.2rem rgba(102, 199, 190, 0.25);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--brand-aqua);
    border-color: var(--brand-aqua);
}

.btn-primary:hover {
    background-color: var(--brand-navy);
    border-color: var(--brand-navy);
    transform: translateY(-2px);
}

/* Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-weight: 500;
}

/* Filter Section */
.filter-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.filter-section h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Search Bar */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-container input {
    padding-right: 2.5rem;
}

.search-container i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
}

/* Pagination */
.pagination {
    gap: 0.25rem;
}

.pagination .page-link {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: var(--brand-aqua);
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--brand-aqua);
    color: var(--brand-white);
}

.pagination .page-item.active .page-link {
    background-color: var(--brand-aqua);
    border-color: var(--brand-aqua);
}

/* Store Info Section */
.store-info {
    background: var(--gradient-aqua-navy);
    color: var(--brand-white);
    padding: 3rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.store-info h1 {
    color: var(--brand-white);
    font-weight: 700;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-links a {
    transition: all 0.3s ease;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--brand-white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-card h3 {
    color: var(--brand-aqua);
    font-weight: 700;
    margin: 0.5rem 0;
}

.stat-card p {
    color: #6c757d;
    margin: 0;
    font-size: 0.9rem;
}

/* Dashboard Widgets */
.dashboard-widget {
    background: var(--brand-white);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-widget h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f8f9fa;
}

/* Table Styles */
.table {
    font-size: 0.95rem;
}

.table thead {
    background-color: #f8f9fa;
}

.table th {
    border: none;
    font-weight: 600;
    color: #333;
}

.table td {
    border-color: #e9ecef;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .store-card {
        margin-bottom: 1rem;
    }

    .filter-section {
        margin-bottom: 1rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .store-info {
        padding: 2rem 1rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeIn 0.3s ease;
}

.store-card {
    animation: fadeIn 0.3s ease;
}

/* Utility Classes */
.transition {
    transition: all 0.3s ease;
}

.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================ */
/* Hero Section - Seller Benefits */
/* ============================================ */
.bg-gradient-primary {
    background: linear-gradient(135deg, #66c7be 0%, #0d3b66 100%);
}

#seller-hero-section {
    position: relative;
    overflow: hidden;
}

#seller-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120" preserveAspectRatio="none"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="%23ffffff"></path></svg>') bottom center no-repeat;
    background-size: 100% 120px;
    opacity: 0.1;
    pointer-events: none;
}

.hover-shadow {
    transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
}

/* ============================================ */
/* Compact Store Card */
/* ============================================ */
.store-card-compact {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: white;
}

.store-card-compact:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
    border-color: #66c7be;
}

.store-card-compact .min-width-0 {
    min-width: 0;
}

.store-card-compact .gap-2 {
    gap: 0.5rem;
}

/* Badge styles for compact card */
.store-card-compact .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}

.store-card-compact .badge.bg-warning {
    background-color: #ffc107 !important;
}

.store-card-compact .badge.bg-light {
    background-color: #f8f9fa !important;
    border: 1px solid #dee2e6;
}

.store-card-compact .badge.bg-success {
    background-color: #28a745 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .store-card-compact .d-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .store-card-compact .me-3 {
        margin-right: 0 !important;
        margin-bottom: 1rem;
    }
}

/* ============================================ */
/* Store Detail Page Styles */
/* ============================================ */

/* Store Header Section */
.store-header-container {
  background: var(--gradient-aqua-navy);
  padding: 0;
}

.store-header-image {
  position: relative;
  height: 400px;
  overflow: hidden;
}

.store-header-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-header-gradient {
  width: 100%;
  height: 100%;
  background: var(--gradient-aqua-navy);
}

.store-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Store Info Section */
.store-info-container {
  margin-top: -100px;
  position: relative;
  z-index: 10;
}

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

.store-logo-placeholder {
  height: 100px;
  width: 100px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .store-header-image {
    height: 300px;
  }

  .store-info-container {
    margin-top: -60px;
  }

  .store-logo-img,
  .store-logo-placeholder {
    height: 80px;
    width: 80px;
  }
}
