/* ============================================================
   TURKUAZ EUROPE — Main Stylesheet
   Primary: #00CED1 (Dark Turquoise) | Dark Theme
   ============================================================ */

:root {
    --primary: #00CED1;
    --primary-dark: #009999;
    --primary-glow: rgba(0, 206, 209, 0.25);
    --primary-gradient: linear-gradient(135deg, #00E5E8 0%, #007A7A 100%);
    --bg: #111111;
    --bg-card: #1C1C1C;
    --bg-card-hover: #222222;
    --border: rgba(255, 255, 255, 0.07);
    --border-primary: rgba(0, 206, 209, 0.35);
    --text: #FFFFFF;
    --text-muted: #888888;
    --text-soft: #AAAAAA;
    --success: #22c55e;
    --danger: #ef4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 20px;
    --radius-btn: 12px;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', 'Inter', sans-serif;
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 80% 50% at 0% 0%, rgba(0, 206, 209, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(0, 206, 209, 0.05) 0%, transparent 60%);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ── Header / Navbar ── */
.navbar,
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 6%;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar .logo img,
header .logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
}

.navbar .logo a,
header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.2s ease;
}

.navbar .logo a:hover,
header .logo a:hover {
    opacity: 1;
}

/* ── Language Switch ── */
.lang-switch {
    display: flex;
    gap: 10px;
    align-items: center;
}

.lang-switch a {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.45;
    transition: var(--transition);
    border: 2px solid transparent;
    border-radius: 50%;
    padding: 3px;
}

.lang-switch a:hover,
.lang-switch a.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.lang-switch img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* ── Main Container ── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 6%;
}

@media (max-width: 768px) {
    .container { padding: 2rem 1.2rem; }
}

/* ── Page Title ── */
h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

/* ── Grid Layout ── */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

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

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    border-color: var(--border-primary);
    transform: translateY(-6px);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(0, 206, 209, 0.12),
        0 0 40px var(--primary-glow);
    background: var(--bg-card-hover);
}

/* Card image area */
.card-img {
    width: 100%;
    height: 200px;
    background: #181818;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img i {
    font-size: 3.5rem;
    color: rgba(255, 255, 255, 0.12);
}

/* Capacity badge */
.card-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(0, 206, 209, 0.35);
    white-space: nowrap;
}

/* Card content */
.card-content {
    padding: 1.6rem 1.8rem 1.8rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.card-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.1rem;
    line-height: 1.3;
}

/* Meta items */
.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    font-size: 0.88rem;
    margin-bottom: 0.55rem;
}

.meta-item i {
    width: 14px;
    color: var(--primary);
    flex-shrink: 0;
    font-size: 0.8rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-gradient);
    color: #fff;
    padding: 0.9rem 1.6rem;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.01em;
    width: 100%;
    margin-top: auto;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 206, 209, 0.4);
    filter: brightness(1.08);
}

.btn:active {
    transform: translateY(0);
}

.card .btn {
    margin-top: 1.4rem;
    border-radius: 10px;
}

/* ── Stat Cards (Admin) ── */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 1.8rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-gradient);
}

.stat-card:hover {
    border-color: var(--border-primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    background: var(--bg-card-hover);
}

.stat-card h4 {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.stat-card .value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-card .icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.1;
    transition: var(--transition);
}

.stat-card:hover .icon {
    opacity: 0.25;
    transform: translateY(-50%) scale(1.1);
}

/* ── Chart Boxes ── */
.chart-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2rem;
    transition: var(--transition);
}

.chart-box:hover {
    border-color: var(--border-primary);
}

.chart-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-box h3::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--primary);
    border-radius: 3px;
    box-shadow: 0 0 10px var(--primary-glow);
}

/* ── Admin Layout ── */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    padding: 2.5rem;
    width: 100%;
    transition: var(--transition);
    overflow-x: hidden;
}

.frontend-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 4rem 5%;
}

/* ── Tables ── */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 2rem;
    border-radius: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

th {
    background: rgba(255, 255, 255, 0.02);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

td {
    color: #d1d5db;
    font-size: 0.93rem;
    vertical-align: middle;
}

tr:last-child td { border-bottom: none; }

/* ── Forms ── */
input, select, textarea {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    width: 100%;
    transition: var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(0, 206, 209, 0.04);
    box-shadow: 0 0 0 4px rgba(0, 206, 209, 0.08);
}

/* ── Thumbnail ── */
.thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

/* ── Utilities ── */
.text-center { text-align: center !important; }
.text-right  { text-align: right !important; }
.text-primary { color: var(--primary); }
.bg-primary   { background: var(--primary-gradient); }

/* ── Responsive Admin ── */
@media (max-width: 992px) {
    .admin-wrapper {
        flex-direction: column;
        display: block;
    }
    .sidebar {
        width: 280px !important;
        height: 100vh !important;
        position: fixed !important;
        left: -280px !important;
        transition: transform 0.3s ease;
        box-shadow: 20px 0 50px rgba(0,0,0,0.3);
    }
    .sidebar.active { transform: translateX(280px); }
    .main-content { padding: 1rem; width: 100% !important; }
    h1 { font-size: 1.8rem; }
    .grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 600px) {
    .table-responsive { border-radius: 8px; margin-top: 1rem; }
    table { font-size: 0.85rem; }
    th, td { padding: 0.75rem 0.5rem; }
}

/* ── Animate on load ── */
.animate {
    animation: fadeInUp 0.5s ease both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }