/*
 * Sanal Maket Theme — Main Stylesheet
 * assets/css/main.css
 */

:root {
    --orange: #f97316;
    --orange-dim: rgba(249, 115, 22, 0.15);
    --bg: #080808;
    --glass: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    color: #fff;
    overflow-x: hidden;
    font-family: 'DM Sans', sans-serif;
}

h1, h2, h3, h4, h5 { font-family: 'Syne', sans-serif; }

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    opacity: 0.4;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #f97316; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(400%); } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(249, 115, 22, 0.3); }
    50% { box-shadow: 0 0 40px rgba(249, 115, 22, 0.6), 0 0 80px rgba(249, 115, 22, 0.2); }
}

.animate-pulse-custom { animation: pulse 2s ease-in-out infinite; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-scan { animation: scan 3s linear infinite; }
.animate-fadein { animation: fadeIn 0.4s ease forwards; }
.animate-glow { animation: glow-pulse 2s ease-in-out infinite; }

.animate-pulse { animation: pulse 2s ease-in-out infinite; }

.hover-scale { transition: transform 0.5s ease, border-color 0.5s ease; }
.hover-scale:hover { transform: scale(1.02); }

.filter-pill { transition: all 0.2s ease; cursor: pointer; }
.filter-pill.active {
    background: rgba(249, 115, 22, 0.2) !important;
    border-color: rgba(249, 115, 22, 0.6) !important;
    color: #f97316 !important;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.accordion-content.open { max-height: 500px; }
.chevron-icon { transition: transform 0.35s ease; }
.chevron-icon.rotated { transform: rotate(180deg); }

.sky-day {
    background: linear-gradient(180deg, #1a3a5c 0%, #2d5986 40%, #4a7fb5 70%, #8fb8d8 100%);
}
.sky-night {
    background: linear-gradient(180deg, #020408 0%, #050d1a 40%, #0a1628 70%, #0f1e35 100%);
}

.scanline-wrap { overflow: hidden; position: absolute; inset: 0; pointer-events: none; }
.scanline {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.4), transparent);
    position: absolute;
    width: 100%;
    left: 0;
}

/* ── Three.js Scene ── */
#css3d-scene {
    position: absolute;
    inset: 0;
    top: 36px;
    overflow: hidden;
    background: linear-gradient(160deg, #0a0805 0%, #0d0b07 60%, #080604 100%);
    transition: background 1.2s ease;
}

#proje01-canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ── P01 Sidebar ── */
#p01-sidebar {
    position: absolute;
    left: 10px;
    top: 10px;
    bottom: 10px;
    width: 170px;
    background: rgba(8, 6, 4, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 9px;
    overflow-y: auto;
    z-index: 22;
    font-family: 'DM Mono', monospace;
}

#p01-sidebar::-webkit-scrollbar { width: 2px; }
#p01-sidebar::-webkit-scrollbar-thumb { background: rgba(249, 115, 22, 0.3); border-radius: 2px; }

.p01-logo { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 11px; color: #f97316; letter-spacing: 0.05em; }
.p01-logo span { color: rgba(255, 255, 255, 0.28); font-weight: 400; }
.p01-divider { height: 1px; background: rgba(255, 255, 255, 0.06); flex-shrink: 0; }
.p01-sec-label { font-size: 8px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.22); }
.p01-pills { display: flex; flex-wrap: wrap; gap: 3px; }
.p01-pill {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 20px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.45);
    transition: all 0.15s;
    white-space: nowrap;
    font-family: 'DM Mono', monospace;
}
.p01-pill:hover { border-color: rgba(249, 115, 22, 0.35); color: rgba(255, 255, 255, 0.75); }
.p01-pill.active { background: rgba(249, 115, 22, 0.16); border-color: rgba(249, 115, 22, 0.55); color: #f97316; }
.p01-stat-row { display: flex; justify-content: space-between; align-items: center; font-size: 9px; }
.p01-stat-row span:first-child { color: rgba(255, 255, 255, 0.3); }
.p01-stat-val-g { color: #34d399; font-weight: 600; }
.p01-stat-val-o { color: #f97316; font-weight: 600; }
.p01-stat-val-w { color: #fff; font-weight: 600; }

#p01-top-bar {
    position: absolute;
    top: 10px;
    left: 188px;
    right: 183px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 22;
    pointer-events: none;
}

.p01-tag {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.45);
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Mono', monospace;
}

.p01-dot-live {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s ease infinite;
}

#p01-info-panel {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 165px;
    background: rgba(8, 6, 4, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    overflow: hidden;
    z-index: 22;
    opacity: 0;
    transform: translateX(8px);
    transition: all 0.2s ease;
    font-family: 'DM Mono', monospace;
}

#p01-info-panel.show { opacity: 1; transform: translateX(0); }

.p01-panel-head {
    padding: 9px 11px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.p01-badge { font-size: 8px; padding: 2px 7px; border-radius: 20px; border: 1px solid; }
.p01-badge-avail { color: #34d399; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.3); }
.p01-badge-sold { color: #f97316; background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.3); }

.p01-panel-close {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.p01-panel-close:hover { background: rgba(249, 115, 22, 0.15); border-color: rgba(249, 115, 22, 0.35); color: #f97316; }

.p01-panel-body { padding: 10px 11px; display: flex; flex-direction: column; gap: 8px; }
.p01-panel-id { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: #fff; }
.p01-panel-type { font-size: 9px; color: rgba(255, 255, 255, 0.38); }
.p01-panel-row { display: flex; justify-content: space-between; font-size: 9px; }
.p01-panel-row span:first-child { color: rgba(255, 255, 255, 0.3); }
.p01-price-label { font-size: 8px; color: rgba(255, 255, 255, 0.22); margin-bottom: 2px; }
.p01-price { font-family: 'Syne', sans-serif; font-size: 18px; color: #f97316; font-weight: 700; }

.p01-btn-primary {
    padding: 6px;
    border-radius: 7px;
    background: #f97316;
    color: #fff;
    font-size: 9px;
    border: none;
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    transition: background 0.15s;
    width: 100%;
}
.p01-btn-primary:hover { background: #ea6c10; }

.p01-btn-secondary {
    padding: 6px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.55);
    font-size: 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-family: 'DM Mono', monospace;
    transition: all 0.15s;
    width: 100%;
}
.p01-btn-secondary:hover { border-color: rgba(249, 115, 22, 0.35); color: #fff; }

#p01-tip {
    position: absolute;
    pointer-events: none;
    z-index: 50;
    background: rgba(5, 3, 1, 0.97);
    border: 1px solid rgba(249, 115, 22, 0.45);
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 120px;
    opacity: 0;
    transition: opacity 0.15s;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
}

#p01-bottom-bar {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 20px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.4);
    white-space: nowrap;
    z-index: 22;
    pointer-events: none;
    font-family: 'DM Mono', monospace;
}

#p01-bottom-bar .sep { color: rgba(255, 255, 255, 0.15); }

.sm-nav-item a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
}
.sm-nav-item a:hover,
.sm-nav-item.current-menu-item a { color: #f97316; }

.sm-mobile-nav-item a {
    display: block;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    transition: all 0.2s;
    text-decoration: none;
}
.sm-mobile-nav-item a:hover { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.sm-mobile-nav-item.current-menu-item a { color: #f97316; }

.sm-footer-nav-item a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
}
.sm-footer-nav-item a:hover { color: #f97316; }

/* ── Form states ── */
#form-message.success {
    display: block !important;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #34d399;
}
#form-message.error {
    display: block !important;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

@media (max-width: 768px) {
    #p01-sidebar { display: none; }
    #p01-top-bar { left: 10px; }
    #p01-info-panel { width: 140px; }
    #p01-bottom-bar { font-size: 8px; padding: 4px 10px; }
}
