/* ===== PROFİL SAYFASI ===== */
.profile-page *,
.profile-page *::before,
.profile-page *::after {
    box-sizing: border-box;
}

.profile-page {
    min-height: 100dvh;
    background: var(--koyu-arkaplan);
    padding-bottom: 80px;
    overflow-y: auto;
}

/* ===== AUTH BÖLÜMÜ ===== */
.auth-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 80px 20px 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--altin) 0%, var(--altin-koyu) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 32px rgba(196, 154, 60, 0.35);
}

.auth-logo i {
    font-size: 36px;
    color: var(--beyaz);
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 400; /* Regular */
    text-transform: uppercase;
    color: var(--yazi);
    letter-spacing: 2px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--gri);
    margin-top: 4px;
}

/* Tab Geçişleri */
.auth-tabs {
    display: flex;
    background: var(--gri-acik);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 24px;
}

.auth-tab {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 600;
    color: var(--gri);
    cursor: pointer;
    border-radius: 11px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--beyaz);
    color: var(--altin);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Auth Formları */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--yazi);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    font-size: 12px;
    color: var(--altin);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    border: 1.5px solid var(--sinir);
    border-radius: 12px;
    font-size: 15px;
    color: var(--yazi);
    background: var(--beyaz);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: 'Segoe UI', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--altin);
    box-shadow: 0 0 0 3px rgba(196, 154, 60, 0.12);
}

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

.form-error {
    padding: 10px 14px;
    background: #fff0f0;
    border: 1px solid #ffc9c9;
    border-radius: 10px;
    font-size: 13px;
    color: #c53030;
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--altin) 0%, var(--altin-koyu) 100%);
    color: var(--beyaz);
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(196, 154, 60, 0.3);
    margin-top: 4px;
}

.auth-submit-btn:active {
    transform: scale(0.98);
}

.auth-submit-btn:hover {
    box-shadow: 0 6px 24px rgba(196, 154, 60, 0.4);
}

/* Misafir Bölümü */
.guest-section {
    margin-top: 28px;
}

.guest-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.guest-divider::before,
.guest-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sinir);
}

.guest-divider span {
    font-size: 13px;
    color: var(--gri);
    font-weight: 500;
}

.guest-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: var(--beyaz);
    color: var(--yazi);
    border: 1.5px solid var(--sinir);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.guest-btn:hover {
    background: var(--koyu-arkaplan);
    border-color: var(--altin);
    color: var(--altin);
}

.guest-btn:active {
    transform: scale(0.98);
}

.guest-btn i {
    font-size: 18px;
    color: var(--altin);
}

.guest-note {
    text-align: center;
    font-size: 12px;
    color: #a89c88;
    margin-top: 12px;
    line-height: 1.5;
}

/* ===== PROFİL İÇERİK ===== */
.profile-content {
    max-width: 480px;
    margin: 0 auto;
    padding: 24px 16px 20px;
}

/* Üst Kart */
.profile-header-card {
    background: linear-gradient(135deg, var(--altin) 0%, var(--altin-koyu) 100%);
    border-radius: 20px;
    padding: 30px 20px 24px;
    text-align: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(196, 154, 60, 0.25);
    position: relative;
    overflow: hidden;
}

.profile-header-card::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 50%;
}

.profile-header-card::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 160px;
    height: 160px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 50%;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    position: relative;
    z-index: 1;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-avatar i {
    font-size: 32px;
    color: var(--beyaz);
}

.profile-username {
    font-size: 22px;
    font-weight: 800;
    color: var(--beyaz);
    position: relative;
    z-index: 1;
}

.profile-email {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

.profile-join-date {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 8px;
    position: relative;
    z-index: 1;
}

/* İstatistik Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--beyaz);
    border-radius: 16px;
    padding: 18px 10px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-size: 18px;
}

.fav-icon {
    background: #fff8e1;
    color: #f59e0b;
}

.visited-icon {
    background: #e8f5e9;
    color: #43a047;
}

.progress-icon {
    background: #e3f2fd;
    color: #1976d2;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--yazi);
}

.stat-label {
    font-size: 12px;
    color: var(--gri);
    margin-top: 2px;
}

/* İlerleme Barı */
.progress-section {
    background: var(--beyaz);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--yazi);
}

.progress-header span:last-child {
    color: var(--gri);
    font-weight: 500;
    font-size: 13px;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: var(--gri-acik);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--altin), #f0c260);
    border-radius: 10px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Menü */
.profile-menu {
    display: flex;
    flex-direction: column;
    background: var(--beyaz);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--sinir);
    transition: background 0.2s;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background: var(--koyu-arkaplan);
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-item-left i {
    font-size: 18px;
    color: var(--altin);
    width: 24px;
    text-align: center;
}

.menu-item-left span {
    font-size: 15px;
    font-weight: 600;
    color: var(--yazi);
}

.menu-item .fa-chevron-right {
    color: var(--gri);
    font-size: 13px;
}

.menu-item.logout .menu-item-left i {
    color: #e53935;
}

.menu-item.logout .menu-item-left span {
    color: #e53935;
}

/* ===== ALT PANEL (Favoriler / Ziyaret Edilenler / Düzenle) ===== */
.sub-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--koyu-arkaplan);
    z-index: 600;
    overflow-y: auto;
    padding-bottom: 80px;
    animation: slideUp 0.3s ease forwards;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.sub-panel-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--beyaz);
    border-bottom: 1px solid var(--sinir);
    position: sticky;
    top: 0;
    z-index: 1;
}

.sub-panel-back {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: var(--gri-acik);
    color: var(--yazi);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.sub-panel-back:hover {
    background: var(--gri-acik);
}

.sub-panel-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--yazi);
}

.sub-panel-body {
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

/* Eser Kartları (favori/ziyaret listeleri) */
.monument-list-card {
    background: var(--beyaz);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.monument-list-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.monument-list-card:active {
    transform: scale(0.99);
}

.monument-list-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--altin);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.monument-list-icon img {
    filter: brightness(0) invert(1) !important;
}

.monument-list-icon i {
    font-size: 20px;
    color: #ffffff;
}

.monument-list-info {
    flex: 1;
    overflow: hidden;
}

.monument-list-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--yazi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.monument-list-meta {
    font-size: 12px;
    color: var(--gri);
    margin-top: 2px;
}

.monument-list-nav {
    color: var(--altin);
    font-size: 16px;
    flex-shrink: 0;
}

/* Boş Durum */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gri);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    color: #d1c4a9;
}

.empty-state p {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--yazi);
}

.empty-state small {
    font-size: 13px;
    color: var(--gri);
}

/* Edit Form */
.edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 8px;
}

/* Settings Panel */
.settings-group {
    background: var(--beyaz, var(--beyaz));
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--golge, 0 2px 12px rgba(0,0,0,0.06));
}

.settings-group-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--yazi, var(--yazi));
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--sinir, var(--sinir));
    padding-bottom: 12px;
}

.settings-group-title i {
    color: var(--altin, var(--altin));
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.setting-item span {
    font-size: 15px;
    font-weight: 600;
    color: var(--yazi, var(--yazi));
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gri-acik, #e2e8f0);
    transition: .4s;
    border-radius: 34px;
}

.theme-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .theme-slider {
    background-color: var(--altin, var(--altin));
}

input:checked + .theme-slider:before {
    transform: translateX(22px);
}

.color-picker {
    display: flex;
    gap: 16px;
    padding: 8px 0;
}

.color-option {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 3px solid transparent;
}

.color-option.active {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px var(--beyaz, var(--beyaz)), 0 0 0 5px var(--altin, var(--altin));
}

/* ===== DİL SEÇİCİ (AUTH EKRANI) ===== */
.auth-language-selector {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2000;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 16px;
    height: 48px;
    border-radius: 24px;
    background: var(--altin);
    color: var(--beyaz);
    border: none;
    cursor: pointer;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn:active {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

#authCurrentLang {
    font-size: 12px;
    font-weight: bold;
}

.auth-language-menu {
    position: absolute;
    top: 60px;
    right: 0;
    background: var(--beyaz);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    overflow: hidden;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-lang-option {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--yazi);
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    transition: background-color 0.2s;
}

.auth-lang-option:hover {
    background-color: var(--altin-light, rgba(196, 154, 60, 0.1));
}

.auth-lang-option:active {
    background-color: var(--altin-light, rgba(196, 154, 60, 0.15));
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 14px 8px;
    }

    .stat-value {
        font-size: 20px;
    }

    .lang-btn {
        height: 44px;
        padding: 0 12px;
        font-size: 14px;
    }

    #authCurrentLang {
        font-size: 11px;
    }

    .auth-language-menu {
        min-width: 130px;
    }

    .auth-lang-option {
        padding: 10px 12px;
        font-size: 13px;
    }
}

