/**
 * SAVERCODE.CO.UK - CONSOLIDATED ENHANCEMENTS
 * Version: 2.5
 */

/* 1. GLOBAL VARIABLES & THEME */
:root {
    --primary-purple: #667eea;
    --secondary-purple: #764ba2;
    --gradient-main: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --light-gray: #f8f9fa;
    --border-color: #f0f0f0;
}

body, .icodes-content, .sc-card, .coupon-grid-item, .coupon-list-item, .coupon-card-wrapper, .copybtn {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* 2. HERO & HEADER SECTIONS */
.hero-section-new, 
.store-header-enhanced {
    background: var(--gradient-main);
    padding: 60px 20px;
    text-align: center;
    color: white;
    border-radius: 0 0 20px 20px;
    margin-bottom: 40px;
}

.hero-section-new h1, 
.store-header-enhanced h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

/* 3. SEARCH BAR ENHANCEMENTS */
.search-bar-enhanced {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    margin: -30px auto 40px;
    max-width: 800px;
}

.search-bar-enhanced .form-control {
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1rem;
}

.search-bar-enhanced .btn-search {
    background: var(--gradient-main);
    border: none;
    border-radius: 12px;
    padding: 16px 30px;
    color: white;
    font-weight: 600;
}

/* 4. POST CONTENT: INDIVIDUAL OFFER CARDS (The "Winged Airer" Fix) */
.sc-card {
    display: flex;
    gap: 20px;
    align-items: center; /* Vertically centers content next to image */
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
}

.sc-card img {
    width: 200px !important; /* Fixed width to prevent "too large" images */
    height: auto;
    border-radius: 8px;
    flex-shrink: 0;
}

.sc-card-content {
    flex: 1;
}

.sc-price-tag {
    display: block;
    font-size: 1.1rem;
    margin-top: 10px;
}

.sc-price-now {
    color: var(--primary-purple);
    font-weight: 800;
    margin-left: 10px;
}

.sc-price-was {
    text-decoration: line-through;
    color: #888;
}

/* 5. GRID LAYOUTS & SIDEBAR */
.coupons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.coupon-grid-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.coupon-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.sidebar-widget {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-purple);
}

/* 6. NAVIGATION & TABS */
.icodes-nav-tabs {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.icodes-nav-tabs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.icodes-nav-tabs ul li a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--light-gray);
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.icodes-nav-tabs ul li a:hover {
    background: var(--gradient-main);
    color: white;
}

/* 7. RESPONSIVE MOBILE OVERRIDES */
@media (max-width: 768px) {
    .hero-section-new h1 {
        font-size: 1.8rem;
    }
    
    .sc-card {
        flex-direction: column; /* Stacks image on top of text for mobile */
        text-align: center;
    }
    
    .sc-card img {
        width: 100% !important;
        max-width: 280px;
    }
    
    .coupons-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .store-header-enhanced {
        padding: 30px 20px;
    }
}