/* ================================================================
   AV Market Bio — "Control Room" Aesthetic
   Dark theme inspired by professional AV mixing consoles,
   rack-mounted equipment, and signal flow indicators.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=Martian+Mono:wght@300;400;500&display=swap');

:root {
    --surface-0: #050506;
    --surface-1: #0c0c0e;
    --surface-2: #131316;
    --surface-3: #1a1a1f;
    --surface-4: #222228;
    --border: #2a2a32;
    --border-hover: #3a3a44;
    --text-primary: #e8e6e3;
    --text-secondary: #8a8890;
    --text-muted: #55535a;
    --signal: #f5c518;
    --signal-dim: rgba(245, 197, 24, 0.08);
    --signal-glow: rgba(245, 197, 24, 0.25);
    --signal-hot: #ffda44;
    --red: #e84057;
    --green: #34d399;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Martian Mono', monospace;
    --radius: 6px;
    --radius-lg: 10px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-mono);
    font-weight: 400;
    font-size: 13px;
    background: var(--surface-0);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* Suptilna grain tekstura preko svega */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    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)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::selection {
    background: var(--signal);
    color: var(--surface-0);
}

/* ========== HEADER ========== */
.bio-header {
    position: relative;
    padding: 2.5rem 1.5rem 2rem;
    text-align: center;
    background: var(--surface-1);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

/* Grid pattern pozadina */
.bio-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black, transparent);
}

.bio-header > * {
    position: relative;
    z-index: 1;
}

.bio-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bio-logo-icon {
    width: 44px;
    height: 44px;
    background: var(--signal);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--surface-0);
    letter-spacing: -1px;
    box-shadow: 0 0 20px var(--signal-glow), 0 0 60px rgba(245, 197, 24, 0.1);
    transition: box-shadow 0.4s var(--ease);
}

.bio-logo:hover .bio-logo-icon {
    box-shadow: 0 0 30px var(--signal-glow), 0 0 80px rgba(245, 197, 24, 0.15);
}

.bio-logo-text {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.bio-tagline {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1.25rem;
}

.bio-cta-main {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--signal);
    text-decoration: none;
    padding: 0.55rem 1.5rem;
    border: 1px solid var(--signal);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s var(--ease);
}

.bio-cta-main:hover {
    background: var(--signal);
    color: var(--surface-0);
    box-shadow: 0 0 30px var(--signal-glow);
}

/* ========== SOCIAL ICONS ========== */
.bio-socials {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.bio-social-link {
    width: 34px;
    height: 34px;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s var(--ease);
}

.bio-social-link:hover {
    border-color: var(--signal);
    color: var(--signal);
    background: var(--signal-dim);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.1);
}

.bio-social-link svg {
    width: 15px;
    height: 15px;
}

/* ========== SIGNAL DIVIDER ========== */
.bio-signal-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    max-width: 960px;
    margin: 0 auto;
}

.bio-signal-line::before,
.bio-signal-line::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.bio-signal-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
    box-shadow: 0 0 8px var(--signal-glow);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--signal-glow); }
    50% { opacity: 0.5; box-shadow: 0 0 4px var(--signal-glow); }
}

/* ========== FEED ========== */
.bio-feed {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1rem 2rem;
}

.bio-feed-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 0 0.75rem;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    font-weight: 500;
}

.bio-feed-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.bio-feed-count {
    color: var(--signal);
    font-weight: 500;
}

/* ========== GRID ========== */
.bio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

/* ========== CARD ========== */
.bio-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s var(--ease);
    opacity: 0;
    animation: card-in 0.5s var(--ease) forwards;
}

.bio-card:nth-child(1) { animation-delay: 0.05s; }
.bio-card:nth-child(2) { animation-delay: 0.1s; }
.bio-card:nth-child(3) { animation-delay: 0.15s; }
.bio-card:nth-child(4) { animation-delay: 0.2s; }
.bio-card:nth-child(5) { animation-delay: 0.25s; }
.bio-card:nth-child(6) { animation-delay: 0.3s; }
.bio-card:nth-child(n+7) { animation-delay: 0.35s; }

@keyframes card-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bio-card:hover {
    border-color: var(--border-hover);
    background: var(--surface-3);
    box-shadow: 0 0 0 1px var(--border-hover), 0 8px 32px rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

/* Signal indikator — vertikalna linija levo */
.bio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    z-index: 2;
    opacity: 0.6;
    transition: opacity 0.3s;
}

.bio-card:hover::before {
    opacity: 1;
}

.bio-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-1);
    overflow: hidden;
}

.bio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
    transition: transform 0.5s var(--ease);
}

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

.bio-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.15;
}

.bio-card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.2rem 0.5rem;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--surface-0);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.bio-card-body {
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bio-card-title {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bio-card-excerpt {
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bio-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border);
}

.bio-card-cta {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--signal);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: gap 0.3s var(--ease);
}

.bio-card:hover .bio-card-cta {
    gap: 0.6rem;
}

.bio-card-cta::after {
    content: '\2192';
    transition: transform 0.3s var(--ease);
}

.bio-card:hover .bio-card-cta::after {
    transform: translateX(3px);
}

.bio-card-id {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ========== POST DETALJ ========== */
.bio-post {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem;
}

.bio-post-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 1rem;
    padding: 0.4rem 0;
    transition: color 0.3s;
}

.bio-post-back:hover {
    color: var(--signal);
}

.bio-post-content {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    animation: card-in 0.4s var(--ease) forwards;
}

.bio-post-images {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px;
    background: var(--border);
}

.bio-post-images img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: var(--surface-1);
    padding: 1rem;
}

.bio-post-body {
    padding: 1.5rem;
}

.bio-post-pillar {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 2px;
    color: var(--surface-0);
}

.bio-post-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.bio-post-text {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-line;
    margin-bottom: 1rem;
}

.bio-post-hashtags {
    font-size: 0.7rem;
    color: var(--signal);
    opacity: 0.7;
    margin-bottom: 1rem;
    font-weight: 300;
}

/* Proizvodi kao equipment manifest */
.bio-post-products {
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
    margin-top: 1rem;
}

.bio-post-products h3 {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.bio-product-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: var(--radius);
    background: var(--surface-1);
    border: 1px solid var(--border);
    margin-bottom: 0.5rem;
    transition: border-color 0.3s;
}

.bio-product-item:hover {
    border-color: var(--border-hover);
}

.bio-product-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: var(--surface-0);
    flex-shrink: 0;
    padding: 4px;
}

.bio-product-info {
    flex: 1;
    min-width: 0;
}

.bio-product-name {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.bio-product-price {
    font-size: 0.7rem;
    color: var(--signal);
    font-weight: 400;
}

/* CTA dugme */
.bio-post-cta {
    display: block;
    text-align: center;
    background: var(--signal);
    color: var(--surface-0);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-weight: 500;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 1.5rem;
    transition: all 0.3s var(--ease);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.15);
}

.bio-post-cta:hover {
    background: var(--signal-hot);
    box-shadow: 0 0 40px var(--signal-glow);
    transform: translateY(-1px);
}

.bio-share {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.bio-share-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 0.45rem 1rem;
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-muted);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

.bio-share-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.bio-footer {
    text-align: center;
    padding: 2rem 1rem;
    border-top: 1px solid var(--border);
    margin-top: 1rem;
}

.bio-footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.75rem;
}

.bio-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: color 0.3s;
}

.bio-footer-links a:hover {
    color: var(--signal);
}

.bio-footer-copy {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 300;
    opacity: 0.5;
}

/* ========== EMPTY STATE ========== */
.bio-empty {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.bio-empty-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.bio-empty p {
    font-size: 0.75rem;
    letter-spacing: 1px;
}

/* ========== RESPONSIVE ========== */
@media (min-width: 480px) {
    .bio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .bio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bio-header {
        padding: 3rem 1.5rem 2.5rem;
    }

    .bio-feed {
        padding: 1rem 1.5rem 2.5rem;
    }

    .bio-post-title {
        font-size: 1.75rem;
    }

    .bio-card-image {
        aspect-ratio: 1 / 1;
    }
}
