/* Duno - Modern Design System */

:root {
    --primary: #7c3aed;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
    --accent: #db2777;
    --accent-light: #f472b6;
    --text: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg: #fafafa;
    --bg-card: #ffffff;
    --bg-subtle: #f5f3ff;
    --border: #e5e7eb;
    --success: #10b981;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.08), 0 20px 48px rgba(0,0,0,0.06);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --transition: all 0.2s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    padding-top: 70px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--text); }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }

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

/* Navbar */
.navbar {
    min-height: 60px;
    background: rgba(255,255,255,0.85) !important;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary) !important;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: none;
    transition: var(--transition);
    overflow: hidden;
}
.card:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.card-img-top {
    object-fit: cover;
}
.card-body { padding: 1.1rem; }
.card-title a { color: var(--text); font-weight: 600; }
.card-title a:hover { color: var(--primary); }
.card-header { background: var(--bg-card); border-bottom: 1px solid var(--border); font-weight: 600; }
.card-footer { background: var(--bg-card); border-top: 1px solid var(--border); }

/* Buttons */
.btn {
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.55rem 1.3rem;
    transition: var(--transition);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 1px 2px rgba(124,58,237,0.2);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 4px 12px rgba(124,58,237,0.3);
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.btn-lg { padding: 0.8rem 2rem; font-size: 1rem; }
.btn-sm { padding: 0.3rem 0.75rem; font-size: 0.8rem; }

/* Hero */
.hero {
    margin-top: -70px;
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: #ffffff;
    color: var(--text);
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%; right: -15%;
    width: 800px; height: 800px;
    background: radial-gradient(circle, rgba(168,85,247,0.08) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -30%; left: -10%;
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(251,113,133,0.06) 0%, transparent 65%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f5f3ff, #fdf2f8);
    border: 1px solid #e9d5ff;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #7c3aed;
}
.hero-pill .dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #7c3aed;
    display: inline-block;
}
.hero-search {
    max-width: 480px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: var(--transition);
}
.hero-search:focus-within {
    border-color: #c4b5fd;
    box-shadow: 0 0 0 3px rgba(124,58,237,0.1);
}
.hero-search .input-group-text {
    background: transparent;
    border: none;
    color: #9ca3af;
}
.hero-search .form-control {
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--text);
}
.hero-search .form-control::placeholder { color: #9ca3af; }
.btn-hero-primary {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(124,58,237,0.3);
}
.btn-hero-primary:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}
.btn-hero-secondary {
    background: #f5f3ff;
    color: #7c3aed;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
}
.btn-hero-secondary:hover {
    background: #ede9fe;
    color: #6d28d9;
    transform: translateY(-2px);
}
.hero-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
}
.hero-stat-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
}
.hero-stat-label {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: 500;
}

/* Section spacing */
.section-heading { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.25rem; }

/* Forms */
.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 0.6rem 1rem;
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(99, 66, 102, 0.15);
}
.form-control-lg { padding: 0.75rem 1.25rem; font-size: 1rem; }
.form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.75em;
    border-radius: var(--radius-xs);
    font-size: 0.78em;
}
.tags .badge {
    padding: 7px 14px;
    margin: 3px;
    font-size: 0.85em;
    font-weight: 500;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}
.tags .badge:hover {
    transform: translateY(-1px);
}

/* Breadcrumbs */
.breadcrumb {
    font-size: 0.85rem;
    background: transparent;
    padding: 0;
    margin-bottom: 1rem;
}
.breadcrumb-item a { color: var(--text-secondary); }
.breadcrumb-item.active { color: var(--text); }

/* Pagination */
.pagination .page-link {
    border-radius: var(--radius-sm);
    margin: 0 2px;
    border: 1px solid var(--border);
    color: var(--text);
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Chat Messages */
.chat-message {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.chat-message:hover {
    background-color: #f8f9fa;
}

/* Alerts */
.alert {
    border-radius: var(--radius-sm);
    border: none;
}

/* Footer */
.site-footer {
    background: #1e1e2d;
    color: #c5c5d2;
}
.footer-main {
    padding: 3rem 0 1.5rem;
}
.footer-logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}
.footer-tagline {
    font-size: 0.9rem;
    color: #8e8ea4;
    max-width: 380px;
    line-height: 1.6;
    margin-top: 0.5rem;
    margin-bottom: 0;
}
.footer-brand-row {
    padding-bottom: 1.75rem;
    margin-bottom: 1.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.btn-footer-cta {
    background: linear-gradient(135deg, #7c3aed, #db2777);
    color: #fff;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-footer-cta:hover {
    color: #fff;
    opacity: 0.9;
}
.btn-footer-outline {
    background: transparent;
    color: #c5c5d2;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}
.btn-footer-outline:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.footer-heading {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.4rem;
}
.footer-links a {
    color: #8e8ea4;
    font-size: 0.87rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-links a:hover {
    color: #fff;
}
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.footer-tag {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    color: #8e8ea4;
    font-size: 0.82rem;
    text-decoration: none;
    transition: var(--transition);
}
.footer-tag:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.footer-bottom {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-bottom p {
    font-size: 0.8rem;
    color: #5c5c72;
}
.footer-bottom-link {
    font-size: 0.8rem;
    color: #5c5c72;
    text-decoration: none;
    transition: var(--transition);
}
.footer-bottom-link:hover {
    color: #c5c5d2;
}
@media (max-width: 768px) {
    .footer-main { padding: 2rem 0 1rem; }
    .footer-brand-row { text-align: center; }
    .footer-tagline { margin: 0.5rem auto 1rem; }
    .footer-brand-row .text-lg-end { text-align: center !important; }
}

/* Progress bars */
.progress {
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar {
    transition: width 0.3s ease;
}

/* Utility */
.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }

/* Responsive */
@media (max-width: 768px) {
    body { padding-top: 60px; }
    .hero { margin-top: -60px; min-height: 75vh; }
    .hero-title { font-size: 2.2rem; }
    .hero-stats { gap: 1.5rem; }
    .hero-stat-value { font-size: 1.2rem; }
    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.2rem; }
    .display-4 { font-size: 2rem !important; }
    .container { padding: 0 12px; }
    .card-body { padding: 0.75rem; }
    .hero .lead { font-size: 1rem; }
}

@media (max-width: 576px) {
    .btn-lg { font-size: 0.9rem; padding: 0.6rem 1.25rem; }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease-out; }

/* Skeleton loading placeholder */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
