/* =====================
   RLESTATE GLOBAL STYLES
   Unified dark theme
   ===================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-hover: #2a2a2a;
    --text: #ffffff;
    --text-muted: #d4d4d8;
    --accent: #a78bfa;
    --accent-dark: #7c3aed;
    --accent-light: #d8b4fe;
    --border: rgba(139, 92, 246, 0.2);
    --success: #10b981;
    --danger: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================
   HEADER / NAVIGATION
   ===================== */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(26, 26, 26, 0.45);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: #e5d4b8;
    text-decoration: none;
    transition: color 0.3s;
}

.logo:hover {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

/* =====================
   BUTTONS
   ===================== */

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 50%, var(--accent-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(167, 139, 250, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(167, 139, 250, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(139, 92, 246, 0.1);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* =====================
   FORMS
   ===================== */

input, textarea, select {
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: inherit;
    width: 100%;
    transition: all 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.3);
}

input::placeholder,
textarea::placeholder {
    color: rgba(212, 212, 216, 0.4);
}

label {
    font-weight: 600;
    color: #e5d4b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
    position: relative;
    padding-left: 12px;
}

label::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #e5d4b8;
    font-size: 0.7rem;
}

textarea {
    min-height: 100px;
    resize: vertical;
}

/* =====================
   CARDS
   ===================== */

.card {
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(167, 139, 250, 0.3);
}

/* =====================
   ALERTS
   ===================== */

.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: none;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    color: var(--danger);
}

/* =====================
   UTILITIES
   ===================== */

.loading {
    text-align: center;
    padding: 4rem;
    color: var(--text-muted);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

/* =====================
   FOOTER
   ===================== */

footer {
    background: rgba(26, 26, 26, 0.9);
    border-top: 1px solid var(--border);
    padding: 2rem;
    margin-top: auto;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
}

/* =====================
   RESPONSIVE
   ===================== */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    nav {
        padding: 1rem;
    }
    
    .container {
        padding: 1rem;
    }
}

/* =====================
   ANIMATIONS
   ===================== */

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

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

.fade-in {
    animation: fadeIn 0.5s ease-out;
}
