/* Daily Deals Page - Clean Design with NO custom card styling */

.daily-deals-page {
    padding: 2rem 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

/* Professional Daily Deals Banner - Matching Theme Design Language */
.daily-deals-banner {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #0066cc 0%, #003d7a 50%, #00b8e6 100%);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.banner-background-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="hexagon" width="20" height="20" patternUnits="userSpaceOnUse"><polygon points="10,1 18,6 18,14 10,19 2,14 2,6" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23hexagon)"/></svg>');
    animation: patternFloat 20s ease-in-out infinite;
    opacity: 0.6;
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-title {
    color: white;
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.banner-image {
    margin: 20px 0;
}

.deals-logo {
    max-height: 120px;
    max-width: 300px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: transform 0.4s ease;
}

.deals-logo:hover {
    transform: scale(1.05);
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
    font-weight: 400;
    margin: 0 0 30px;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* Banner Statistics Section */
.banner-stats {
    margin-top: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
}

.stat-item.highlight {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.3);
}

.stat-item.urgent {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.stat-number {
    color: white;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Deals Summary */
.deals-summary {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 25px;
    margin-top: 20px;
}

.deals-list {
    display: flex;
    flex-direction: row;
    gap: 15px;
    margin: 0 auto;
}

.deal-summary-item {
    backdrop-filter: blur(50px);
    background: rgba(255, 255, 255, 0.05);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.deal-summary-item > .deal-name,
.deal-summary-item > .deal-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.deal-name {
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.deal-details {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.deal-details span {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.discount {
    background: rgba(255, 193, 7, 0.9);
    color: #000;
}

.product-count {
    background: rgba(40, 167, 69, 0.8);
    color: white;
}

.schedule {
    background: rgba(23, 162, 184, 0.8);
    color: white;
}

.categories-section {
    margin-top: 8px;
}

.categories-header {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left;
}

.categories-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    border-top: 2px solid #e7b513;
    text-align: start;
    padding: 7px 0;
}

.category-pill {
    background: rgba(156, 39, 176, 0.8);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* No deals message */
.no-deals-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.no-deals-message p {
    margin-top: 20px;
    font-size: 16px;
}

/* Subtle Animation */
@keyframes patternFloat {
    0%, 100% { transform: translate(0px, 0px); }
    50% { transform: translateY(-50px, 50px); }
}

/* Deal Section Styling - MakhiMarket Tech Theme Design Language */
.deal-section {
    margin-bottom: 3rem;
}

.deal-header {
    background: linear-gradient(189deg, var(--brand-primary), var(--brand-secondary));
    color: var(--text-light);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-brand);
}

.deal-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 100%;
    background: var(--gradient-shimmer);
    transform: skewX(-15deg);
    opacity: 0.1;
}

.deal-meta {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.deal-title-section-header{
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
}

.deal-status-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-badge, .discount-badge, .type-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.status-badge.active {
    background: var(--overlay-white-medium);
    color: var(--text-light);
    box-shadow: 0 4px 15px var(--shadow-light);
}

.discount-badge {
    background: var(--overlay-white-dark);
    color: var(--text-light);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow-light);
}

.type-badge {
    color: var(--text-light);
    opacity: 0.9;
    text-transform: uppercase;
}

.deal-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin: 0px;
    text-shadow: 0 2px 4px var(--shadow-dark);
    position: relative;
    z-index: 2;
}

.categories-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.category-pill {
    backdrop-filter: blur(10px);
    background: var(--overlay-white-light);
    color: var(--text-light);
    padding: 0.3rem 0.75rem;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border: 1px solid var(--overlay-white-medium);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.category-pill:hover {
    opacity: 1;
    background: var(--overlay-white-medium);
    transform: translateY(-1px);
}

.deal-info {
    position: relative;
    z-index: 2;
}

.deal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.info-item {
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-2px);
    background: var(--overlay-white-medium);
    box-shadow: 0 8px 25px var(--shadow-light);
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.info-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    text-shadow: 0 1px 2px var(--shadow-dark);
}

/* Grid for product cards - matching homepage layout */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* No deals state */
.no-deals {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

.no-deals-icon {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 1.5rem;
}

.no-deals h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.no-deals p {
    color: #7f8c8d;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .daily-deals-page {
        padding: 1rem 0;
    }

    .daily-deals-banner {
        padding: 2rem 1rem;
        margin-bottom: 3rem;
    }

    .banner-title {
        font-size: 36px;
    }

    .banner-subtitle {
        font-size: 16px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-item {
        padding: 15px 10px;
    }

    .stat-number {
        font-size: 24px;
    }

    .deal-summary-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .deal-details {
        gap: 8px;
    }

    .deal-header {
        padding: 2rem 1.5rem;
        margin-bottom: 1.5rem;
        border-radius: 12px;
    }

    .deal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .deal-title {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .deal-status-badges {
        gap: 0.5rem;
    }

    .status-badge, .discount-badge, .type-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.75rem;
        border-radius: 16px;
    }

    .deal-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .info-item {
        padding: 0.8rem 1rem;
        border-radius: 10px;
    }

    .info-label {
        font-size: 0.75rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .deals-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .daily-deals-banner {
        padding: 1.5rem 0.8rem;
    }

    .banner-title {
        font-size: 28px;
    }

    .banner-subtitle {
        font-size: 14px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .stat-item {
        padding: 12px 8px;
    }

    .stat-number {
        font-size: 20px;
    }

    .stat-label {
        font-size: 10px;
    }

    .deal-summary-item {
        padding: 12px 15px;
    }

    .deal-name {
        font-size: 14px;
    }

    .deal-details span {
        font-size: 10px;
        padding: 3px 6px;
    }

    .deal-header {
        padding: 1.5rem 1rem;
        margin-bottom: 1rem;
        border-radius: 12px;
    }

    .deal-header::before {
        width: 100px;
    }

    .deal-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .deal-title {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .deal-status-badges {
        gap: 0.4rem;
        flex-wrap: wrap;
    }

    .status-badge, .discount-badge, .type-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
        border-radius: 14px;
    }

    .deal-info-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .info-item {
        flex-direction: column;
        text-align: center;
        gap: 0.4rem;
        padding: 0.8rem;
        border-radius: 8px;
    }

    .info-label {
        font-size: 0.7rem;
        opacity: 0.8;
    }

    .info-value {
        font-size: 0.85rem;
    }

    .deals-grid {
        /* grid-template-columns: repeat(2, 1fr); */
        gap: 1rem;
    }

    .page-header {
        margin-bottom: 2rem;
    }
}

/* Deals Loader Styles */
.deals-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    grid-column: 1 / -1; /* Take full width in grid */
}

.loader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 2rem;
}

.spinner-ring {
    position: absolute;
    border: 3px solid transparent;
    border-top: 3px solid #ff6b35;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(1) {
    width: 80px;
    height: 80px;
    animation-duration: 1s;
}

.spinner-ring:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-duration: 1.2s;
    border-top-color: #f7931e;
}

.spinner-ring:nth-child(3) {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    animation-duration: 0.8s;
    border-top-color: #ff9f43;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    color: #666;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
    opacity: 0.8;
}

/* Loading state animation */
.deals-grid[data-loading="true"] .deals-loader {
    opacity: 1;
    animation: fadeIn 0.5s ease-in;
}

.deals-grid[data-loading="false"] .deals-loader {
    display: none;
}

.deals-grid[data-loading="false"] .deals-cards {
    display: grid !important;
    grid-template-columns: inherit;
    gap: inherit;
    animation: fadeInUp 0.8s ease-out;
}

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

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

/* Responsive loader */
@media (max-width: 768px) {
    .deals-loader {
        padding: 2rem 1rem;
    }

    .loader-spinner {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .spinner-ring:nth-child(1) {
        width: 60px;
        height: 60px;
    }

    .spinner-ring:nth-child(2) {
        width: 45px;
        height: 45px;
        top: 7.5px;
        left: 7.5px;
    }

    .spinner-ring:nth-child(3) {
        width: 30px;
        height: 30px;
        top: 15px;
        left: 15px;
    }

    .loader-text {
        font-size: 1rem;
    }
}

/* Loading Placeholder Styles */
.loading-placeholder {
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    color: transparent !important;
    position: relative;
    overflow: hidden;
}

.loading-text {
    color: #999;
    font-style: italic;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 0.4; }
}

/* Banner Stats Placeholder */
.banner-stats-placeholder {
    animation: fadeIn 0.3s ease-in;
}

.banner-stats-placeholder .stat-number.loading-placeholder {
    height: 2rem;
    min-width: 3rem;
    display: inline-block;
}

.banner-stats-placeholder .deal-name {
    color: #999;
    font-style: italic;
}

.banner-stats-placeholder .loading-text {
    font-size: 0.9rem;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 12px;
}

/* Deal Section Placeholder */
#deals-sections-placeholder .deal-title.loading-placeholder {
    height: 2.5rem;
    width: 60%;
    display: inline-block;
    margin: 0.5rem 0;
}

#deals-sections-placeholder .status-badge.loading-placeholder,
#deals-sections-placeholder .discount-badge.loading-placeholder,
#deals-sections-placeholder .type-badge.loading-placeholder {
    height: 1.5rem;
    width: 80px;
    display: inline-block;
    margin-right: 0.5rem;
}

#deals-sections-placeholder .info-value.loading-placeholder {
    height: 1rem;
    width: 60px;
    display: inline-block;
}

/* Smooth transitions */
.fade-out-placeholder {
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.5s ease-out;
}

.fade-in-content {
    opacity: 0;
    animation: fadeInContent 0.8s ease-out forwards;
}

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