/* Frontend Styles */

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-gray: #f8f9fa;
}

/* Body */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Site Header */
.site-header .navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.site-header .navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Categories Bar */
.categories-bar {
    border-bottom: 1px solid #eee;
    font-size: 0.875rem;
}

.categories-bar a {
    transition: color 0.3s;
}

.categories-bar a:hover {
    color: var(--primary-color) !important;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 300px);
    padding: 30px 0;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

/* Section Titles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.section-title.center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Store Card */
.store-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    height: 100%;
}

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

.store-card img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    margin-bottom: 15px;
}

.store-card h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

.store-card .coupon-count {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Coupon Card */
.coupon-card {
    background: white;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s;
}

.coupon-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.coupon-card.featured {
    border-color: var(--warning-color);
    border-style: solid;
}

.coupon-card.verified {
    border-color: var(--success-color);
}

.coupon-card .offer-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 15px;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
}

.coupon-card .offer-detail {
    color: #6c757d;
    margin-bottom: 15px;
}

.coupon-card .coupon-code-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
}

.coupon-card .coupon-code {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: 2px;
}

.coupon-card .store-logo-sm {
    width: 50px;
    height: 50px;
    object-fit: contain;
    background: white;
    padding: 2px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.coupon-card .expiry-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.coupon-card .expiry-info.expired {
    color: var(--danger-color);
}

.coupon-card .expiry-info.soon {
    color: var(--warning-color);
}

/* Coupon Flags */
.coupon-flags {
    position: absolute;
    top: 10px;
    right: 10px;
}

.coupon-flags .badge {
    margin-left: 5px;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s;
    height: 100%;
}

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

.category-card .category-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.category-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-card h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

.category-card .store-count {
    color: #6c757d;
    font-size: 0.875rem;
}

.category-icon-large {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin: 0 auto 15px;
}

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

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.transition-all {
    transition: all 0.3s ease;
}

/* Blog Card */
.blog-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    height: 100%;
}

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

.blog-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card .blog-content {
    padding: 20px;
}

.blog-card .blog-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.blog-card .blog-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.blog-card .blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Site Footer */
.site-footer {
    margin-top: auto;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.site-footer a:hover {
    color: white;
}

.social-links a {
    font-size: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    font-weight: 600;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
}

.btn-coupon {
    background: linear-gradient(135deg, var(--success-color) 0%, #20c997 100%);
    border: none;
    font-weight: 600;
    color: white;
}

.btn-coupon:hover {
    background: linear-gradient(135deg, #20c997 0%, var(--success-color) 100%);
    color: white;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-box .form-control {
    border-radius: 50px 0 0 50px;
    border: 2px solid #dee2e6;
    border-right: none;
}

.search-box .btn {
    border-radius: 0 50px 50px 0;
    padding: 0 30px;
}

/* Breadcrumb */
.breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

/* Badge Styles */
.badge-featured {
    background: var(--warning-color);
}

.badge-verified {
    background: var(--success-color);
}

.badge-popular {
    background: var(--danger-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .store-card img {
        max-height: 40px;
    }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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