/* ===================================================================
   OFFERS PAGE - PREMIUM SOCIAL MEDIA STYLE FEED
   =================================================================== */

/* Offers Hero Section */
.offers-hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--color-primary) 0%, #1e40af 100%);
    position: relative;
    overflow: hidden;
}

.offers-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.offers-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.offers-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.offers-hero-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.offers-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    font-size: 0.9375rem;
}

.offers-hero-badge i {
    color: #fbbf24;
}

/* Feed Section */
.offers-feed-section {
    padding: 60px 0;
    background: var(--surface-0);
}

.container-feed {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.feed-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 32px;
}

/* Feed Content */
.feed-content {
    min-height: 600px;
}

.offers-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Loading State */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    background: var(--surface-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
}

/* Offer Card - Social Media Style */
.offer-card {
    background: var(--surface-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--color-primary);
}

/* Offer Header */
.offer-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
}

.offer-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.offer-meta {
    flex: 1;
}

.offer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.offer-timestamp {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.offer-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Offer Media */
.offer-media {
    position: relative;
    width: 100%;
    background: var(--surface-1);
}

.offer-media img {
    width: 100%;
    height: auto;
    display: block;
}

.offer-media video {
    width: 100%;
    height: auto;
    display: block;
}

/* Offer Body */
.offer-body {
    padding: 20px;
}

.offer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.offer-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--surface-1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-primary);
}

.highlight-item i {
    color: var(--color-primary);
}

/* Offer Footer */
.offer-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.offer-actions {
    display: flex;
    gap: 12px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.action-btn i {
    font-size: 1rem;
}

.apply-btn {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

/* Sidebar */
.feed-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-card {
    background: var(--surface-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: var(--color-primary);
}

/* Stats Card */
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.stat-label {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

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

/* Categories Card */
.category-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--surface-1);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    text-align: left;
}

.category-btn:last-child {
    margin-bottom: 0;
}

.category-btn:hover {
    background: var(--surface-2);
    border-color: var(--color-primary);
    color: var(--text-primary);
}

.category-btn.active {
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    border-color: var(--color-primary);
    color: white;
}

.category-btn i {
    font-size: 1rem;
}

/* CTA Card */
.cta-card {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary), #1e40af);
    color: white;
    border: none;
}

.cta-card i {
    font-size: 2.5rem;
    margin-bottom: 16px;
    opacity: 0.9;
}

.cta-card h3 {
    color: white;
    margin-bottom: 10px;
}

.cta-card p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    color: var(--color-primary);
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Dark Mode */
body[data-theme="dark"] .offers-hero {
    background: linear-gradient(135deg, #1e40af 0%, #1e293b 100%);
}

body[data-theme="dark"] .offer-card,
body[data-theme="dark"] .sidebar-card {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.2);
}

/* Responsive */
@media (max-width: 968px) {
    .feed-grid {
        grid-template-columns: 1fr;
    }
    
    .feed-sidebar {
        position: static;
        order: -1;
    }
    
    .offers-hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .offers-hero {
        padding: 100px 0 40px;
    }
    
    .offers-hero-title {
        font-size: 1.75rem;
    }
    
    .offers-feed-section {
        padding: 40px 0;
    }
    
    .offer-header {
        padding: 16px;
    }
    
    .offer-body {
        padding: 16px;
    }
    
    .offer-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .offer-actions {
        justify-content: center;
    }
    
    .apply-btn {
        width: 100%;
    }
}
