:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: #1c1c1f;
    --border-color: #27272a;
    --border-subtle: #1f1f22;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-primary: #3b82f6;
    --accent-success: #22c55e;
    --accent-warning: #f59e0b;
    --accent-error: #ef4444;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.5);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.6);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-y: scroll; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.animate-scaleIn {
    animation: scaleIn 0.4s ease-out forwards;
    opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.bg-pattern {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 11, 0.95);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span { color: var(--accent-primary); }

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a:not(.btn-login) {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:not(.btn-login)::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-login):hover { color: var(--text-primary); }
.nav-links a:not(.btn-login):hover::after { width: 100%; }

.btn-login {
    background: var(--accent-primary);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.btn-login:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.btn-login:active { transform: none; }
.btn-login::after { display: none !important; }

.user-name {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== HAMBURGER BUTTON ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    z-index: 101;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.hamburger-btn:hover,
.hamburger-btn:active {
    background: var(--bg-card);
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 11, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
    gap: 16px;
    z-index: 100;
    animation: fadeIn 0.2s ease;
}

/* Main */
.main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    position: relative;
    z-index: 1;
}

.page-header {
    text-align: center;
    margin-bottom: 48px;
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* Contact Info Cards */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.info-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 12px; padding: 24px; text-align: center;
    transition: all 0.3s; position: relative; overflow: hidden;
}

.info-card::before {
    content: ''; position: absolute; top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--accent-primary);
    transform: scaleX(0); transition: transform 0.3s ease;
}

.info-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
}
.info-card:hover::before { transform: scaleX(1); }

.info-card i { font-size: 2rem; color: var(--accent-primary); margin-bottom: 16px; }
.info-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }
.info-card a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s; }
.info-card a:hover { color: #60a5fa; }

/* Form Card */
.form-card {
    background: var(--bg-secondary); border: 1px solid var(--border-color);
    border-radius: 16px; padding: 40px;
}
.form-card h2 { font-size: 1.25rem; font-weight: 600; margin-bottom: 8px; }
.form-card > p { color: var(--text-secondary); margin-bottom: 32px; }

/* Alert */
.alert {
    padding: 16px 20px; border-radius: 10px; margin-bottom: 24px;
    display: flex; align-items: flex-start; gap: 12px;
}
.alert i { margin-top: 2px; }
.alert.error { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.2); color: #fca5a5; }
.alert.success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.2); color: #86efac; }

/* Form */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 24px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); }
.form-group label span { color: var(--accent-error); }

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 16px; font-size: 0.95rem;
    font-family: inherit; background: var(--bg-tertiary);
    border: 1px solid var(--border-color); border-radius: 10px;
    color: var(--text-primary); outline: none; transition: all 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group select {
    cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2371717a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 44px;
}
.form-group select option { background: var(--bg-tertiary); color: var(--text-primary); }

.form-group textarea { min-height: 160px; resize: vertical; line-height: 1.6; }

.char-count { text-align: right; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

/* reCAPTCHA */
.recaptcha-wrapper { margin-bottom: 24px; }
.g-recaptcha { transform-origin: left top; }
@media (max-width: 400px) { .g-recaptcha { transform: scale(0.85); } }

/* Submit Button */
.btn-submit {
    width: 100%; padding: 16px; font-size: 1rem; font-weight: 600;
    font-family: inherit; background: var(--accent-primary); color: #fff;
    border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; }

/* Success State */
.success-state { text-align: center; padding: 40px 20px; }

.success-icon {
    width: 80px; height: 80px;
    background: rgba(34, 197, 94, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 24px;
}
.success-icon i { font-size: 40px; color: var(--accent-success); }
.success-state h2 { font-size: 1.5rem; margin-bottom: 12px; }
.success-state p { color: var(--text-secondary); margin-bottom: 32px; }

.btn-back {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 24px; background: var(--bg-tertiary);
    color: var(--text-primary); text-decoration: none;
    border-radius: 10px; font-weight: 500; transition: all 0.2s;
}
.btn-back:hover { background: var(--border-color); }

/* Footer */
.footer {
    padding: 32px 0; border-top: 1px solid var(--border-color);
    text-align: center; color: var(--text-muted);
    font-size: 0.85rem; margin-top: 48px;
}
.footer a { color: var(--accent-primary); text-decoration: none; }
.footer a:hover { color: #60a5fa; }

/* ===== RESPONSIVE ===== */

/* Portrait: Menü ve hamburger tamamen gizli, diğer mobil stiller aktif */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .hamburger-btn { display: none !important; }
    .nav-links { display: none !important; }
    .page-header h1 { font-size: 2rem; }
    .form-card { padding: 24px; }
}

/* Landscape: Hamburger görünür, menü gizli */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .hamburger-btn { display: flex !important; }
    .nav-links { display: none !important; }
    .nav-links.mobile-open { display: flex !important; }
    .page-header h1 { font-size: 2rem; }
    .form-card { padding: 24px; }
}

/* Fallback: orientation desteklemeyen cihazlar için hamburger varsayılan olarak görünür */
@media screen and (max-width: 768px) {
    .hamburger-btn { display: flex !important; }
    .nav-links { display: none !important; }
    .nav-links.mobile-open { display: flex !important; }
    .page-header h1 { font-size: 2rem; }
    .form-card { padding: 24px; }
}
