/* Error Modal Styles */
.error-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.error-modal.show {
    opacity: 1;
    visibility: visible;
}

.error-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 22, 19, 0.55);
    backdrop-filter: blur(6px);
}

.error-modal-content {
    position: relative;
    background: var(--soft-cream, #faf7f2);
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 420px;
    width: 88%;
    box-shadow: 0 24px 64px rgba(44, 36, 32, 0.25);
    text-align: center;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.error-modal.show .error-modal-content {
    transform: scale(1) translateY(0);
}

.error-modal-icon {
    font-size: 44px;
    margin-bottom: 16px;
    line-height: 1;
    color: var(--gold, #d4a24c);
}

.error-modal-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary, #1e1814);
    margin: 0 0 8px 0;
    letter-spacing: -0.01em;
}

.error-modal-message {
    font-size: 0.95rem;
    color: var(--text-secondary, #4a3f36);
    line-height: 1.6;
    margin: 0 0 6px 0;
}

.error-details {
    background: rgba(212, 162, 76, 0.1);
    border-left: 3px solid var(--gold, #d4a24c);
    padding: 14px 16px;
    margin: 16px 0;
    text-align: left;
    border-radius: 0 8px 8px 0;
}

.error-details-title {
    font-weight: 600;
    color: var(--gold-dark, #b07d2f);
    margin: 0 0 6px 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.error-details-list {
    margin: 0;
    padding-left: 18px;
    list-style: disc;
}

.error-details-list li {
    color: var(--text-secondary, #4a3f36);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 2px;
}

.error-details-text {
    background: var(--bg-warm, #f3ebe0);
    border-radius: 10px;
    padding: 14px 16px;
    margin: 14px 0 0;
    font-size: 0.85rem;
    color: var(--text-light, #7a6e62);
    line-height: 1.55;
    text-align: center;
}

.error-modal-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.error-dismiss-link {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.error-dismiss-link:hover {
    color: #666;
    text-decoration: underline;
}

.error-action-btn,
.error-close-btn {
    padding: 12px 28px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    letter-spacing: 0.01em;
}

.error-action-btn {
    background: var(--gold, #d4a24c);
    color: var(--warm-black, #1a1613);
    width: 100%;
}

.error-action-btn:hover {
    background: var(--gold-dark, #b07d2f);
    color: var(--warm-black, #1a1613);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(176, 125, 47, 0.25);
}

.error-close-btn {
    background: var(--warm-black, #1a1613);
    color: var(--warm-cream, #f8f3ed);
    flex: 1;
}

.error-close-btn:hover {
    background: var(--gold-dark, #b07d2f);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(176, 125, 47, 0.25);
}

/* Warning Banner Styles */
.warning-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    z-index: 9999;
    max-width: 600px;
    width: 90%;
    background: #fff3e0;
    border: 2px solid #ff9800;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.warning-banner.show {
    transform: translateX(-50%) translateY(0);
}

.warning-banner-content {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
}

.warning-banner-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.warning-banner-text {
    flex: 1;
    font-size: 14px;
    color: #e65100;
    line-height: 1.6;
}

.warning-banner-text strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.warning-banner-close {
    background: transparent;
    border: none;
    color: #e65100;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.warning-banner-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.warning-details {
    margin-top: 12px;
}

.warning-toggle {
    background: #ff9800;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease;
}

.warning-toggle:hover {
    background: #f57c00;
}

.warning-details-list {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: disc;
}

.warning-details-list li {
    color: #bf360c;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 4px;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .error-modal-content {
        padding: 28px 22px 22px;
    }

    .error-modal-icon {
        font-size: 36px;
        margin-bottom: 12px;
    }

    .error-modal-title {
        font-size: 1.2rem;
    }

    .error-modal-message {
        font-size: 0.88rem;
    }

    .error-action-btn {
        width: 100%;
        padding: 14px 24px;
    }

    .warning-banner {
        top: 10px;
        width: 95%;
    }

    .warning-banner-content {
        padding: 12px 16px;
    }
}

/* ===== PHOTO TIPS MODAL ===== */
.photo-tips-content {
    max-width: 400px !important;
    padding: 28px 24px 22px !important;
    max-height: 92vh;
    overflow-y: auto;
}

.photo-tips-camera-icon {
    text-align: center;
    font-size: 28px;
    margin-bottom: 6px;
    line-height: 1;
    color: var(--gold, #d4a24c);
}

.photo-tips-heading {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-primary, #1e1814);
    text-align: center;
    margin: 0 0 8px;
    line-height: 1.3;
}

.photo-tips-subtitle {
    color: var(--text-secondary, #4a3f36);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
    margin: 0 0 16px;
}

/* ── Tip rules ── */
.photo-tips-rules {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.photo-tips-rule {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 12px;
    padding: 11px 14px;
}

.photo-tips-rule__icon {
    font-size: 18px;
    flex-shrink: 0;
    line-height: 1;
    color: var(--gold, #d4a24c);
    width: 24px;
    text-align: center;
}

.photo-tips-rule div {
    display: flex;
    flex-direction: column;
}

.photo-tips-rule strong {
    font-size: 0.85rem;
    color: var(--text-primary, #1e1814);
    font-weight: 600;
}

.photo-tips-rule span {
    font-size: 0.78rem;
    color: var(--text-light, #7a6e62);
    margin-top: 1px;
}

/* ── Example photos ── */
.photo-tips-examples-section {
    margin-bottom: 18px;
}

.photo-tips-examples-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-light, #7a6e62);
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 10px;
}

.photo-tips-examples {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.photo-tips-example {
    text-align: center;
    cursor: pointer;
}

.photo-tips-example__img-wrap {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}

.photo-tips-example__img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
}

.photo-tips-example__check {
    position: absolute;
    bottom: 5px;
    right: 5px;
    color: #22c55e;
    font-size: 18px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

.photo-tips-example__label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary, #1e1814);
    background: var(--bg-warm, #f3ebe0);
    padding: 3px 10px;
    border-radius: 100px;
}

/* ── CTA button ── */
.photo-tips-cta {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 100px;
    background: var(--gold, #d4a24c);
    color: var(--warm-black, #1a1613);
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
}

.photo-tips-cta:hover {
    background: var(--gold-dark, #b07d2f);
    transform: translateY(-1px);
}

/* Ensure tips modal fits viewport */
.photo-tips-content {
    max-height: 90vh;
    max-height: 90dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Mobile ── */

@media (max-width: 480px) {
    .photo-tips-content {
        padding: 20px 16px 18px !important;
    }

    .photo-tips-heading {
        font-size: 1.2rem;
    }

    .photo-tips-rule {
        padding: 10px 12px;
        gap: 10px;
    }

    .photo-tips-rule__icon {
        font-size: 16px;
    }

    .photo-tips-rule strong {
        font-size: 0.82rem;
    }

    .photo-tips-rule span {
        font-size: 0.75rem;
    }

    .photo-tips-cta {
        padding: 13px 20px;
        font-size: 0.92rem;
    }
}

/* ===== PHOTO TIPS VIDEO MODE ===== */
.photo-tips-video-wrap {
    width: 100%;
    max-width: 320px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(44,36,32,0.1);
}

.photo-tips-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.photo-tips-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.photo-tips-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.photo-tips-slide.active {
    opacity: 1;
}

.photo-tips-pro-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef9f0;
    border: 1px solid #f0dbb8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 18px;
    font-size: 0.88rem;
    line-height: 1.45;
    color: var(--warm-black, #1a1613);
    text-align: left;
}

.photo-tips-pro-tip__icon {
    flex-shrink: 0;
    color: var(--gold, #d4a24c);
    font-size: 1.1rem;
    margin-top: 1px;
}

@media (max-width: 480px) {
    .photo-tips-video-wrap {
        max-width: 260px;
    }

    .photo-tips-pro-tip {
        font-size: 0.84rem;
        padding: 10px 12px;
    }
}

/* ===== PHOTO TIPS LIGHTBOX ===== */
.photo-tips-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(26, 22, 19, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
    animation: lightboxFadeIn 0.2s ease;
}

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

.photo-tips-lightbox__img-wrap {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 80vw;
    max-height: 70vh;
}

.photo-tips-lightbox__img-wrap--good {
    border: 3px solid #22c55e;
}

.photo-tips-lightbox__img {
    display: block;
    max-width: 80vw;
    max-height: 70vh;
    object-fit: contain;
}

.photo-tips-lightbox__badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.photo-tips-badge--good {
    background: #22c55e;
}

.photo-tips-lightbox__label {
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 16px;
    text-align: center;
}

.photo-tips-lightbox__hint {
    color: rgba(255, 255, 255, 0.5);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    margin-top: 8px;
    text-align: center;
}
