/* amazon-coupons.css */

.amazon-hero {
    background: linear-gradient(135deg, #02458a 0%, #002d5b 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
    font-family: "Spinnaker", sans-serif;
}

.amazon-hero::after {
    content: "";
    position: absolute;
    right: -50px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    width: 600px;
    height: 400px;
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/a9/Amazon_logo.svg");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.15;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

.amazon-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.amazon-hero h1 {
    font-size: 45px;
    font-weight: 400;
    line-height: 1.2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* Main Content Layout */
.coupon-page-content {
    background-color: #fcfcfc;
    padding: 60px 0;
    font-family: "Spinnaker", sans-serif;
}

.coupon-page-content .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* Sidebar */
.filter-sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.filter-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-header h3 {
    font-size: 20px;
    font-weight: 500;
}

.clear-link {
    font-size: 14px;
    color: #0088cc;
    text-decoration: none;
}

.search-box-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.search-box-wrapper input {
    width: 100%;
    padding: 12px 15px;
    padding-right: 45px;
    border: 1px solid #0088cc;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
}

.sidebar-search-btn {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 40px;
    background: #007bff;
    border: none;
    color: #fff;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.category-filter h4 {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 20px;
}

.category-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #888;
    cursor: pointer;
}

.category-item input {
    width: 18px;
    height: 18px;
    border: 1px solid #d1d1d1;
    cursor: pointer;
    accent-color: #002d5b;
}

.show-more-sidebar {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: #0088cc;
    text-decoration: underline;
    font-size: 15px;
    font-weight: 500;
}

.show-more-sidebar i {
    font-size: 12px;
}

.show-more-sidebar:hover {
    color: #006699;
}

/* Offer Status Styles */
.status-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    color: #8ca4bc;
}

.status-count {
    color: #8ca4bc;
    font-size: 14px;
}

/* Main Content Area */
.coupons-main {
    flex: 1;
}

.load-more-container {
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 40px 0;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #002d5b;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
}

.store-intro {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.store-logo-large {
    flex: 0 0 160px;
    height: 100px;
    background: #002d5b;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.store-logo-large img {
    max-width: 100%;
}

.store-description {
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

/* Coupon Tabs */
.coupon-tabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 4px;
    padding: 0 25px;
    height: 60px;
    margin-bottom: 30px;
}

.tab-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
}

.tab-filters {
    display: flex;
    gap: 30px;
    height: 100%;
}

.tab-link {
    display: flex;
    align-items: center;
    font-size: 18px;
    color: #888;
    text-decoration: none;
    position: relative;
    padding: 0 5px;
}

.tab-link.active {
    color: #002d5b;
    font-weight: 500;
}

.tab-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #002d5b;
}

/* Coupon Card Layout */
.coupon-offer-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    display: flex;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.card-left {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-right {
    flex: 0 0 260px;
    border-left: 1px dashed #dde4ec;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    background: #fff;
}

.card-main-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    flex: 1;
}

.discount-tag {
    flex: 0 0 160px;
    height: 160px;
    background: #e8edf1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.discount-tag .up-to {
    font-size: 30px;
    font-weight: 500;
    color: #003a70;
    line-height: 1;
}

.discount-tag .percent {
    font-size: 40px;
    font-weight: bold;
    color: #003a70;
    line-height: 1;
}

.offer-details {
    flex: 1;
}

.vote-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f0f7;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    font-size: 14px;
    color: #003a70;
}

.vote-pill i {
    cursor: pointer;
    background: #003a70;
    color: #fff;
    padding: 2px;
    border-radius: 2px;
    font-size: 10px;
}

.offer-details h2 {
    font-size: 15px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.offer-desc-text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 25px;
}

.offer-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #888;
}

.verified-group {
    text-align: center;
    margin-top: 10px;
}

.verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8ca4bc;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
}

.verified-badge i {
    font-size: 16px;
}

.show-code-btn {
    display: flex;
    border: 1px solid #003566;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 0;
    width: 180px;
    height: 45px;
    position: relative;
    transition: all 0.3s ease;
    margin: 0 auto 15px;
}

.btn-text {
    background: #003566;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    width: 80%;
    height: 100%;
    z-index: 2;
    clip-path: polygon(0 0, 96% 0, 100% 100%, 0 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding-right: 25px;
}

.code-suffix {
    background: #fff;
    color: #003566;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    width: 10%;
    height: 100%;
    margin-left: -3%;
    z-index: 1;
}

.show-code-btn:hover {
    box-shadow: 0 4px 12px rgba(0, 53, 102, 0.15);
}

.card-footer-strip {
    border-top: 1px solid #ededed;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
}

.brand-social {
    display: flex;
    align-items: center;
    gap: 40px;
}

.brand-logo-mini img {
    height: 35px;
    max-width: 150px;
    object-fit: contain;
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -12px;
    object-fit: cover;
}

.avatar:first-child {
    margin-left: 0;
}

.action-icons {
    display: flex;
    gap: 25px;
}

.action-icons i {
    color: #8ca4bc;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.2s ease;
}

.heart-btn.active,
.heart-btn.fas {
    color: #ff4d4d !important;
}

/* Deals Grid */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.deal-card {
    background: #fff;
    border: 1px solid #ededed;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}

.deal-card:hover {
    transform: translateY(-5px);
}

.deal-card-image {
    position: relative;
    height: 160px;
}

.deal-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deal-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .coupon-page-content .container {
        flex-direction: column;
        gap: 30px;
    }

    .filter-sidebar {
        flex: 1 0 auto;
        width: 100%;
    }

    .amazon-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .coupon-offer-card {
        flex-direction: column;
    }

    .card-right {
        border-left: none;
        border-top: 1px dashed #dde4ec;
        flex: 0 0 auto;
        padding: 20px;
    }

    .card-main-body {
        padding: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .discount-tag {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
    }

    .store-intro {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .store-logo-large {
        flex: 0 0 100px;
        width: 100%;
        max-width: 150px;
        height: 70px;
    }

    .store-description {
        font-size: 15px;
    }

    .coupon-tabs {
        flex-direction: column;
        height: auto;
        padding: 15px;
        gap: 15px;
        text-align: center;
    }

    .tab-filters {
        width: 100%;
        justify-content: center;
        gap: 20px;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
    }

    .tab-link {
        font-size: 16px;
        white-space: nowrap;
    }

    .card-footer-strip {
        padding: 15px;
        flex-direction: column;
        gap: 20px;
    }

    .brand-social {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        width: 100%;
    }

    .action-icons {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .amazon-hero h1 {
        font-size: 24px;
    }

    .amazon-hero::after {
        display: none;
    }

    .discount-tag .up-to {
        font-size: 18px;
    }

    .discount-tag .percent {
        font-size: 24px;
    }

    .show-code-btn {
        width: 160px;
    }
}
