/**
 * common.css
 * Pilav Cards - Ortak CSS Dosyası
 * 
 * Tüm sayfalarda kullanılan ortak stiller.
 * 
 * Renk teması: #060742 -> #082b50 Gradient
 * 
 * assets/css/common.css
 */

/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    /* Ana gradient background */
    background: linear-gradient(135deg, #060742 0%, #082b50 100%);
    min-height: 100vh;
}

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

/* ---------- HEADER ---------- */
header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(135deg, #060742 0%, #082b50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.logo span {
    background: linear-gradient(135deg, #f59e0b 0%, #e67e22 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- HEADER BUTTONS ---------- */
.auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.auth-buttons a {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: 500;
}

.user-name {
    color: #082b50;
    font-weight: 500;
    margin-right: 5px;
}

.btn-login {
    background: transparent;
    color: #082b50;
    border: 2px solid #082b50;
}

.btn-login:hover {
    background: #082b50;
    color: white;
    transform: translateY(-2px);
}

.btn-register {
    background: #f59e0b;
    color: white;
    border: 2px solid #f59e0b;
}

.btn-register:hover {
    background: #e67e22;
    border-color: #e67e22;
    transform: translateY(-2px);
}

.btn-dashboard {
    background: #764ba2;
    color: white;
    border: none;
}

.btn-dashboard:hover {
    background: #5a3a7a;
    transform: translateY(-2px);
}

.btn-logout-header {
    background: #dc3545;
    color: white;
    border: none;
}

.btn-logout-header:hover {
    background: #c82333;
    transform: translateY(-2px);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #060742 0%, #082b50 100%);
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0a0a5a 0%, #0a3a6a 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
    transition: 0.3s;
    font-weight: bold;
    border: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

.btn-small {
    padding: 5px 10px;
    font-size: 12px;
}

/* ---------- CARDS ---------- */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.card-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.card-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-info {
    padding: 20px;
}

.card-name {
    font-size: 20px;
    font-weight: bold;
    color: #060742;
    margin-bottom: 10px;
}

.card-price {
    color: #f59e0b;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* ---------- FORM ELEMANLARI ---------- */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: 0.3s;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 5px rgba(245, 158, 11, 0.3);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---------- MESSAGES ---------- */
.error {
    background: #fee;
    color: #c00;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.success {
    background: #efe;
    color: #0a0;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

.info {
    background: #e7f3ff;
    color: #0066cc;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- SECTION ---------- */
.section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section h2 {
    color: #082b50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f59e0b;
}

.section-title {
    text-align: center;
    color: white;
    margin-bottom: 20px;
    font-size: 32px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #f59e0b;
    border-radius: 2px;
}

/* ---------- HERO ---------- */
.hero {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 50px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero h1 {
    font-size: 48px;
    background: linear-gradient(135deg, #060742 0%, #082b50 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    color: #555;
    margin-bottom: 30px;
}

.hero-feature {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.feature-item {
    text-align: center;
    padding: 15px;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.feature-text {
    color: #666;
    font-size: 14px;
}

/* ---------- TABLOLAR ---------- */
table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background: #082b50;
    color: white;
}

/* ---------- STATUS BADGES ---------- */
.status {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-paid {
    background: #d4edda;
    color: #155724;
}

.status-shipped {
    background: #cce5ff;
    color: #004085;
}

.status-delivered {
    background: #d1ecf1;
    color: #0c5460;
}

/* ---------- FOOTER ---------- */
footer {
    text-align: center;
    padding: 30px;
    color: rgba(255,255,255,0.7);
    margin-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .hero-feature {
        flex-direction: column;
        gap: 15px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
    }
    header {
        flex-direction: column;
        text-align: center;
    }
    .auth-buttons {
        justify-content: center;
    }
    table, thead, tbody, th, td, tr {
        display: block;
    }
    th {
        display: none;
    }
    td {
        border-bottom: 1px solid #ddd;
        position: relative;
        padding-left: 50%;
    }
    td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        font-weight: bold;
    }
}

/* ---------- GALERI ---------- */
.card-gallery {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-image {
    width: 100%;
    height: 350px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnail-list {
    display: flex;
    gap: 10px;
    padding: 15px;
    background: #fafafa;
    overflow-x: auto;
    border-top: 1px solid #eee;
}

.thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.2s;
}

.thumbnail.active {
    border-color: #f59e0b;
}

.thumbnail:hover {
    opacity: 0.8;
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* ---------- BUTTONS - PILL SHAPE ---------- */
.auth-buttons a,
.btn-login,
.btn-register,
.btn-dashboard,
.btn-logout-header,
.btn-home,
.btn-primary,
.btn-secondary,
.btn-payment,
.btn-login-prompt,
.btn-review {
    border-radius: 50px !important;
}

/* Kartpostallar butonu */
.btn-home {
    background: transparent;
    color: #082b50;
    border: 2px solid #082b50;
    text-decoration: none;
    padding: 10px 20px;
    margin-left: 10px;
    transition: 0.3s;
    font-weight: 500;
}

.btn-home:hover {
    background: #082b50;
    color: white;
    transform: translateY(-2px);
}

/* User name stil güncellemesi (emoji kaldırıldı) */
.user-name {
    color: #082b50;
    font-weight: 500;
    margin-right: 10px;
}