/* ============================================================
   Photorba — Custom Styles (Tailwind extensions and overrides)
   ============================================================ */

/* --- Font & Base --- */
body {
    background-color: #0c111d;
    color: #f8fafc;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0c111d; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

/* --- Glassmorphism Card --- */
.glass {
    background: rgba(17, 24, 39, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Gradient Text --- */
.gradient-text {
    background: linear-gradient(135deg, #fb923c, #ec4899, #818cf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- CTA Button --- */
.btn-cta {
    background: linear-gradient(90deg, #f97316, #ec4899);
    border-radius: 999px;
    font-weight: 700;
    color: #fff;
    padding: 14px 32px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 25px rgba(249, 115, 22, 0.3);
}
.btn-cta:hover {
    opacity: 0.92;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 115, 22, 0.45);
}
.btn-cta:active { transform: scale(0.97); }

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Style Card hover effect --- */
.style-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.style-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(249, 115, 22, 0.12);
}

/* --- Drag Drop Zone --- */
.drop-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.drop-zone:hover,
.drop-zone.dragover {
    border-color: #f97316;
    background: rgba(249, 115, 22, 0.06);
    transform: scale(1.01);
}

/* --- Progress Bar --- */
.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #f97316, #ec4899);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* --- Badge --- */
.badge-popular {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 999px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* --- Fade In Delay Utilities --- */
.delay-100 { transition-delay: 100ms !important; }
.delay-200 { transition-delay: 200ms !important; }
.delay-300 { transition-delay: 300ms !important; }
.delay-400 { transition-delay: 400ms !important; }
.delay-500 { transition-delay: 500ms !important; }

/* --- Pricing Toggle --- */
.billing-toggle { cursor: pointer; }

/* --- FAQ Accordion --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}
.faq-item.open .faq-answer {
    max-height: 300px;
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

/* --- Gallery Masonry (CSS Columns) --- */
.masonry-gallery {
    columns: 2;
    column-gap: 16px;
}
@media (min-width: 768px) { .masonry-gallery { columns: 3; } }
@media (min-width: 1024px) { .masonry-gallery { columns: 4; } }
.masonry-gallery > * {
    break-inside: avoid;
    margin-bottom: 16px;
}

/* --- Toast Notification --- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    padding: 14px 22px;
    border-radius: 14px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    animation: toastIn 0.3s ease;
    max-width: 360px;
}
.toast-success { background: #052e16; border: 1px solid #16a34a; color: #86efac; }
.toast-error   { background: #2d0000; border: 1px solid #dc2626; color: #fca5a5; }
@keyframes toastIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --- Upload Preview Grid --- */
.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}
.upload-preview-grid img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.upload-preview-grid img:hover { border-color: #f97316; }
