/* CSS'leri import et */
@import url('header-styles.css');
@import url('theme.css');
@import url('footer.css');

/* UskoMarket - Ana CSS Dosyası */
:root {
    --primary: #00d4ff;           /* Turkuaz (logo ateş efekti) */
    --primary-light: #33ddff;     /* Açık turkuaz */
    --primary-dark: #00a8cc;      /* Koyu turkuaz */
    --secondary: #2b5a8f;         /* Mavi (Usko yazısı) */
    --success: #7bc043;           /* Yeşil (Market yazısı) */
    --danger: #ef4444;            /* Kırmızı (değişmedi) */
    --warning: #f59e0b;           /* Turuncu (değişmedi) */
    --info: #06b6d4;              /* Mavi-yeşil */
    --dark: #0a1420;              /* Koyu mavi-siyah */
    --darker: #050a14;            /* Daha koyu mavi-siyah */
    --light: #f8f9fa;
    --border: #1a2a3e;            /* Koyu mavi border */
    --text: #ffffff;
    --text-muted: #a0b0c0;        /* Mavi-gri */
    --accent: #5dd39e;            /* Açık yeşil */
}

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

body {
    font-family: 'Instrument Sans', sans-serif;
    background: linear-gradient(135deg, #050a14 0%, #0f1a2e 50%, #0a1420 100%);
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* Background image overlay için */
body.has-bg-image::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 10, 20, 0.85);
    z-index: -1;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Genel Buton Stilleri */
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #6ba836;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary), var(--success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Product Grid */
.products-section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: rgba(26, 31, 46, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(5, 8, 16, 0.5);
}

.product-image-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(123, 192, 67, 0.1));
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary);
    opacity: 0.3;
}

.product-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 15px;
}

.product-server {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.product-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.product-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 14px;
}

.product-features {
    list-style: none;
    margin: 15px 0;
}

.product-features li {
    padding: 5px 0;
    color: var(--success);
    font-size: 14px;
}

.product-features li i {
    margin-right: 8px;
}

.product-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    margin: 15px 0;
}

/* Footer */
.footer {
    background: rgba(5, 8, 16, 0.9);
    padding: 60px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

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

.footer h5 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary);
}

.footer p {
    color: var(--text-muted);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 12px;
}

.contact-links a {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

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

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

/* Login/Register Forms */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.auth-box {
    background: rgba(26, 31, 46, 0.8);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    max-width: 450px;
    width: 100%;
}

.auth-box h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.alert {
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.alert-error {
    background: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--danger);
    color: var(--danger);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Shopping Cart */
.cart-icon {
    position: relative;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

/* Stats Section */
.stats-section {
    padding: 60px 0;
    background: rgba(26, 31, 46, 0.3);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 30px;
    background: rgba(5, 8, 16, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-icon {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 15px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 16px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {

/* Dashboard & Orders Responsive */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
    
    .orders-table-container {
        overflow: visible !important;
    }
    
    .orders-table {
        min-width: unset !important;
    }
    
    .orders-table thead {
        display: none !important;
    }
    
    .orders-table tbody {
        display: block !important;
    }
    
    .orders-table tr {
        display: block !important;
        margin-bottom: 15px !important;
        background: rgba(5, 8, 16, 0.5) !important;
        border: 1px solid var(--border) !important;
        border-radius: 10px !important;
        padding: 15px !important;
    }
    
    .orders-table td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 8px 0 !important;
        border: none !important;
    }
    
    .orders-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 10px;
    }
    
    .orders-table td:last-child {
        justify-content: flex-end !important;
        margin-top: 10px !important;
    }
}

/* Profile Stats Responsive */
@media (max-width: 768px) {
    .user-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-card:last-child {
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 480px) {
    .user-stats {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card:last-child {
        grid-column: 1 !important;
    }
}