/* İhlas AI Platformu — Design tokens (senet design system'inden uyarlandı) */
:root {
    --bg:           #f8f9fc;
    --surface:      #ffffff;
    --border:       #e2e8f0;
    --muted-bg:     #f1f5f9;
    --text:         #1e293b;
    --text-muted:   #64748b;
    --accent:       #6366f1;
    --accent-hover: #4f46e5;
    --accent-2:     #8b5cf6;
    --accent-soft:  rgba(99, 102, 241, 0.10);
    --navy:         #0f172a;
    --success:      #10b981;
    --warning:      #f59e0b;
    --danger:       #ef4444;
    --card-radius:  14px;
    --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md:    0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg:    0 8px 24px rgba(15, 23, 42, 0.12);
}

* { box-sizing: border-box; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Navbar */
.ihl-navbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 0.85rem 0;
}
.ihl-logo {
    width: 36px; height: 36px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}
.ihl-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

/* Main / footer */
.ihl-main {
    flex: 1 0 auto;
    padding: 2.5rem 0 3rem;
}
.ihl-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 1.25rem 0;
    margin-top: auto;
}

/* Buttons */
.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
}
.btn-primary:hover, .btn-primary:focus-visible {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

/* Cards */
.ihl-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.ihl-card:hover { box-shadow: var(--shadow-md); }

/* Module card (landing) */
.ihl-mod-card {
    display: block;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}
.ihl-mod-card:hover {
    transform: translateY(-2px);
    color: inherit;
    text-decoration: none;
}
.ihl-mod-banner {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.2rem;
}
.ihl-mod-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.ihl-mod-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}
.ihl-mod-body p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}
.ihl-badge-soon {
    background: var(--muted-bg);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* Hero */
.ihl-hero {
    text-align: center;
    margin-bottom: 3rem;
}
.ihl-hero h1 {
    font-size: 2.4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.75rem;
}
.ihl-hero p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Form / inputs */
.form-control:focus, .form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem var(--accent-soft);
}

/* URL list */
.ihl-url-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.ihl-url-row:last-child { border-bottom: none; }
.ihl-url-code {
    font-family: 'Inter', monospace;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    padding: 0.25rem 0.55rem;
    border-radius: 6px;
    font-size: 0.85rem;
}
.ihl-url-target {
    color: var(--text-muted);
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ihl-url-stats {
    color: var(--text-muted);
    font-size: 0.8rem;
    white-space: nowrap;
}
.ihl-url-actions {
    display: flex;
    gap: 0.4rem;
}
.ihl-url-row.ihl-pasif {
    opacity: 0.55;
    background: var(--muted-bg);
}

/* Toast */
.ihl-toast-stack {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .ihl-hero h1 { font-size: 1.7rem; }
    .ihl-url-row { flex-wrap: wrap; }
    .ihl-url-stats { width: 100%; order: 99; }
}
