/* Category Page Styles */
:root {
    --primary-color: #00A99D; /* Teal */
    --accent-color: #FFD700; /* Yellow */
    --text-color: #333333;
    --light-grey: #F8F9FA;
    --border-color: #E5E5E5;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --success-color: #28a745;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

/* Category Hero Section */
.category-hero {
    background: linear-gradient(135deg, #c7cece 0%, #16655f 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='3'/%3E%3Ccircle cx='13' cy='13' r='3'/%3E%3C/g%3E%3C/svg%3E");
    z-index: 1;
}

.category-hero > * {
    position: relative;
    z-index: 2;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.category-hero p {
    max-width: 700px;
    margin: 0 auto 1.5rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.category-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1.5rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Page Layout */
.category-page-layout {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Featured Coupons Section */
.featured-coupons {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
}

.offer-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detailed-offer-card {
    display: grid;
    grid-template-columns: 120px 1fr 150px;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px var(--shadow-color);
    overflow: hidden;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

.detailed-offer-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.offer-card--featured {
    border: 2px solid var(--accent-color);
}

.offer-card-type {
    background-color: var(--light-grey);
    padding: 1rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    border-right: 1px solid var(--border-color);
}

.offer-strength {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.offer-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    text-transform: uppercase;
}

.offer-tag-code {
    background-color: var(--primary-color);
    color: white;
}

.offer-tag-deal {
    background-color: var(--accent-color);
    color: var(--text-color);
}

.offer-tag-top {
    background-color: #FF6B6B;
    color: white;
}

.offer-card-content {
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.offer-store-logo {
    margin-bottom: 0.5rem;
}

.offer-store-logo img {
    max-height: 40px;
    max-width: 80px;
}

.offer-title {
    font-size: 1rem;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}

.offer-exclusive-tag {
    display: inline-block;
    font-size: 0.7rem;
    background-color: #FF6B6B;
    color: white;
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: middle;
}

.offer-meta {
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 0.5rem;
}

.offer-additional-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.works-with-sale {
    color: var(--success-color);
}

.verified-badge {
    display: flex;
    align-items: center;
    color: var(--success-color);
}

.verified-badge::before {
    content: '✓';
    margin-right: 0.25rem;
}

.offer-card-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border-left: 1px solid var(--border-color);
}

.cta-button-main {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed);
    text-align: center;
    width: 100%;
}

.cta-button-main:hover {
    background-color: #008B8B;
}

.cta-button-deal-secondary {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: background-color var(--transition-speed);
    text-align: center;
    width: 100%;
}

.cta-button-deal-secondary:hover {
    background-color: #E6C200;
}

.offer-card-footer {
    grid-column: 1 / -1;
    border-top: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #777;
}

.offer-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terms-text {
    cursor: pointer;
    text-decoration: underline;
}

.added-by {
    font-style: italic;
}

/* Popular Stores Section */
.popular-stores {
    margin-bottom: 3rem;
}

/* Category FAQ Section */
.category-faq {
    margin-bottom: 3rem;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.faq-question {
    padding: 1rem 1.5rem;
    background-color: var(--light-grey);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
}

.faq-toggle {
    font-size: 1rem;
    color: var(--primary-color);
    transition: transform var(--transition-speed);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-speed), padding var(--transition-speed);
}

.faq-item.active .faq-answer {
    padding: 1rem 1.5rem;
    max-height: 500px;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

/* Category Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-widget {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: 0 2px 8px var(--shadow-color);
}

.sidebar-widget h3 {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.sidebar-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--primary-color);
}

.sidebar-search {
    display: flex;
    gap: 0.5rem;
}

.sidebar-search input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
}

.sidebar-search button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0 1rem;
    cursor: pointer;
    transition: background-color var(--transition-speed);
}

.sidebar-search button:hover {
    background-color: #008B8B;
}

.related-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-categories li {
    margin-bottom: 0.75rem;
}

.related-categories li:last-child {
    margin-bottom: 0;
}

.related-categories a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: color var(--transition-speed);
}

.related-categories a:hover {
    color: var(--primary-color);
}

.related-categories i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.popular-posts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-post {
    display: flex;
    gap: 0.75rem;
}

.popular-post img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.popular-post h4 {
    font-size: 0.95rem;
    margin: 0 0 0.25rem;
    line-height: 1.4;
}

.popular-post h4 a {
    color: var(--text-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.popular-post h4 a:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: #777;
}

.newsletter-widget {
    background-color: var(--light-grey);
}

.newsletter-widget p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.sidebar-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.sidebar-newsletter input {
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.sidebar-newsletter button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    padding: 0.8rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color var(--transition-speed);
}

.sidebar-newsletter button:hover {
    background-color: #008B8B;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .category-page-layout {
        grid-template-columns: 1fr;
    }
    
    .category-hero h1 {
        font-size: 2rem;
    }
    
    .detailed-offer-card {
        grid-template-columns: 100px 1fr 120px;
    }
}

@media (max-width: 768px) {
    .category-stats {
        gap: 1.5rem;
    }
    
    .detailed-offer-card {
        grid-template-columns: 1fr;
    }
    
    .offer-card-type {
        padding: 1rem;
        flex-direction: row;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .offer-card-action {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 576px) {
    .category-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}
