/* 
   Premium Dark Theme CSS
   VoxelForge 3D Store 
*/

:root {
    --bg-dark: #0a0a0c;
    --bg-card: #151518;
    --bg-card-hover: #1e1e24;
    
    --primary-color: #ff5500;
    --primary-color-hover: #ff7733;
    
    --secondary-color: #00e5ff;
    
    --text-main: #f5f5f7;
    --text-muted: #a1a1aa;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(21, 21, 24, 0.7);
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

:root[data-theme="light"] {
    --bg-dark: #f4f6fb;
    --bg-card: #ffffff;
    --bg-card-hover: #eef2ff;
    --primary-color: #e65100;
    --primary-color-hover: #f57c00;
    --secondary-color: #0066ff;
    --text-main: #1f2937;
    --text-muted: #5b6472;
    --border-color: rgba(17, 24, 39, 0.14);
    --glass-bg: rgba(255, 255, 255, 0.82);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mağaza yüzü: scrollbar gizli — kaydırma (tekerlek/dokunma) çalışır. Admin: html.admin-app + admin-scrollbars.css */
html:not(.admin-app) {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:not(.admin-app)::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html:not(.admin-app) body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:not(.admin-app) body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html:not(.admin-app) * {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html:not(.admin-app) *::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

input, select, textarea, button {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Typography elements */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-color);
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 85, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 6px 20px rgba(255, 85, 0, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.btn-full {
    width: 100%;
}

/* Modern form controls */
.form-control,
#globalSearch,
#catalogMinPrice,
#catalogMaxPrice,
#catalogCategory,
#catalogSort {
    background: linear-gradient(180deg, #1a1b22 0%, #12141a 100%) !important;
    color: var(--text-main) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: var(--transition);
}

.form-control::placeholder,
#globalSearch::placeholder,
#catalogMinPrice::placeholder,
#catalogMaxPrice::placeholder {
    color: #8c93a3;
}
:root[data-theme="light"] .form-control,
:root[data-theme="light"] #globalSearch,
:root[data-theme="light"] #catalogMinPrice,
:root[data-theme="light"] #catalogMaxPrice,
:root[data-theme="light"] #catalogCategory,
:root[data-theme="light"] #catalogSort {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(17, 24, 39, 0.2) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 4px 14px rgba(17, 24, 39, 0.08);
}
:root[data-theme="light"] .form-control::placeholder,
:root[data-theme="light"] #globalSearch::placeholder,
:root[data-theme="light"] #catalogMinPrice::placeholder,
:root[data-theme="light"] #catalogMaxPrice::placeholder {
    color: #6b7280;
}
:root[data-theme="light"] select.form-control option,
:root[data-theme="light"] #catalogCategory option,
:root[data-theme="light"] #catalogSort option {
    background: #ffffff;
    color: #1f2937;
}

.form-control:focus,
#globalSearch:focus,
#catalogMinPrice:focus,
#catalogMaxPrice:focus,
#catalogCategory:focus,
#catalogSort:focus {
    outline: none;
    border-color: rgba(0, 229, 255, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.26);
}

select.form-control,
#catalogCategory,
#catalogSort {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

select.form-control option,
#catalogCategory option,
#catalogSort option {
    background: #12141a;
    color: #f5f5f7;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 16px 0;
}

.navbar .container {
    width: 95%;
    max-width: 100%;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    row-gap: 10px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Sep3D — sepet + üç boyut: üst yüzey (3D), gövde çizgileri (sepet) */
.brand-mark {
    width: 1.42em;
    height: 1.42em;
    flex-shrink: 0;
    color: var(--text-main);
}

.brand-mark-roof {
    fill: var(--primary-color);
    opacity: 0.96;
}

.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    letter-spacing: -0.04em;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.brand-wordmark .bw-sep {
    color: var(--text-main);
}

.brand-wordmark .bw-3d {
    color: var(--primary-color);
}

.brand-admin-suffix {
    margin-left: 0.4rem;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 0.68em;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cart-icon {
    position: relative;
    font-size: 1.4rem;
    cursor: pointer;
    transition: var(--transition);
}

.cart-icon:hover {
    color: var(--primary-color);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}

.glow-bg {
    position: absolute;
    top: 20%;
    left: 20%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(255,85,0,0.15) 0%, rgba(10,10,12,0) 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    max-width: 650px;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* Products Section */
.products-section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-title p {
    color: var(--text-muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 85, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.product-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to top, rgba(10,10,12,1) 0%, rgba(10,10,12,0) 100%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    transition: var(--transition);
}

.product-card:hover .product-overlay {
    bottom: 0;
}

.add-to-cart-btn {
    background: rgba(25, 25, 30, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
}

.product-info {
    padding: 20px;
}

.product-info .category {
    font-size: 0.8rem;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.product-info .price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Features Box */
.features-section {
    padding: 60px 0 100px;
    border-top: 1px solid var(--border-color);
}

.feature-flex {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    text-align: center;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.feature-box h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.feature-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Sidebar Cart */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1050;
    box-shadow: -5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 100%;
}

.cart-sidebar.active {
    right: 0;
}

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(3px);
    z-index: 1040;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cart-overlay.active {
    display: block;
    opacity: 1;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s;
}

.close-cart:hover {
    color: var(--primary-color);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-muted);
    margin-top: 50px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.cart-item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 800;
}

.remove-item {
    background: transparent;
    border: none;
    color: #ff3333;
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0,0,0,0.2);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

/* Footer */
footer {
    background-color: var(--bg-card);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    font-size: 0.9rem;
}

.footer-links h4, .footer-social h4 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}
ul.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
}

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

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 14px;
    align-items: center;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border-radius: 50%;
    color: var(--text-main);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}
.theme-toggle-fixed {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 10050;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main);
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    transition: var(--transition);
}
.theme-toggle-fixed:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.theme-toggle-fixed i {
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .theme-toggle-fixed {
        right: 12px;
        bottom: 12px;
        padding: 9px 12px;
        font-size: 0.82rem;
    }
}
.footer-social {
    display: flex;
    flex-direction: column;
}
.footer-social ul.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Yasal / politika sayfaları (ortak) */
.legal-wrap .legal-box ul {
    margin: 10px 0 18px;
    padding-left: 22px;
}
.legal-wrap .legal-box li {
    margin-bottom: 8px;
}
.legal-wrap .legal-meta {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: -6px 0 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.6;
}
.footer-legal li {
    margin-bottom: 7px;
    font-size: 0.88rem;
    line-height: 1.35;
}

/* Main Sidebar */
.main-sidebar {
    position: fixed;
    top: 0;
    left: -350px;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-card);
    z-index: 1050;
    box-shadow: 5px 0 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    transition: left 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    max-width: 100%;
}

.main-sidebar.active {
    left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
    flex: 1;
    overflow-y: auto;
}

.sidebar-menu li a {
    display: block;
    padding: 15px 25px;
    font-size: 1.1rem;
    color: var(--text-main);
    border-left: 4px solid transparent;
}

.sidebar-menu li a:hover {
    background: rgba(255,85,0,0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-menu li a i {
    width: 30px;
    text-align: center;
    color: var(--primary-color);
}

.sidebar-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-list {
    background: rgba(0,0,0,0.2);
    margin: 5px 15px;
    border-radius: 8px;
    padding: 10px 0;
}
.cat-list a {
    padding: 10px 25px !important;
    font-size: 0.95rem !important;
}
.cat-list a i {
    font-size: 0.5rem;
    vertical-align: middle;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .nav-links {
        display: none; /* simple mobile adaptation */
    }
    .hero-buttons {
        flex-direction: column;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 30px;
    left: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 99999;
}
.voxel-toast {
    background: rgba(20, 20, 23, 0.95);
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    padding: 15px 25px;
    border-radius: 8px;
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(-120%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.voxel-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.voxel-toast.error {
    border-left-color: #ff3333;
}
.voxel-toast.error i {
    color: #ff3333;
}
.voxel-toast.success i {
    color: #2ecc71;
}
.voxel-toast i {
    font-size: 1.2rem;
}
