/* ========================================
   OFFERS & COMPETITIONS STYLES
   ======================================== */

/* Main Container */
.diggydigs-offers-container {
    font-family: 'Manrope', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Page Header */
.offers-page-header {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 0.6s ease;
}

.offers-page-header h1 {
    font-size: 52px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.offers-page-header p {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.65);
    font-weight: 500;
    max-width: 600px;
    margin: 0 auto;
}

/* Tab Navigation */
.offers-tab-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease;
}

.offers-tab-btn {
    padding: 14px 32px;
    background: #F5F5F5;
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}


.offers-tab-btn:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #D68910;
    transform: translateY(-2px);
}

.offers-tab-btn.active {
    background: rgba(255, 193, 7, 0.4);
    color: #D68910;
}

.offers-tab-btn.active::before {
    width: 100%;
}

/* Content Sections */
.offers-tab-content {
    display: none;
    animation: fadeInScale 0.5s ease forwards;
}

.offers-tab-content.active {
    display: block;
}

/* Cards Grid */
.offers-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 28px;
}

/* Event Card */
.offers-event-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
}

.offers-event-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.offers-event-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    position: relative;
}

.offers-event-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.offers-event-card:hover .offers-event-card-image img {
    transform: scale(1.08);
}

.offers-event-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    color: #D68910;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offers-badge-hot {
    background: linear-gradient(135deg, #FF4757 0%, #FF3838 100%);
    color: #fff;
}

.offers-badge-new {
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #fff;
}

.offers-badge-ending-soon {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.offers-event-card-content {
    padding: 24px;
}

.offers-event-card-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 10px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.offers-event-card-content p {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.65);
    line-height: 1.7;
    margin-bottom: 16px;
}

.offers-event-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid rgba(255, 193, 7, 0.1);
    flex-wrap: wrap;
}

.offers-event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

.offers-event-meta-item svg {
    width: 18px;
    height: 18px;
    color: #FFC107;
    flex-shrink: 0;
}

.offers-event-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
    margin-top: 16px;
    text-decoration: none;
}

.offers-event-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
}

.offers-event-cta svg {
    width: 16px;
    height: 16px;
}

/* Empty State */
.offers-empty-state {
    text-align: center;
    padding: 80px 20px;
    animation: fadeIn 0.6s ease;
    width: 100%;
    grid-column: 1 / -1;
}

.offers-empty-state-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.offers-empty-state h3 {
    font-size: 24px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 12px;
}

.offers-empty-state p {
    font-size: 16px;
    color: rgba(0, 0, 0, 0.5);
}

/* Hidden Cards - Pagination */
.hidden-card {
    display: none !important;
}

/* Filtered Cards - Tab Filtering */
.filtered-hidden {
    display: none !important;
}

/* Show More Button */
.offers-show-more-container {
    text-align: center;
    margin-top: 50px;
    animation: fadeInUp 0.6s ease;
}

.offers-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 40px;
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(255, 193, 7, 0.3);
    margin-bottom: 16px;
}

.offers-show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 193, 7, 0.4);
    background: linear-gradient(135deg, #FFD54F 0%, #FFC107 100%);
}

.offers-show-more-btn svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.offers-show-more-btn:hover svg {
    transform: translateY(3px);
}

.offers-showing-count {
    font-size: 15px;
    color: rgba(0, 0, 0, 0.6);
    font-weight: 600;
    margin: 0;
}

.offers-showing-count span {
    color: #D68910;
    font-weight: 700;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Event Details Modal */
.event-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.event-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.event-modal-content {
    position: relative;
    max-width: 900px;
    max-height: 90vh;
    margin: 5vh auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    z-index: 10001;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.event-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1A1A1A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.event-modal-close:hover {
    background: #FFC107;
    color: #fff;
    transform: rotate(90deg) scale(1.1);
}

.event-modal-inner {
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
}

.event-modal-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #FFC107 0%, #FFA000 100%);
}

.event-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-modal-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.event-modal-details {
    padding: 40px;
}

.event-modal-header {
    margin-bottom: 24px;
}

.event-modal-type {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.08) 100%);
    color: #D68910;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.event-modal-header h2 {
    font-family: 'Manrope', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: #1A1A1A;
    margin: 0;
    letter-spacing: -1px;
    line-height: 1.2;
}

.event-modal-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(255, 193, 7, 0.15);
}

.event-modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.event-modal-meta-item svg {
    width: 22px;
    height: 22px;
    color: #FFC107;
    flex-shrink: 0;
}

.event-modal-content-text {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.8);
}

.event-modal-content-text p {
    margin-bottom: 16px;
}

.event-modal-content-text p:last-child {
    margin-bottom: 0;
}

.event-modal-content-text h1,
.event-modal-content-text h2,
.event-modal-content-text h3,
.event-modal-content-text h4 {
    font-weight: 700;
    color: #1A1A1A;
    margin-top: 24px;
    margin-bottom: 12px;
}

.event-modal-content-text ul,
.event-modal-content-text ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.event-modal-content-text li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .offers-cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }

    .event-modal-content {
        max-width: 95%;
        margin: 2.5vh auto;
    }
}

@media (max-width: 768px) {
    .offers-page-header h1 {
        font-size: 38px;
    }

    .offers-page-header p {
        font-size: 16px;
    }

    .offers-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .offers-tab-btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .offers-event-meta {
        gap: 12px;
    }

    .event-modal-image {
        height: 280px;
    }

    .event-modal-details {
        padding: 30px 24px;
    }

    .event-modal-header h2 {
        font-size: 28px;
    }

    .event-modal-content {
        margin: 0;
        max-height: 100vh;
        border-radius: 0;
    }
}

@media (max-width: 480px) {
    .diggydigs-offers-container {
        padding: 20px 15px;
    }

    .offers-page-header h1 {
        font-size: 32px;
    }

    .offers-page-header p {
        font-size: 15px;
    }

    .offers-event-card-content h3 {
        font-size: 20px;
    }

    .offers-event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
