/* =====================================================================
   create-challenge-modal.css

   Standalone stylesheet for the user.partials.create-challenge-modal
   Blade partial when it is mounted outside /aura/dashboard
   (specifically: ping-landing.blade.php, where the trophy button on
   each "GamifEYE Your Business" location card opens this modal).

   /aura/dashboard already loads dashboard.css and home-new.css/
   more-styles.css, which contain the source-of-truth versions of
   every rule below — so this file is NEVER linked from the dashboard.
   It is loaded only on the landing page, so the modal renders
   correctly there without us having to ship the entire 26K-line
   dashboard.css to public visitors.

   --- MAINTENANCE WARNING ---

   The rules in this file are a SNAPSHOT COPY of the originals. If you
   change one of these rules in the source files for any /aura surface,
   you MUST also change it here so the landing-page modal stays in
   visual sync.

   Source ranges (line numbers correct at extraction time, scan by
   selector if they have drifted):
     - public/css/home-new.css      lines ~4329–4654 (daily-bonus-* base)
     - public/css/dashboard.css     lines ~4890–5295 (eyelands-modal-*)
     - public/css/dashboard.css     lines ~6727–7889 (stamp-modal-light,
                                                     sf-create-offer-modal-*,
                                                     sf-challenge-hero-*,
                                                     sf-currency-dropdown,
                                                     sf-input-icon, sf-dates-card,
                                                     sf-visit-fields, sf-min-purchase-input)
     - public/css/dashboard.css     lines ~12074–13130 (sf-form-group, sf-icon-purple,
                                                       sf-stamp-count, sf-adjust-btn,
                                                       sf-create-btn, sf-challenge-type-*,
                                                       sf-crop-*, sf-summary-*,
                                                       sf-acknowledge-*, sf-summary-badge)

   Rules that fall outside the modal but happen to live in those ranges
   (e.g. .dash-aura-*, .sf-cr-to-win, .stamps-grid) have been omitted
   because their parent classes are absent on the landing page and
   they would just be dead weight.
   ===================================================================== */


/* =====================================================================
   Daily Bonus modal — overlay + shell + close + icon + title.
   Source: public/css/home-new.css (~4329–4654).

   The create-challenge modal partial uses these classes as its
   structural shell (#challengeModalOverlay carries
   .daily-bonus-modal-overlay; #createChallengeModal carries
   .daily-bonus-modal .stamp-modal .stamp-modal-light).
   ===================================================================== */

.daily-bonus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.daily-bonus-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.daily-bonus-modal {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.98), rgba(15, 20, 40, 0.98));
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.4);
    padding: 2rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    position: relative;
    transform: scale(0.8) translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 60px rgba(255, 215, 0, 0.2), 0 25px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.daily-bonus-modal-overlay.active .daily-bonus-modal {
    transform: scale(1) translateY(0);
}

.daily-bonus-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.daily-bonus-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: rotate(90deg);
}

.daily-bonus-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 165, 0, 0.2));
    border: 2px solid rgba(255, 215, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.daily-bonus-icon i {
    font-size: 3rem;
    color: #ffd700;
}

.daily-bonus-title {
    font-family: "Fredoka", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

@media (max-width: 480px) {
    .daily-bonus-modal {
        padding: 1.5rem;
        max-width: 320px;
    }
    .daily-bonus-icon {
        width: 80px;
        height: 80px;
    }
    .daily-bonus-icon i {
        font-size: 2.5rem;
    }
    .daily-bonus-title {
        font-size: 1rem;
    }
}


/* =====================================================================
   Eyelands modal subset — used by the post-create success modal
   (#challengeSuccessModal carries .eyelands-modal-overlay /
   .eyelands-modal / .eyelands-modal-btn).
   Source: public/css/dashboard.css (~4891–5292).
   ===================================================================== */

.eyelands-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.eyelands-modal-overlay.is-open {
    display: flex;
}
.eyelands-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.eyelands-modal-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    font-family: "Fredoka", sans-serif;
    transition: opacity 0.2s;
}
.eyelands-modal-btn.primary {
    background: #e91e8c;
    color: #fff;
}
.eyelands-modal-btn.primary:hover:not(:disabled) {
    opacity: 0.9;
}
.eyelands-modal-btn.primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.eyelands-modal-btn.secondary {
    background: #f1f5f9;
    color: #475569;
}
.eyelands-modal-btn.secondary:hover {
    background: #e2e8f0;
}


/* =====================================================================
   STAMP MODAL — light theme.
   Source: public/css/dashboard.css (~6727–7889).

   .stamp-modal-light is the modal's main visual theme — it is layered
   on top of .daily-bonus-modal (which provides the dark cosmic
   default) to override into the create-challenge pink/white look.
   ===================================================================== */

.stamp-modal-light {
    background: #ffffff !important;
    border: 2px solid #e91e8c !important;
    box-shadow: 0 20px 60px rgba(233, 30, 140, 0.15) !important;
}

.stamp-modal-light .daily-bonus-close {
    background: #f5f5f5;
    color: #666;
}
.stamp-modal-light .daily-bonus-close:hover {
    background: #e0e0e0;
    color: #333;
}
.stamp-modal-light .daily-bonus-icon {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.1), rgba(155, 89, 182, 0.1)) !important;
    border-color: rgba(233, 30, 140, 0.3) !important;
}
.stamp-modal-light .daily-bonus-icon i {
    text-shadow: none !important;
}
.stamp-modal-light .daily-bonus-title {
    color: #333 !important;
    text-shadow: none !important;
}

.stamp-modal-light .stamp-modal-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.stamp-modal-light .stamp-modal-label i {
    margin-right: 0.25rem;
}
.stamp-modal-light .stamp-modal-count {
    font-size: 0.7rem;
    color: #999;
}

.stamp-modal-light .stamp-modal-input {
    width: 100%;
    box-sizing: border-box;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    min-height: 2.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    font-family: "Fredoka", sans-serif;
    outline: none;
    text-align: center;
}
.stamp-modal-light .stamp-modal-input:focus {
    border-color: #e91e8c;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}
.stamp-modal-light .stamp-modal-input::placeholder {
    color: #999;
}
.stamp-modal-light .stamp-modal-textarea {
    width: 100%;
    box-sizing: border-box;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    color: #333;
    font-family: "Fredoka", sans-serif;
    outline: none;
    resize: none;
    line-height: 1.5;
}
.stamp-modal-light .stamp-modal-textarea:focus {
    border-color: #e91e8c;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}
.stamp-modal-light .stamp-modal-textarea::placeholder {
    color: #999;
}

.sf-currency-dropdown-trigger {
    width: 100%;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left !important;
    font-size: 0.9rem;
    color: #333;
    font-family: "Fredoka", sans-serif;
    font-weight: 400 !important;
    line-height: 1.5;
}
.stamp-modal-light .sf-currency-dropdown-trigger {
    text-align: left !important;
    font-weight: 400 !important;
}
.sf-currency-dropdown-trigger.sf-currency-dropdown-trigger .sf-currency-dropdown-name,
.sf-currency-dropdown-trigger.sf-currency-dropdown-trigger .sf-currency-dropdown-code {
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
    font-family: inherit;
    line-height: inherit;
}

.sf-desc-textarea-wrap {
    position: relative;
}
.sf-desc-textarea-wrap .stamp-modal-textarea {
    padding-bottom: 3rem;
    padding-right: 0.5rem;
    flex: 1;
    min-height: 0;
    resize: none;
}
.sf-desc-counter-wrap {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.15rem;
    pointer-events: none;
}
.sf-desc-counter-wrap .stamp-modal-count {
    font-size: 0.7rem;
    color: #999;
}

#createChallengeModal.sf-create-offer-modal-outer {
    aspect-ratio: auto;
    max-height: 90vh;
    height: auto;
    width: 420px;
    max-width: 95vw;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    padding: 0 !important;
}
.sf-create-offer-modal-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.sf-create-offer-modal-scroll::-webkit-scrollbar {
    display: none;
}

#createChallengeModal .sf-create-offer-modal-scroll > .sf-slide {
    padding: 0 1rem 1rem;
}
#createChallengeModal .stamp-modal-input,
#createChallengeModal .stamp-modal-textarea,
#createChallengeModal .sf-challenge-type-trigger {
    font-size: 0.88rem;
    font-weight: 400;
    text-align: left;
}
#createChallengeModal .stamp-modal-input::placeholder,
#createChallengeModal .stamp-modal-textarea::placeholder {
    font-weight: 400;
}
#createChallengeModal .sf-challenge-type-trigger {
    font-weight: 400;
}

.sf-input-icon-wrap {
    position: relative;
}
.sf-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #e91e8c;
    font-size: 0.85rem;
    pointer-events: none;
    z-index: 1;
}
.sf-input-with-icon {
    padding-left: 2.2rem !important;
}

.sf-dates-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 0.25rem;
}
.sf-dates-card-row {
    display: flex;
    align-items: center;
}
.sf-dates-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    flex-shrink: 0;
    color: #22c55e;
    font-size: 0.8rem;
    padding-left: 6px;
}
.sf-dates-card-icon-end {
    color: #e91e8c;
}
.sf-dates-card-icon-expiry {
    color: #f59e0b;
}
.sf-dates-card-input {
    flex: 1;
    min-width: 0;
    font-family: "Fredoka", sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    color: #333;
    background: transparent;
    border: none;
    padding: 0.55rem 0.5rem 0.55rem 0;
    outline: none;
    box-sizing: border-box;
    cursor: pointer;
}
.sf-dates-card-input:focus {
    background: rgba(233, 30, 140, 0.04);
}
.sf-dates-card-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 0 8px;
}

.sf-visit-fields-row {
    display: flex;
    gap: 1rem;
}
.sf-visit-field {
    flex: 1;
    min-width: 0;
}
.sf-visit-field-label,
#createChallengeModal .sf-visit-field-label {
    display: block;
    font-family: "Fredoka", sans-serif;
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    color: #666;
    margin-bottom: 0.3rem;
    text-align: left;
}
.sf-stamp-count-compact {
    transform: scale(0.92);
    transform-origin: left center;
}
.sf-visit-duration-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.sf-visit-duration-unit {
    font-family: "Fredoka", sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: #999;
    white-space: nowrap;
}

.sf-min-purchase-input {
    margin-top: 0.15rem;
    font-size: 0.85rem !important;
    padding: 0.4rem 0.6rem !important;
}

.sf-challenge-hero-upload-btn {
    width: 110px;
    height: 110px;
    border-radius: 16px;
    border: 2.5px dashed rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
}
.sf-challenge-hero-upload-btn:hover {
    border-color: #e91e8c;
    background: rgba(233, 30, 140, 0.15);
}
.sf-challenge-hero-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
}
.sf-challenge-hero-upload-placeholder i {
    font-size: 1.6rem;
}

.sf-create-offer-modal-outer .daily-bonus-close {
    flex-shrink: 0;
}
#createChallengeModal .daily-bonus-close {
    z-index: 10;
}


/* =====================================================================
   Form groups, stamp counters, create button, challenge-type select
   and crop modal.
   Source: public/css/dashboard.css (~12074–13130).
   ===================================================================== */

.sf-form-group {
    margin-bottom: 1rem;
}
.sf-form-group.sf-image-upload-wrap {
    margin-bottom: 0;
}
.sf-form-group.sf-offer-type-wrap {
    margin-bottom: 0;
}
.sf-form-group.sf-offer-title-wrap {
    margin-bottom: 0;
}
.sf-form-group-lg {
    margin-bottom: 1.25rem;
}
.sf-icon-purple {
    color: #9b59b6;
}

.sf-stamp-count-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sf-adjust-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 2px solid rgba(233, 30, 140, 0.3);
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.1), rgba(155, 89, 182, 0.05));
    color: #e91e8c;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sf-adjust-btn:hover {
    background: linear-gradient(135deg, rgba(233, 30, 140, 0.2), rgba(155, 89, 182, 0.1));
    border-color: rgba(233, 30, 140, 0.5);
}
.sf-stamp-count-input {
    flex: 1;
    position: relative;
    outline: none;
    border: none;
}
.sf-stamp-count-input input {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #e91e8c;
    border-radius: 10px;
    padding: 0.4rem 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #e91e8c;
    text-align: center;
    font-family: "Fredoka", sans-serif;
    outline: none;
}
.sf-stamp-count-input input:focus {
    border-color: #e91e8c;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.1);
}

/* Create button — pink, no glow */
.sf-create-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.9rem;
    border-radius: 12px;
    background: #e91e8c;
    border: none;
    box-shadow: none;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 1;
    color: #fff;
}
.sf-create-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(233, 30, 140, 0.4);
}
.sf-create-btn.sf-btn-disabled,
.sf-create-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

/* Challenge Type custom select */
.sf-challenge-type-select-wrap {
    position: relative;
    font-family: "Fredoka", sans-serif;
}
.sf-challenge-type-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0.85rem;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #fafafa;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.92rem;
    font-weight: 600;
    color: #333;
}
.sf-challenge-type-trigger:hover {
    border-color: #d162a4;
    background: #fef6fa;
}
.sf-challenge-type-trigger-inner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.sf-challenge-type-trigger-inner i {
    color: #e91e8c;
    font-size: 1rem;
}
.sf-challenge-type-trigger.sf-placeholder {
    color: #999;
}
.sf-challenge-type-trigger.sf-placeholder .sf-challenge-type-trigger-inner i {
    color: #ccc;
}
.sf-challenge-type-chevron {
    font-size: 0.75rem;
    color: #999;
    transition: transform 0.2s;
}
.sf-challenge-type-select-wrap.open .sf-challenge-type-chevron {
    transform: rotate(180deg);
}
.sf-challenge-type-dropdown {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 100;
    overflow: hidden;
}
.sf-challenge-type-select-wrap.open .sf-challenge-type-dropdown {
    display: block;
}
.sf-challenge-type-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
    justify-content: flex-start;
}
.sf-challenge-type-option:hover {
    background: #fef6fa;
}
.sf-challenge-type-option.sf-challenge-type-option-active {
    background: linear-gradient(135deg, #fef0f8, #f8e8f5);
    color: #c2185b;
    font-weight: 600;
}
.sf-challenge-type-option i {
    color: #e91e8c;
    font-size: 1rem;
}
.sf-challenge-type-option.sf-option-disabled {
    opacity: 0.35;
    pointer-events: none;
    cursor: default;
}
.sf-challenge-type-option.sf-option-disabled:hover {
    background: transparent;
}

/* Crop modal styles */
.sf-crop-modal {
    font-family: "Fredoka", sans-serif;
}
.sf-crop-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}
.sf-crop-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}
.sf-crop-desc {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.4;
}
.sf-crop-area {
    width: 100%;
    max-height: 300px;
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.sf-crop-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.sf-crop-cancel-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    color: #666;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.sf-crop-apply-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: #fff;
    font-family: "Fredoka", sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.4);
}
.sf-crop-modal-container {
    max-width: 400px;
}
.sf-crop-close {
    z-index: 100;
}


/* =====================================================================
   Local-only rules — these classes live ONLY in the modal partial's
   inline <style> on /aura, so duplicating them here keeps the landing
   render parity with the dashboard render.
   ===================================================================== */

.sf-challenge-choice-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.sf-challenge-choice-btn:hover {
    border-color: #e91e8c;
    background: #fdf2f8;
}
.sf-challenge-choice-btn.sf-choice-active {
    border-color: #e91e8c;
    background: #fdf2f8;
    box-shadow: 0 0 0 3px rgba(233, 30, 140, 0.15);
}

/* Challenge intro slide centered text helper */
.sf-challenge-intro-slide {
    text-align: center;
}

/* Translation flag chips — partial declares the markup but no
   matching CSS lives anywhere in the project; relying on the
   browser's button defaults plus Bootstrap-Icons / flag-icons. */
