/* YeniPage Auth - Public Site Styles */

:root {
    --yp-primary: #4361ee;
    --yp-primary-light: #eef0ff;
    --yp-card-shadow: 0 1px 3px rgba(0,0,0,.08);
    --yp-card-shadow-hover: 0 4px 12px rgba(67,97,238,.15);
    --bs-body-bg: #f4f6fc;
}

[data-bs-theme="dark"] {
    --yp-primary: #6b83f2;
    --yp-primary-light: #1a1f3d;
    --yp-card-shadow: 0 1px 3px rgba(0,0,0,.3);
    --yp-card-shadow-hover: 0 4px 12px rgba(107,131,242,.25);
    --bs-body-bg: #212529;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

/* Logo toggle */
.logo-for-dark { display: none; }
[data-bs-theme="dark"] .logo-for-light { display: none !important; }
[data-bs-theme="dark"] .logo-for-dark { display: inline !important; }

/* Navbar */
.navbar {
    background: rgba(244, 246, 252, .85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--bs-border-color);
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: .6rem 0;
}

[data-bs-theme="dark"] .navbar {
    background: rgba(44, 48, 53, .75);
}

/* Theme toggle */
#themeToggle {
    font-size: 1.1rem;
    line-height: 1;
}

/* Language select in navbar */
.lang-select {
    font-size: .85rem;
    padding: .25rem .4rem;
    border-radius: .375rem;
    border: 1px solid var(--bs-border-color);
    background-color: transparent;
    color: var(--bs-body-color);
    cursor: pointer;
    max-width: 70px;
}

.lang-select:focus {
    outline: none;
    border-color: var(--yp-primary);
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, .15);
}

/* User dropdown */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--bs-border-color);
}

.user-avatar-placeholder {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--yp-primary);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--bs-border-color);
    margin-top: auto;
    padding: 2rem 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.footer-social a {
    color: var(--bs-secondary-color);
    font-size: 1.25rem;
    text-decoration: none;
    transition: color .2s ease, transform .2s ease;
}

.footer-social a:hover {
    color: var(--yp-primary);
    transform: translateY(-2px);
}

/* Focus */
.btn:focus-visible,
.form-control:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, .25);
}

/* Primary color override */
.btn-primary {
    --bs-btn-bg: var(--yp-primary);
    --bs-btn-border-color: var(--yp-primary);
    --bs-btn-hover-bg: #3451d1;
    --bs-btn-hover-border-color: #3451d1;
    --bs-btn-active-bg: #2d46b9;
}

.text-primary { color: var(--yp-primary) !important; }

/* Auth forms (Login, Register) */
.auth-card {
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 0 1rem;
}

.auth-card .card {
    border: 1px solid var(--bs-border-color);
    box-shadow: var(--yp-card-shadow);
}

.auth-divider {
    display: flex;
    align-items: center;
    color: var(--bs-secondary-color);
    font-size: .85rem;
    margin: .75rem 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--bs-border-color);
}

.auth-divider::before { margin-right: .75rem; }
.auth-divider::after  { margin-left:  .75rem; }

/* Turnstile container — sabit yükseklik, layout shift önler */
.turnstile-wrapper {
    min-height: 68px;
}

/* Google sign-in button — resmi Google tasarım kılavuzuna uygun */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    padding: .625rem 1rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-size: .9rem;
    font-weight: 500;
    transition: background .15s ease, box-shadow .15s ease;
    cursor: pointer;
}

.btn-google:hover {
    background: #f8f9fa;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
    color: #3c4043;
}

.btn-google:active {
    background: #f1f3f4;
}

[data-bs-theme="dark"] .btn-google {
    background: #131314;
    border-color: #8e918f;
    color: #e3e3e3;
}

[data-bs-theme="dark"] .btn-google:hover {
    background: #1e1f20;
    box-shadow: 0 1px 4px rgba(0,0,0,.4);
    color: #e3e3e3;
}
