/* -------------------------------------------------------
   Color System (CSS variables)
------------------------------------------------------- */

:root {
    --bg-main: #f4f5fb;
    --bg-card: #ffffff;
    --bg-soft: #eef0ff;

    --text-main: #202124;
    --text-muted: #6b7280;

    --primary: #2563eb;        /* blue */
    --primary-soft: #dbeafe;   /* light blue */
    --accent: #7c3aed;         /* purple accent */

    --border-soft: #e5e7eb;
}


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

body {
    background: radial-gradient(circle at top left, #eef2ff 0, var(--bg-main) 45%);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-main);
    min-height: 100vh;
}

/* Central container spacing */
main.container {
    padding-top: 24px;
    padding-bottom: 24px;
}

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

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


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

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

/* Page titles */
.page-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* Subtitle or description text */
.page-subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
}


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

.navbar {
    background: linear-gradient(90deg, #ffffff 0, #f9fafb 50%, #eef2ff 100%) !important;
    border-bottom: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}

.navbar-brand {
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--primary) !important;
}

.nav-link {
    font-weight: 500;
    color: #374151 !important;
    position: relative;
    padding-bottom: 0.25rem;
}

.nav-link:hover {
    color: var(--accent) !important;
}

.nav-link.active,
.nav-link[aria-current="page"] {
    color: var(--primary) !important;
}

/* small underline on active/hover links */
.nav-link.active::after,
.nav-link[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 999px;
}


/* -------------------------------------------------------
   Cards (lists, home sections)
------------------------------------------------------- */

.card {
    border-radius: 0.9rem;
    border: 1px solid var(--border-soft);
    background-color: var(--bg-card);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.03);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out, border-color 0.12s ease-out;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(15, 23, 42, 0.07);
    border-color: #c7d2fe;
}

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

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

/* Small meta info (dates/categories) */
.text-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* -------------------------------------------------------
   Poem Detail
------------------------------------------------------- */

.poem-image {
    max-height: 420px;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
}

article {
    font-size: 1.08rem;
    line-height: 1.9;
    margin-top: 0.75rem;
}

/* Category badge (use in templates if you want) */
.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);
    backdrop-filter: blur(4px);
}


/* -------------------------------------------------------
   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 10px 20px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    filter: brightness(1.03);
    box-shadow: 0 14px 26px rgba(37, 99, 235, 0.35);
}

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


/* -------------------------------------------------------
   Utility helpers
------------------------------------------------------- */

/* Soft section block (you can wrap parts of templates with this) */
.section-soft {
    background-color: var(--bg-soft);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

/* Horizontal rule style */
hr {
    border-color: var(--border-soft);
    opacity: 1;
}

/* Code blocks (if you show snippets later) */
pre,
code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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


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

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

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

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