/* AffiliDeal Pro - Frontend Styles */
.affilideal-coupons-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.affilideal-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.affilideal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px -6px rgba(15, 23, 42, 0.1);
    border-color: #cbd5e1;
}

.affilideal-card.affilideal-has-offer-image {
    padding: 0;
}

.affilideal-offer-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f1f5f9;
    border-top-left-radius: 13px;
    border-top-right-radius: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.affilideal-offer-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.affilideal-card:hover .affilideal-offer-img {
    transform: scale(1.05);
}

.affilideal-offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(15, 23, 42, 0.92);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    letter-spacing: -0.01em;
}

.affilideal-offer-tag-exclusive {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(147, 51, 234, 0.92);
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 2px 7px;
    border-radius: 5px;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.affilideal-card-content {
    padding: 16px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.affilideal-card.affilideal-is-expired {
    opacity: 0.65;
    filter: grayscale(0.2);
    border-color: #cbd5e1;
}

.affilideal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.affilideal-store-name {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.affilideal-verified-label {
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
}

.affilideal-discount-badge {
    display: inline-block;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.affilideal-deal-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.affilideal-deal-title a {
    color: #0f172a;
    text-decoration: none;
}

.affilideal-deal-title a:hover {
    color: #2563eb;
}

.affilideal-deal-excerpt {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 16px 0;
}

.affilideal-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px dashed #e2e8f0;
}

.affilideal-expiry-countdown {
    font-size: 12px;
    color: #64748b;
}

.affilideal-expired-text {
    color: #dc2626;
    font-weight: 600;
}

.affilideal-time-left {
    color: #059669;
    font-weight: 500;
}

/* Coupon Action Buttons */
.affilideal-btn-reveal {
    width: 100%;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s ease;
}

.affilideal-btn-reveal:hover {
    background: #1e293b;
}

.affilideal-code-mask {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.affilideal-btn-deal {
    display: block;
    text-align: center;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.affilideal-btn-deal:hover {
    background: #1d4ed8;
}

/* Frontend Search & Filter Bar - Special CSS Edition */
.affilideal-catalog-container {
    margin: 28px 0;
}

/* Base Search Filter Box */
.affilideal-search-filter-box {
    position: relative;
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 24px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* 1. Special Theme: Signature Gradient Ambient Glow */
.affilideal-search-theme-special {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(37, 99, 235, 0.05);
}

.affilideal-search-theme-special:before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(124, 58, 237, 0.15), rgba(16, 185, 129, 0.2));
    z-index: -1;
    filter: blur(8px);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.affilideal-search-theme-special:hover:before,
.affilideal-search-theme-special:focus-within:before {
    opacity: 1;
}

/* 2. Glassmorphism Frosted Theme */
.affilideal-search-theme-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
}

/* 3. Midnight Dark Theme */
.affilideal-search-theme-dark {
    background: #0f172a;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    color: #f8fafc;
}

.affilideal-search-theme-dark .affilideal-search-input {
    color: #f8fafc !important;
}

.affilideal-search-theme-dark .affilideal-search-input::placeholder {
    color: #94a3b8;
}

.affilideal-search-theme-dark .affilideal-search-input-wrapper {
    background: #1e293b;
    border-color: #334155;
}

.affilideal-search-theme-dark .affilideal-search-input-wrapper:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.affilideal-search-theme-dark .affilideal-search-kbd {
    background: #334155;
    color: #cbd5e1;
    border-color: #475569;
}

.affilideal-search-theme-dark .affilideal-quick-tag {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

.affilideal-search-theme-dark .affilideal-quick-tag:hover {
    background: #334155;
    color: #ffffff;
}

.affilideal-search-theme-dark .affilideal-pill {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}

.affilideal-search-theme-dark .affilideal-pill.is-active {
    background: #38bdf8;
    color: #0f172a;
    border-color: #38bdf8;
}

.affilideal-search-theme-dark .affilideal-select {
    background: #1e293b;
    color: #f8fafc;
    border-color: #334155;
}

.affilideal-search-theme-dark .affilideal-count-indicator {
    color: #94a3b8;
}

/* 4. Neon Cyber Theme */
.affilideal-search-theme-neon {
    background: #090d16;
    border: 1px solid #1e293b;
    box-shadow: 0 0 25px -5px rgba(37, 99, 235, 0.35);
    color: #f8fafc;
}

.affilideal-search-theme-neon .affilideal-search-input-wrapper {
    background: #111827;
    border-color: #2563eb;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.2);
}

/* Special Search Input Wrapper */
.affilideal-search-row {
    margin-bottom: 14px;
}

.affilideal-search-input-wrapper.affilideal-special-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 4px 6px 4px 16px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 4px rgba(15, 23, 42, 0.02);
}

.affilideal-search-input-wrapper.affilideal-special-search:hover {
    border-color: #94a3b8;
}

.affilideal-search-input-wrapper.affilideal-special-search:focus-within {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14), 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

.affilideal-search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #64748b;
    transition: color 0.2s ease, transform 0.2s ease;
}

.affilideal-search-input-wrapper:focus-within .affilideal-search-icon {
    color: #2563eb;
    transform: scale(1.08);
}

.affilideal-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #0f172a;
    padding: 9px 0 !important;
    box-shadow: none !important;
    font-weight: 500;
}

.affilideal-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.affilideal-search-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 8px;
    flex-shrink: 0;
}

.affilideal-search-clear {
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #64748b;
    border: none;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.affilideal-search-clear:hover {
    background: #e2e8f0;
    color: #0f172a;
    transform: scale(1.05);
}

.affilideal-search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.05);
    user-select: none;
}

.affilideal-search-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
    transition: all 0.15s ease;
}

.affilideal-search-submit-btn:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.affilideal-search-submit-btn:active {
    transform: translateY(0);
}

/* Quick Trending Search Tags */
.affilideal-search-quick-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-left: 4px;
}

.affilideal-quick-tags-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 4px;
}

.affilideal-quick-tag {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 14px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.affilideal-quick-tag:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.affilideal-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.affilideal-filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.affilideal-pill {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.15s ease;
}

.affilideal-pill:hover {
    border-color: #cbd5e1;
    color: #0f172a;
}

.affilideal-pill.is-active {
    background: #0f172a;
    color: #ffffff;
    border-color: #0f172a;
}

.affilideal-filter-selects {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.affilideal-select {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 12px;
    color: #334155;
    cursor: pointer;
    outline: none;
}

.affilideal-select:focus {
    border-color: #2563eb;
}

.affilideal-filter-feedback {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #64748b;
}

.affilideal-reset-filters-btn {
    background: none;
    border: none;
    color: #2563eb;
    font-weight: 600;
    font-size: 12px;
    cursor: pointer;
    padding: 0;
}

.affilideal-reset-filters-btn:hover {
    text-decoration: underline;
}

.affilideal-card.affilideal-hidden {
    display: none !important;
}

.affilideal-no-results {
    text-align: center;
    padding: 40px 20px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px dashed #cbd5e1;
    margin: 20px 0;
}

.affilideal-no-results-msg {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 12px 0;
}

.affilideal-btn-reset {
    padding: 8px 16px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 8px;
    border: none;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.affilideal-btn-reset:hover {
    background: #1e293b;
}

/* Modal Popup when code is copied */
.affilideal-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.affilideal-modal-box {
    background: #ffffff;
    width: 90%;
    max-width: 440px;
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Single Coupon View Page Styles */
.affilideal-single-view {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    max-width: 680px;
    margin: 24px auto;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
}

.affilideal-single-media {
    aspect-ratio: 16 / 9;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.affilideal-single-content {
    padding: 24px;
}

.affilideal-single-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.affilideal-single-title {
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin: 0 0 14px 0;
}

.affilideal-single-description {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 18px;
}

.affilideal-desc-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin: 0 0 8px 0;
}

.affilideal-desc-body {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
}

.affilideal-terms-text {
    font-size: 11px;
    color: #94a3b8;
    margin: 10px 0 0 0;
    padding-top: 8px;
    border-top: 1px dashed #cbd5e1;
}

.affilideal-single-code-box {
    background: #f0fdf4;
    border: 2px dashed #86efac;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.affilideal-code-instruction {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #166534;
    margin-bottom: 6px;
}

.affilideal-code-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.affilideal-code-val {
    font-family: monospace;
    font-size: 20px;
    font-weight: 800;
    color: #14532d;
    letter-spacing: 0.08em;
}

.affilideal-btn-copy-code {
    background: #15803d;
    color: #ffffff;
    border: none;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.affilideal-btn-copy-code:hover {
    background: #166534;
}

.affilideal-affiliate-card {
    background: #0f172a;
    color: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-top: 18px;
}

.affilideal-affiliate-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 11px;
}

.affilideal-affiliate-label {
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.affilideal-network-tag {
    background: rgba(255, 255, 255, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    color: #cbd5e1;
}

.affilideal-affiliate-link-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.affilideal-affiliate-input {
    flex: 1;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 12px;
    font-family: monospace;
    font-size: 11px;
    color: #93c5fd;
    outline: none;
}

.affilideal-btn-copy-link {
    background: #3b82f6;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 14px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.affilideal-btn-copy-link:hover {
    background: #2563eb;
}

.affilideal-btn-visit-store {
    display: block;
    width: 100%;
    text-align: center;
    background: #2563eb;
    color: #ffffff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    border-radius: 10px;
    box-sizing: border-box;
    transition: background 0.15s ease;
}

.affilideal-btn-visit-store:hover {
    background: #1d4ed8;
}
