@import "tailwindcss";

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../**/*.blade.php';
@source '../**/*.js';

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@theme {
    --font-sans: 'Vazirmatn', ui-sans-serif, system-ui, sans-serif;
    --color-paper: #f6f3ec;
    --color-paper-deep: #ebe6db;
    --color-ink: #1c1917;
    --color-ink-muted: #6b6459;
    --color-ink-faint: #a39e94;
    --color-rust: #b45309;
    --color-rust-deep: #92400e;
    --color-moss: #3f6212;
    --color-moss-light: #ecfccb;
    --color-surface: #fffcf7;
    --color-line: #ddd6c8;
    --color-night: #141210;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-paper);
    color: var(--color-ink);
    background-image:
        radial-gradient(circle at 20% 0%, rgba(180, 83, 9, 0.06), transparent 42%),
        radial-gradient(circle at 80% 10%, rgba(63, 98, 18, 0.05), transparent 38%);
}

::selection {
    background: #fde68a;
    color: var(--color-ink);
}

.prompt-text {
    direction: ltr;
    text-align: left;
    unicode-bidi: plaintext;
    font-family: ui-monospace, 'Cascadia Code', 'Segoe UI Mono', monospace;
    line-height: 1.7;
}

/* ── Gallery grid ── */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
}

.gallery-grid-text {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 640px) {
    .gallery-grid-text { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .gallery-grid-text { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

/* ── Text prompt card ── */
.text-prompt-card {
    position: relative;
}
.text-prompt-card__accent {
    position: absolute;
    inset-block: 0;
    inset-inline-start: 0;
    width: 3px;
    background: linear-gradient(180deg, #b45309, #fbbf24);
    opacity: 0.85;
}
.text-prompt-card__icon {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.65rem;
    background: #f6f3ec;
    border: 1px solid #ddd6c8;
    color: #b45309;
}

/* ── Text prompt document panel (show page) ── */
.text-doc-panel {
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid #2a2724;
    background: linear-gradient(165deg, #1c1917 0%, #141210 55%, #0f0d0b 100%);
    box-shadow: 0 28px 56px -18px rgba(28, 25, 23, 0.45);
}
.text-doc-panel__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.text-doc-panel__dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    background: #3f3a36;
}
.text-doc-panel__dot:nth-child(1) { background: #ef4444; }
.text-doc-panel__dot:nth-child(2) { background: #eab308; }
.text-doc-panel__dot:nth-child(3) { background: #22c55e; }
.text-doc-panel__path {
    margin-inline-start: 0.5rem;
    font-family: ui-monospace, monospace;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    direction: ltr;
}
.text-doc-panel__body {
    padding: 1.5rem 1.35rem 1.75rem;
}

/* ── Horizontal model rail ── */
.model-rail {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 0.25rem;
}

.model-rail::-webkit-scrollbar { display: none; }

/* ── Card hover lift ── */
.card-lift {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
}

.card-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -12px rgba(28, 25, 23, 0.18);
}

/* ── Prompt card image overlay ── */
.card-overlay {
    background: linear-gradient(to top, rgba(20, 18, 16, 0.82) 0%, rgba(20, 18, 16, 0.2) 45%, transparent 100%);
}

/* ── Editor block (prompt copy area) ── */
.editor-block {
    background: var(--color-night);
    border: 1px solid #2a2724;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* ── Section label ── */
.section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-rust);
}

/* ── Noise texture overlay ── */
.texture-noise::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Stagger animation ── */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
    animation: fade-up 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.2s; }
.stagger-4 { animation-delay: 0.28s; }

/* ── FAQ accordion ── */
.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ── Copy button pulse ── */
@keyframes copy-flash {
    0%, 100% { background-color: #3f6212; }
    50%       { background-color: #4d7c0f; }
}

.copy-success { animation: copy-flash 0.4s ease; }

/* ── Editorial prose (blog / static pages) ── */
.prose-editorial {
    color: var(--color-ink-muted);
    line-height: 1.85;
    font-size: 1rem;
}

.prose-editorial h1,
.prose-editorial h2,
.prose-editorial h3 {
    color: var(--color-ink);
    font-weight: 800;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.prose-editorial h1 { font-size: 2rem; margin-top: 0; }
.prose-editorial h2 { font-size: 1.5rem; }
.prose-editorial h3 { font-size: 1.2rem; }

.prose-editorial p { margin-bottom: 1.25em; }

.prose-editorial a {
    color: var(--color-rust);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose-editorial a:hover { color: var(--color-rust-deep); }

.prose-editorial ul,
.prose-editorial ol {
    margin-bottom: 1.25em;
    padding-right: 1.5em;
}

.prose-editorial li { margin-bottom: 0.4em; }

.prose-editorial code {
    font-family: ui-monospace, monospace;
    font-size: 0.875em;
    background: var(--color-paper-deep);
    border: 1px solid var(--color-line);
    border-radius: 0.375rem;
    padding: 0.15em 0.45em;
    color: var(--color-ink);
}

.prose-editorial blockquote {
    border-right: 4px solid var(--color-rust);
    padding-right: 1.25rem;
    margin: 1.5em 0;
    color: var(--color-ink);
    font-style: normal;
}

/* ── Blog card ── */
.blog-card {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-rust);
}
