/* =======================================================
   Alumniyat Hub — AI & Tech Community Theme
   Modern LTR English design, Inter font, tech-friendly
   ======================================================= */

/* -------------------------------------------------------
   Color System
------------------------------------------------------- */

:root {
    --bg-main: #f8f9fc;
    --bg-card: #ffffff;
    --bg-soft: #eef1ff;

    --text-main: #1a1a2e;
    --text-muted: #64748b;

    --primary: #2563eb;
    --primary-soft: #dbeafe;
    --accent: #7c3aed;
    --accent-soft: #ede9fe;

    --success: #059669;
    --warning: #d97706;

    --border-soft: #e2e8f0;
}


/* -------------------------------------------------------
   Global
------------------------------------------------------- */

html, body {
    background: var(--bg-main);
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    min-height: 100vh;
    direction: ltr;
}

main.container {
    padding-top: 24px;
    padding-bottom: 24px;
}

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

a:hover {
    color: var(--accent);
    text-decoration: underline;
}


/* -------------------------------------------------------
   Typography
------------------------------------------------------- */

h1, h2, h3, h4 {
    font-weight: 700;
    color: #0f172a;
}

.page-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.65;
}


/* -------------------------------------------------------
   Navbar
------------------------------------------------------- */

.navbar {
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

.navbar .navbar-brand {
    font-weight: 800;
    letter-spacing: 0.03em;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95) !important;
}

.navbar .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.88) !important;
}

.navbar .nav-link:hover {
    color: #ffffff !important;
}

.navbar .dropdown-menu-dark {
    background: #1e293b;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    padding: 0.4rem 0;
    margin-top: 0.35rem;
}

.navbar .dropdown-menu-dark .dropdown-item {
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.navbar .dropdown-menu-dark .dropdown-item:hover,
.navbar .dropdown-menu-dark .dropdown-item:focus {
    background: rgba(37,99,235,0.25);
    color: #fff;
}

.navbar .dropdown-menu-dark .dropdown-divider {
    border-color: rgba(255,255,255,0.1);
    margin: 0.25rem 0;
}

.navbar .nav-link-cta {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff !important;
    border-radius: 999px;
    padding: 0.4rem 1.1rem !important;
    font-weight: 700;
    font-size: 0.88rem;
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
    transition: filter 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}

.navbar .nav-link-cta:hover {
    filter: brightness(1.1);
    box-shadow: 0 6px 18px rgba(37,99,235,0.35);
    color: #fff !important;
}


/* -------------------------------------------------------
   Cards
------------------------------------------------------- */

.card {
    border-radius: 0.75rem;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    border-color: #c7d2fe;
}

.card-title {
    font-weight: 600;
    color: #0f172a;
}

.card-text {
    color: var(--text-muted);
}

.text-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.mag-thumb {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    border-radius: 0.75rem 0 0 0.75rem;
}


/* -------------------------------------------------------
   Buttons
------------------------------------------------------- */

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    border-radius: 999px;
    font-weight: 600;
    padding-inline: 1.3rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
    border-radius: 999px;
    font-weight: 500;
}

.btn-outline-primary {
    border-radius: 999px;
    font-weight: 500;
}

.btn-outline-secondary {
    border-radius: 999px;
    font-weight: 500;
}


/* -------------------------------------------------------
   Hero Actions
------------------------------------------------------- */

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.25rem;
}

.hero-actions .btn {
    min-height: 44px;
    padding: 0.65rem 1.2rem;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}


/* -------------------------------------------------------
   Section Blocks
------------------------------------------------------- */

.section-soft {
    background-color: var(--bg-soft);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
}

hr {
    border-color: var(--border-soft);
    opacity: 1;
}


/* -------------------------------------------------------
   Content / Article
------------------------------------------------------- */

.poem-image {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

article {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-top: 0.75rem;
}

.badge-category {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background-color: var(--primary-soft);
    color: #1d4ed8;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}


/* -------------------------------------------------------
   Footer
------------------------------------------------------- */

footer {
    font-size: 0.86rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-soft);
    padding-top: 16px;
    margin-top: 40px;
    background-color: rgba(255, 255, 255, 0.6);
}

footer a {
    color: var(--primary);
}


/* -------------------------------------------------------
   Code Blocks
------------------------------------------------------- */

pre, code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

pre {
    background-color: #0f172a;
    color: #e2e8f0;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 0.88rem;
    overflow-x: auto;
}


/* -------------------------------------------------------
   Verification / Community Badges
------------------------------------------------------- */

.badge-verified-poet {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3);
}

.badge-verified-poet::before {
    content: "\2713 ";
}

.badge-verified-writer {
    background: linear-gradient(135deg, #059669, #047857);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

.badge-verified-writer::before {
    content: "\2713 ";
}

.badge-verified-member {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

.badge-verified-member::before {
    content: "\2713 ";
}

.badge-ai-assistant {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #fff;
    font-weight: 600;
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    opacity: 0.85;
}


/* -------------------------------------------------------
   Social Feed
------------------------------------------------------- */

.poem-card {
    transition: border-color 0.15s;
}

.poem-card:hover {
    border-color: var(--primary);
    transform: none;
}

.poem-snippet {
    color: var(--text-main);
}

.nav-pills .nav-link {
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.35rem 1rem;
}

.nav-pills .nav-link:not(.active) {
    color: var(--text-muted);
}

.follow-btn {
    border-radius: 999px;
    font-weight: 600;
    transition: all 0.15s;
}

.min-width-0 {
    min-width: 0;
}


/* -------------------------------------------------------
   Video / Tutorial Cards
------------------------------------------------------- */

.yt-video-card {
    overflow: hidden;
    cursor: pointer;
}

.yt-thumb-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #0f172a;
    flex-shrink: 0;
}

.yt-thumb-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.yt-video-card:hover .yt-thumb-wrap img {
    transform: scale(1.04);
    opacity: 0.85;
}

.yt-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.yt-video-card:hover .yt-play-icon {
    opacity: 1;
}

.yt-video-title {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: calc(2 * 1.6 * 0.95rem);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-main);
}


/* -------------------------------------------------------
   Notification Dropdown
------------------------------------------------------- */

#notif-dropdown-menu,
#notif-dropdown-menu * {
    color: #e8eaed;
}

#notif-dropdown-menu .text-muted {
    color: #c0c6d0 !important;
}

#notif-dropdown-menu .dropdown-item:hover,
#notif-dropdown-menu .dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

#notif-dropdown-menu .border-top a {
    color: #93c5fd;
}

#notif-dropdown-menu .border-top a:hover {
    color: #fff;
}

#send-btn {
    white-space: nowrap;
    flex-shrink: 0;
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 0.98rem;
    }

    main.container {
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .page-title {
        font-size: 1.5rem;
    }

    .auth-narrow {
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }
}
