/* WTB.land - Custom styles (Tailwind handles layout & utilities) */

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
.icon-filled { font-variation-settings: 'FILL' 1; }

body { font-family: 'Plus Jakarta Sans', sans-serif; }
a { text-decoration: none; color: inherit; }

/* Loading */
.loading-spinner {
    width: 40px; height: 40px;
    border: 3px solid #e0e3e5;
    border-top-color: #00685f;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dot grid hero bg */
.dot-grid {
    background-image: radial-gradient(#006a61 1px, transparent 1px);
    background-size: 24px 24px;
}

/* Card hover */
.card-hover { transition: all 0.3s ease; }
.card-hover:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-3px);
    border-color: rgba(0, 104, 95, 0.2);
}

/* Diffusion shadow */
.diffusion-shadow { box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.06); }

/* Heart */
.heart-bounce:active { transform: scale(1.3); transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.heart-fill { font-variation-settings: 'FILL' 1; color: #ef4444 !important; }

/* Scrollbar */
.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #bcc9c6; border-radius: 10px; }

/* Toast */
@keyframes slideInRight { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-anim { animation: slideInRight 0.3s ease; }

/* Image preview */
.img-preview { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; position: relative; border: 1px solid #bcc9c6; }
.img-preview img { width: 100%; height: 100%; object-fit: cover; }
.img-preview .remove-img {
    position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.6); color: white;
    border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 12px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

/* Auth visibility */
.auth-only, .auth-only-inline, .auth-only-block { display: none !important; }
body.logged-in .auth-only { display: flex !important; }
body.logged-in .auth-only-inline { display: inline-flex !important; }
body.logged-in .auth-only-block { display: block !important; }
body.logged-in .guest-only { display: none !important; }

/* Focus states */
input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: #00685f !important;
    box-shadow: 0 0 0 3px rgba(0, 104, 95, 0.15) !important;
}

/* Condition button active state */
.cond-btn.active { background: white; color: #00685f; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }

/* ── Custom Select Dropdowns ── */
.csel { position: relative; }
.csel-trigger {
    display: flex; align-items: center; justify-content: space-between; gap: 4px;
    width: 100%; padding: 9px 12px; border-radius: 12px;
    background: #f2f4f6; border: 1.5px solid transparent;
    font-size: 13px; font-weight: 500; color: #191c1e;
    cursor: pointer; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit; text-align: left;
    white-space: nowrap; overflow: hidden;
}
.csel-trigger:hover { border-color: #bcc9c6; background: #eceef0; }
.csel.open .csel-trigger {
    border-color: #00685f;
    box-shadow: 0 0 0 3px rgba(0, 104, 95, 0.1);
    background: #fff;
}
.csel-label { overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.csel-chevron {
    font-size: 20px; color: #576462; flex-shrink: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
}
.csel.open .csel-chevron { transform: rotate(180deg); color: #00685f; }

.csel-menu {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    background: #fff; border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 60; overflow: hidden;
    opacity: 0; transform: translateY(-8px) scaleY(0.96);
    transform-origin: top center;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.csel.open .csel-menu {
    opacity: 1; transform: translateY(0) scaleY(1);
    pointer-events: auto;
}
.csel-scroll {
    max-height: 300px; overflow-y: auto; padding: 5px;
    scrollbar-width: thin; scrollbar-color: #bcc9c6 transparent;
}
.csel-scroll::-webkit-scrollbar { width: 4px; }
.csel-scroll::-webkit-scrollbar-track { background: transparent; }
.csel-scroll::-webkit-scrollbar-thumb { background: #bcc9c6; border-radius: 4px; }

.csel-opt {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px; border-radius: 9px; cursor: pointer;
    font-size: 13px; color: #3d4947; gap: 6px;
    transition: background 0.12s, color 0.12s;
    user-select: none;
}
.csel-opt:hover { background: #f0fdfa; color: #00685f; }
.csel-opt.sel { color: #00685f; font-weight: 600; background: #f0fdfa; }
.csel-opt .ci {
    font-size: 16px; color: #00685f;
    opacity: 0; transform: scale(0.5);
    transition: opacity 0.15s, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
}
.csel-opt.sel .ci { opacity: 1; transform: scale(1); }
.csel-opt .oi { font-size: 18px; flex-shrink: 0; }
.csel-opt .oc {
    font-size: 10px; color: #576462; background: #eceef0;
    padding: 1px 6px; border-radius: 6px; font-weight: 600;
    line-height: 1.5;
}

/* Static page content */
#static-page-rendered h1 { font-size: 2rem; font-weight: 800; color: #191c1e; margin: 0 0 1rem; line-height: 1.2; }
#static-page-rendered h2 { font-size: 1.35rem; font-weight: 700; color: #191c1e; margin: 2rem 0 0.75rem; }
#static-page-rendered h3 { font-size: 1.1rem; font-weight: 600; color: #191c1e; margin: 1.5rem 0 0.5rem; }
#static-page-rendered p { color: #475569; margin: 0 0 1rem; }
#static-page-rendered ul, #static-page-rendered ol { color: #475569; padding-left: 1.5rem; margin: 0 0 1rem; }
#static-page-rendered li { margin-bottom: 0.4rem; }
#static-page-rendered strong { color: #191c1e; }

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #78909c;
    padding: 16px 0 0;
    flex-wrap: wrap;
}
.breadcrumbs a {
    color: #78909c;
    transition: color 0.15s;
}
.breadcrumbs a:hover {
    color: #00685f;
}
.breadcrumbs .bc-sep {
    color: #b0bec5;
    font-size: 11px;
    user-select: none;
}
.breadcrumbs .bc-current {
    color: #455a64;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
}
