@import url('/vendor/fonts/noto-sans-georgian.css');

:root {
    --ink: #172033;
    --navy: #1e2a5a;
    --navy-deep: #131c3f;
    --teal: #0d9488;
    --teal-light: #2dd4bf;
    --bg: #f6f8fb;
    --card: #ffffff;
    --line: #e3e8ef;
    --muted: #5b6578;
    --danger: #b42318;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(23, 32, 51, .06), 0 8px 24px rgba(23, 32, 51, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Noto Sans Georgian', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; color: var(--navy); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 56px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* ზედა ზოლი */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.nav-logo img { height: 40px; width: auto; }
.nav-links { display: flex; gap: 4px; margin-left: 8px; flex-wrap: wrap; }
.nav-links a { color: var(--ink); padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a.active { background: #eef2f7; text-decoration: none; }
.nav-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ღილაკები */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
    font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none !important;
    transition: transform .08s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: #0b7f75; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #eef2f7; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #eef2f7; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ჰერო */
.hero {
    background:
        radial-gradient(circle at 85% 20%, rgba(45, 212, 191, .22), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(99, 102, 241, .25), transparent 45%),
        linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: #fff; padding: 72px 0 64px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; max-width: 56ch; color: #d5dcf0; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.stats { display: flex; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.stat b { display: block; font-size: 2rem; color: var(--teal-light); line-height: 1.1; }
.stat span { color: #c3cce6; font-size: .9rem; }

/* ბარათები */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
a.card { color: inherit; text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(23, 32, 51, .06), 0 14px 32px rgba(23, 32, 51, .1); }
.card-cover { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #dbe4f7, #c6efe9); display: grid; place-items: center; color: var(--navy); font-weight: 700; font-size: 2rem; }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-foot { margin-top: auto; padding-top: 10px; font-size: .85rem; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }

/* ტეგები */
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: #eef2f7; color: #334155; border-radius: 999px; padding: 2px 10px; font-size: .8rem; font-weight: 500; }
.badge { display: inline-block; border-radius: 6px; padding: 2px 9px; font-size: .78rem; font-weight: 600; background: #e0f2f1; color: #0b6b63; }
.badge.job { background: #dcfce7; color: #166534; }
.badge.internship { background: #dbeafe; color: #1e40af; }
.badge.project { background: #fef3c7; color: #92400e; }
.badge.mentorship { background: #ede9fe; color: #5b21b6; }

/* ფორმები და ფილტრები */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
input[type=text], input[type=search], textarea, select {
    font: inherit; padding: 10px 14px; border: 1px solid #cfd7e3; border-radius: 10px; background: #fff; color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--teal-light); outline-offset: 0; border-color: var(--teal); }
.filters input[type=search] { flex: 1; min-width: 220px; }
textarea { width: 100%; resize: vertical; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font-size: .9rem; font-weight: 500; text-decoration: none !important; }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* შეტყობინებები */
.flash { padding: 12px 16px; border-radius: 10px; margin: 20px 0 0; font-weight: 500; }
.flash.ok { background: #dcfce7; color: #14532d; }
.flash.err { background: #fee4e2; color: var(--danger); }
.flash.info { background: #e0f2fe; color: #075985; }

/* დეტალური გვერდი */
.page-head { background: #fff; border-bottom: 1px solid var(--line); padding: 32px 0; }
.page-head h1 { margin-bottom: 8px; }
.layout-2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.prose { white-space: normal; }
.prose p { margin-bottom: 1em; }
.meta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.meta-list li { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed var(--line); padding-bottom: 10px; font-size: .95rem; }
.meta-list li span:first-child { color: var(--muted); }
.cover-lg { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; border: 1px solid var(--line); }
.cover-lg img { width: 100%; max-height: 420px; object-fit: cover; }
.members { display: flex; gap: 8px; flex-wrap: wrap; }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .95rem; flex: none; }
.person { display: flex; gap: 12px; align-items: center; }

/* როლების არჩევა შესვლისას */
.login-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); max-width: 720px; margin: 48px auto; }
.login-card { text-align: center; padding: 32px 24px; }
.login-card h2 { margin-bottom: 8px; }
.login-card p { color: var(--muted); font-size: .95rem; min-height: 3em; }

.empty { text-align: center; color: var(--muted); padding: 48px 16px; border: 1px dashed #cfd7e3; border-radius: var(--radius); background: #fff; }
.pager { display: flex; justify-content: center; gap: 12px; margin-top: 28px; }

/* ქვედა ზოლი */
.footer { background: var(--navy-deep); color: #b8c2e0; padding: 36px 0; margin-top: 56px; font-size: .9rem; }
.footer a { color: #d5dcf0; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

@media (max-width: 860px) {
    .layout-2 { grid-template-columns: 1fr; }
    .nav-inner { flex-wrap: wrap; padding: 10px 0; gap: 8px; }
    .nav-links { order: 3; width: 100%; margin: 0; }
    .hero { padding: 48px 0 44px; }
    .section { padding: 40px 0; }
}
