/* ==========================================
   İŞ BUL - Design System & Main Styles
   ========================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #12163a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.07);
    --bg-glass-strong: rgba(255, 255, 255, 0.12);

    --accent-primary: #6c5ce7;
    --accent-secondary: #a29bfe;
    --accent-gradient: linear-gradient(135deg, #6c5ce7, #a29bfe);
    --accent-gradient-hover: linear-gradient(135deg, #5a4bd6, #8b7ffe);
    --accent-glow: rgba(108, 92, 231, 0.4);

    --success: #00cec9;
    --success-bg: rgba(0, 206, 201, 0.15);
    --warning: #fdcb6e;
    --warning-bg: rgba(253, 203, 110, 0.15);
    --danger: #ff6b6b;
    --danger-bg: rgba(255, 107, 107, 0.15);
    --info: #74b9ff;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --text-inverse: #0a0e27;

    --border: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.15);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 50%;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px var(--accent-glow);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(162, 155, 254, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 206, 201, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

#app {
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

/* Selection */
::selection {
    background: var(--accent-primary);
    color: white;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover {
    color: var(--accent-primary);
}

/* Page Transitions */
.page {
    animation: fadeSlideIn 0.4s ease;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Layout Utilities */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flex-col {
    display: flex;
    flex-direction: column;
}

.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }

/* Home Page */
.home-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

.home-logo {
    width: 90px;
    height: 90px;
    background: var(--accent-gradient);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: var(--shadow-glow);
    animation: float 3s ease-in-out infinite;
}

.home-logo .material-icons-round {
    font-size: 44px;
    color: white;
}

.home-title {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.home-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 320px;
    line-height: 1.5;
}

.home-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 380px;
}

.home-btn {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    transition: var(--transition);
    overflow: hidden;
    text-align: left;
}

.home-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: var(--transition);
}

.home-btn:hover {
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.home-btn:hover::before {
    opacity: 0.1;
}

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

.home-btn-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.home-btn-icon.seeker {
    background: linear-gradient(135deg, #00cec9, #00b894);
}

.home-btn-icon.employer {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
}

.home-btn-icon .material-icons-round {
    font-size: 26px;
    color: white;
}

.home-btn-text {
    position: relative;
    z-index: 1;
}

.home-btn-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.home-btn-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.home-btn-arrow {
    margin-left: auto;
    color: var(--text-muted);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.home-btn:hover .home-btn-arrow {
    color: var(--accent-secondary);
    transform: translateX(4px);
}

.home-footer {
    margin-top: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.home-admin-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.home-admin-link:hover {
    color: var(--text-secondary);
    background: var(--bg-glass);
}

.home-settings-link {
    font-size: 0.82rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
}

.home-settings-link:hover {
    color: var(--text-secondary);
    background: var(--bg-glass);
}

.home-settings-link .material-icons-round {
    font-size: 16px;
}

/* Header / Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 12px 20px;
    background: rgba(10, 14, 39, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.navbar-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-logo .material-icons-round {
    font-size: 20px;
    color: white;
}

.navbar-title {
    font-size: 1.1rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-btn {
    width: 38px;
    height: 38px;
    border: none;
    background: var(--bg-glass);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.navbar-btn:hover {
    background: var(--bg-glass-strong);
    color: var(--text-primary);
}

/* Settings Page */
.settings-page {
    padding: 20px;
    max-width: 480px;
    margin: 0 auto;
}

.settings-page h2 {
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.settings-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.settings-card h3 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.settings-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    color: var(--text-primary);
    font-size: 0.9rem;
    animation: fadeSlideIn 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 280px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid var(--danger); }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

.toast-exit {
    animation: fadeOut 0.3s ease forwards;
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(20px); }
}

/* User Dashboard */
.dashboard-page {
    padding: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.dashboard-welcome {
    margin-bottom: 24px;
}

.dashboard-welcome h2 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.dashboard-welcome p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.profile-card {
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 16px;
}

.profile-card h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

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

.profile-item-label {
    color: var(--text-secondary);
}

.profile-item-value {
    color: var(--text-primary);
    font-weight: 500;
    text-align: right;
    max-width: 60%;
}

.profile-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-status.confirmed {
    background: var(--success-bg);
    color: var(--success);
}

.profile-status.pending {
    background: var(--warning-bg);
    color: var(--warning);
}

/* Notifications */
.notification-card {
    background: var(--bg-glass);
    border: 1px solid var(--accent-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 12px;
    animation: fadeSlideIn 0.4s ease;
}

.notification-card .match-score {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.notification-card h4 {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.notification-reasons {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.notification-reasons li {
    font-size: 0.82rem;
    color: var(--text-secondary);
    padding: 3px 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.notification-reasons li::before {
    content: '✓';
    color: var(--success);
    font-weight: 700;
}

/* Loading */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 39, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    z-index: 9998;
    backdrop-filter: blur(8px);
}

.loading-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 480px) {
    .home-title { font-size: 1.8rem; }
    .home-btn { padding: 20px; }
    .container-wide { padding: 0 12px; }
}

@media (min-width: 768px) {
    .home-buttons {
        flex-direction: row;
        max-width: 600px;
    }
    .home-btn {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }
    .home-btn-arrow { display: none; }
}
