/* ═══════════════════════════════════════════════════
   Noire et Psy — Custom CSS
   ═══════════════════════════════════════════════════ */

/* ── Base ─────────────────────────────────────────── */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: #f8f7fa;
    color: #333;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Lora', Georgia, serif;
}

/* Fix Bootstrap/Tailwind conflicts */
.btn {
    font-family: 'Inter', system-ui, sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

/* ── Scroll Animations ────────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Category Cards (with real images) ────────────── */
.category-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 3/2;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(61, 139, 55, 0.15);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category-card:hover img {
    transform: scale(1.08);
}

.category-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
}

.category-card .overlay h3 {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.category-card .overlay .icon-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #3d8b37;
}

/* ── Blog Cards ───────────────────────────────────── */
.blog-card {
    border-radius: 1rem;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-body {
    padding: 1.25rem;
}

/* ── Book Cards ───────────────────────────────────── */
.book-card {
    text-align: center;
    padding: 1.5rem;
}

.book-card img {
    max-height: 320px;
    width: auto;
    margin: 0 auto;
    border-radius: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.book-card:hover img {
    transform: scale(1.03);
}

.amazon-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF9900;
    color: #111;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    font-size: 0.9rem;
}

.amazon-btn:hover {
    background: #e68a00;
    transform: translateY(-2px);
    color: #111;
}

.amazon-btn img,
.amazon-btn svg,
.amazon-icon-img {
    height: 20px;
    width: auto;
    flex-shrink: 0;
}

/* ── Prose (Blog Content) ─────────────────────────── */
.prose p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.prose h2 {
    font-family: 'Lora', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1a1a2e;
}

.prose h3 {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: #1a1a2e;
}

.prose ul,
.prose ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.prose li {
    margin-bottom: 0.5rem;
}

.prose blockquote {
    border-left: 4px solid #3d8b37;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    background: #f0eef5;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
}

.prose img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
}

/* ── Share Sidebar ────────────────────────────────── */
.share-sidebar {
    position: fixed;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 40;
}

.share-sidebar a,
.share-sidebar button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
}

.share-sidebar a:hover,
.share-sidebar button:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ── Toast ─────────────────────────────────────────── */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.85rem 1.5rem;
    border-radius: 0.75rem;
    color: #fff;
    font-weight: 500;
    font-size: 0.9rem;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-notification.success {
    background: #3d8b37;
}

.toast-notification.error {
    background: #dc2626;
}

.toast-notification.info {
    background: #333;
}

/* ── YouTube Marquee ──────────────────────────────── */
.yt-marquee-container {
    mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.yt-marquee-track {
    will-change: transform;
}

/* ── Turnstile widget centering ───────────────────── */
.cf-turnstile {
    display: flex;
    justify-content: center;
}

/* ── Contact Form ─────────────────────────────────── */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: #3d8b37;
    box-shadow: 0 0 0 3px rgba(61, 139, 55, 0.15);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ── Mobile Share Bar ─────────────────────────────── */
@media (max-width: 768px) {
    .share-sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        transform: none;
        flex-direction: row;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(8px);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    .share-sidebar a,
    .share-sidebar button {
        width: 2.5rem;
        height: 2.5rem;
    }
}

/* ── Line Clamp ───────────────────────────────────── */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Hero Gradient ────────────────────────────────── */
.hero-gradient {
    background: linear-gradient(135deg, #f0eef5 0%, #e8f5e9 50%, #f8f7fa 100%);
}