/* css/main.css */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #0b1121; /* Koyu Arka Plan */
    --bg-panel: #151e32; /* Panel Arka Planı */
    --bg-card: #1c263c; /* Kart Arka Planı */
    --primary-blue: #3b82f6; /* Opss/Itemsatis Mavi */
    --primary-hover: #2563eb;
    --accent-color: #f97316; /* Dikkat çekici turuncu (İndirim vs) */
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #2e3c54;
    --danger: #ef4444;
    --success: #10b981;
    --glass-bg: rgba(21, 30, 50, 0.85);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--text-main);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ================= HEADER ================= */
.top-bar {
    background: #060b14;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar-links a {
    color: var(--text-muted);
    margin-left: 15px;
}
.top-bar-links a:hover {
    color: var(--primary-blue);
}

.main-header {
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 85px;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-blue);
}

/* Search Bar */
.search-container {
    flex: 1;
    max-width: 500px;
    margin: 0 40px;
    position: relative;
}
.search-container input {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 25px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    transition: border-color 0.3s;
}
.search-container input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
}
.search-container button {
    position: absolute;
    right: 5px;
    top: 5px;
    bottom: 5px;
    background: var(--primary-blue);
    border: none;
    color: #fff;
    padding: 0 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s;
}
.search-container button:hover {
    background: var(--primary-hover);
}

.user-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

/* Kategori Menüsü (Sub Header) */
.category-nav {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}
.category-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 25px;
    padding: 15px 0;
}
.category-nav a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}
.category-nav a:hover, .category-nav a.active {
    color: var(--primary-blue);
}

/* ================= BUTTONS ================= */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-wallet {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}
.btn-wallet:hover {
    background: var(--success);
    color: #fff;
}

/* ================= CARDS / PRODUCTS ================= */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 20px;
}
.section-header h2 {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-header h2 i {
    color: var(--primary-blue);
}

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

.product-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.product-image {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-cat {
    font-size: 11px;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.product-price {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.product-price span {
    font-size: 12px;
    color: var(--text-muted);
}

/* ================= FOOTER ================= */
.footer {
    background: #060b14;
    padding: 60px 0 30px;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
}

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

.footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 600;
}

.footer-col ul {
    list-style: none;
}

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

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover {
    color: var(--primary-blue);
    padding-left: 5px;
}

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

/* Forms (Login/Register) */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
    outline: none;
}
