/* bas.niyazi.cv — Light, clean, warm */
:root {
    --bg: #faf9f6;
    --surface: #ffffff;
    --text: #1a1a2e;
    --text-muted: #6c6c80;
    --primary: #e85d4a;
    --primary-hover: #d44a37;
    --border: #e8e6e0;
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-sm: 8px;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Nav */
.navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text);
}
.nav-logo span { color: var(--primary); }
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}
.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.lang-switch {
    background: var(--border);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px;
    flex: 1;
}
.section { margin-bottom: 48px; }
.section.narrow { max-width: 480px; margin: 0 auto 48px; }
.section.center { text-align: center; }

/* Hero */
.hero {
    text-align: center;
    padding: 80px 24px;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
    border-radius: var(--radius);
    margin-bottom: 48px;
}
.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}
.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid var(--text); color: var(--text); }
.btn-full { width: 100%; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; }
.btn-danger { color: #c0392b; border-color: #e74c3c; }
.btn-danger:hover { background: #e74c3c; color: white; }

/* Design grid */
.design-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.design-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.design-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.design-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f5f5f5;
}
.design-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.design-info { padding: 16px; }
.design-info h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.design-creator { font-size: 0.85rem; color: var(--text-muted); }
.design-price { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-top: 8px; }

/* Design detail */
.design-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}
.design-detail-image {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.design-detail-image img { width: 100%; display: block; }
.design-detail-info h1 { font-size: 1.8rem; margin-bottom: 8px; }
.design-creator-link { color: var(--text-muted); margin-bottom: 24px; }
.design-creator-link a { color: var(--primary); text-decoration: none; }

.price-breakdown {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin-bottom: 24px;
}
.price-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.price-row:last-child { border-bottom: none; }
.price-total { font-weight: 700; font-size: 1.1rem; }

.order-form { margin-bottom: 24px; }
.design-description h3 { margin-bottom: 8px; }
.muted { color: var(--text-muted); font-size: 0.9rem; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 500; font-size: 0.9rem; }
.form-row input, .form-row select, .form-row textarea {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.form-row textarea { resize: vertical; }

/* Cart */
.cart-list { display: flex; flex-direction: column; gap: 16px; }
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}
.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.cart-item-info { flex: 1; }
.cart-item-info h3 { font-size: 1rem; }
.cart-item-price { font-weight: 600; color: var(--primary); }
.cart-summary {
    margin-top: 24px;
    text-align: right;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.3rem;
    font-weight: 700;
    padding: 16px 0;
    border-top: 1px solid var(--border);
    margin-bottom: 16px;
}
.cod-notice {
    background: #fff8e7;
    border: 1px solid #f0d878;
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    font-weight: 500;
}

/* Orders */
.order-list { display: flex; flex-direction: column; gap: 16px; }
.order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.order-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    flex-wrap: wrap;
}
.order-id { font-weight: 700; }
.order-total { font-weight: 600; color: var(--primary); }
.order-date { color: var(--text-muted); font-size: 0.9rem; }
.order-items { flex: 100%; }
.order-item-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    font-size: 0.9rem;
}
.order-item-img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: cover;
}

/* Status badges */
.order-status {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
}
.status-pending { background: #fff3cd; color: #856404; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #cce5ff; color: #004085; }
.status-delivered { background: #d4edda; color: #155724; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-paid { background: #d4edda; color: #155724; }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
}
.badge-active { background: #d4edda; color: #155724; }
.badge-inactive { background: #e9ecef; color: #6c757d; }

/* Stats */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    text-align: center;
}
.stat-label { display: block; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 4px; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 24px;
}
.tab-btn {
    padding: 12px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    font-family: inherit;
    font-size: 0.95rem;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Table */
.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--surface);
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
}
.table th, .table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}
.table th { background: #f8f7f4; font-weight: 600; }
.table tr:last-child td { border-bottom: none; }

/* Design card manage */
.design-card-manage {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.design-card-manage img { width: 100%; aspect-ratio: 2; object-fit: cover; }
.design-card-manage-info { padding: 16px; }
.design-card-manage-info h3 { font-size: 1rem; margin-bottom: 4px; }
.design-card-actions {
    display: flex;
    gap: 8px;
    padding: 0 16px 16px;
    flex-wrap: wrap;
}

/* Creator profile */
.creator-header {
    display: flex;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}
.creator-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

/* Search */
.search-bar {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}
.search-bar input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* Misc */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 1.1rem;
}
.flash {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-weight: 500;
}
.flash-success { background: #d4edda; color: #155724; }
.flash-error { background: #f8d7da; color: #721c24; }
.edit-preview { max-width: 200px; border-radius: var(--radius-sm); margin-bottom: 16px; border: 1px solid var(--border); }
.inline-form { display: inline; }
.inline-form-row {
    display: flex;
    gap: 8px;
    align-items: end;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.inline-form-row select, .inline-form-row input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.checkout-summary { margin-bottom: 24px; }
.checkout-form { max-width: 480px; }

/* How it works */
.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 24px;
}
.step {
    text-align: center;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.step-num {
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 16px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-container { padding: 0 16px; }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 0.85rem; }
    .container { padding: 24px 16px; }
    .hero { padding: 48px 16px; }
    .hero h1 { font-size: 1.8rem; }
    .design-detail { grid-template-columns: 1fr; gap: 24px; }
    .design-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 8px; }
}