@import "custom.css";
/* ==========================================================================
   ÇVENEBURİ SÖZLÜĞÜ - MODERN MOBİL ÖNCELİKLİ & VBULLETIN UYUMLU TASARIM SİSTEMİ
   ========================================================================== */

:root {
    --brand-900: #071923;
    --brand-800: #0c2b3c;
    --brand-700: #0d3246;
    --brand-600: #154c6a;
    --brand-500: #1e6b94;
    --brand-100: #e0f2fe;
    --brand-50:  #f0f9ff;

    --accent-gold: #eab308;
    --accent-gold-dark: #ca8a04;
    --accent-gold-bg: #fefce8;

    --primary: #0d3246;
    --secondary: #154c6a;
    --success: #16a34a;
    --danger: #dc2626;
    --warning: #d97706;
    --light: #f4f6f9;
    --dark: #0f172a;
    --white: #ffffff;
    --gray: #64748b;
    --border: #e2e8f0;

    --bg-body: #f4f6f9;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    --text-main: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --georgian-color: #1d4ed8;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 6px 18px rgba(13, 50, 70, 0.08);
    --shadow-lg: 0 12px 28px rgba(13, 50, 70, 0.14);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    line-height: 1.5;
    color: var(--text-main);
    background: var(--bg-body);
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 14px;
}

main {
    padding: 0.75rem 0 1.75rem;
}

/* Gürcüce Tipografi */
.georgian, .word-text.georgian, .georgian-letter {
    font-family: 'BPG Arial', 'BPG Glaho', 'Sylfaen', 'Noto Sans Georgian', 'Segoe UI', sans-serif;
}

/* ==========================================================================
   GENEL KARTLAR & SAYFA KONTEYNERLERİ
   ========================================================================== */
.page-container,
.add-word-container,
.profile-container,
.transcription-container,
.contact-content {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.25rem;
}

.page-container {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.add-word-container {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.page-container h1,
.add-word-container h1,
.profile-container h1,
.transcription-container h1,
.contact-content h1 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-700);
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.page-content {
    color: var(--text-secondary);
    line-height: 1.75;
    font-size: 0.96rem;
}

.page-content h2 {
    color: var(--brand-700);
    font-size: 1.2rem;
    margin: 1.5rem 0 0.65rem;
}

.page-content h3 {
    color: var(--brand-600);
    font-size: 1.05rem;
    margin: 1.2rem 0 0.5rem;
}

.page-content p {
    margin-bottom: 0.85rem;
}

.page-content ul, .page-content ol {
    margin-left: 1.35rem;
    margin-bottom: 0.85rem;
}

.page-content li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   FORMLAR & BUTONLAR
   ========================================================================== */
.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--bg-subtle);
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--brand-600);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(21, 76, 106, 0.12);
}

.form-group small {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.2;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 50, 70, 0.22);
    opacity: 0.96;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-600) 100%);
    color: var(--white);
}

.btn-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: var(--white);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--brand-700);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-subtle);
    border-color: var(--brand-600);
}

/* ==========================================================================
   BİLDİRİM KUTULARI (ALERTS) & ROZETLER
   ========================================================================== */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.status-approved { background: #dcfce7; color: #166534; }
.status-pending  { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }

/* ==========================================================================
   TABLOLAR (KELİMELERİM / PROFİL)
   ========================================================================== */
.words-table {
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-md);
    border-collapse: collapse;
    overflow: hidden;
    border: 1px solid var(--border);
}

.words-table thead {
    background: var(--bg-subtle);
    border-bottom: 1.5px solid var(--border);
}

.words-table th {
    padding: 0.7rem 0.9rem;
    text-align: left;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.words-table td {
    padding: 0.7rem 0.9rem;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.9rem;
    vertical-align: middle;
}

.words-table tbody tr:last-child td {
    border-bottom: none;
}

.words-table tbody tr:hover {
    background: #f8fafc;
}

/* ==========================================================================
   SANAL GÜRCÜ KLAVYESİ (ORTAK BİLEŞEN)
   ========================================================================== */
.keyboard-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    background: var(--brand-50);
    color: var(--brand-700);
    border: 1px solid #bae6fd;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.18s ease;
}

.keyboard-btn:hover,
.keyboard-btn.active {
    background: var(--brand-700);
    color: var(--white);
    border-color: var(--brand-700);
}

.georgian-keyboard {
    background: var(--bg-subtle);
    padding: 0.65rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    margin-top: 0.5rem;
    display: none;
    user-select: none;
}

.georgian-keyboard.active {
    display: block;
}

.georgian-keyboard > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-bottom: 4px;
}

.georgian-keyboard > div:last-child {
    margin-bottom: 0;
}

.kbd-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 36px;
    padding: 0 0.35rem;
    background: var(--white);
    border: 1px solid #cbd5e1;
    border-bottom-width: 2px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-700);
    font-family: 'BPG Arial', 'Sylfaen', sans-serif;
    transition: all 0.12s ease;
}

.kbd-key:hover {
    background: var(--brand-700);
    color: var(--white);
    border-color: var(--brand-700);
}

.kbd-key:active {
    transform: translateY(1px);
}

/* ==========================================================================
   MOBİL UYUMLULUK
   ========================================================================== */
@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }

    main {
        padding: 0.5rem 0 1.25rem;
    }

    .page-container,
    .add-word-container,
    .profile-container,
    .transcription-container,
    .contact-content {
        padding: 0.95rem;
        border-radius: var(--radius-md);
        margin-bottom: 0.85rem;
    }

    .page-container h1,
    .add-word-container h1,
    .profile-container h1,
    .transcription-container h1,
    .contact-content h1 {
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .kbd-key {
        min-width: 28px;
        height: 34px;
        font-size: 0.98rem;
        flex: 1 0 calc(9% - 4px);
        max-width: 36px;
    }
}
