/* shared styles — the little building blocks that make the site feel like “me” */

/* basic card + section shells */
section,
.card {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* nav buttons — just the visuals, layout lives in layout.css */
#nav_menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 1rem;
    font-weight: 600;
    color: var(--sage);
    background: rgba(255, 255, 255, .7);
    border: 2px solid var(--sage);
    border-radius: 999px;
    transition: transform .25s, color .25s, box-shadow .25s;
    will-change: transform;
}

#nav_menu .current a {
    background: var(--sage);
    color: #fff;
}

#nav_menu a:hover,
#nav_menu a:focus {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

/* homepage intro (profile pic + tagline area) */
.home-intro {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 1rem;
}

.profile-pic {
    width: 180px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--soft);
    box-shadow: 0 0 0 3px rgba(216, 226, 220, .35);
}

.home-intro .profile-pic {
    flex: 0 0 180px;
}

.intro-text {
    max-width: 420px;
}

.home-intro .intro-text {
    flex: 1;
    max-width: 600px;
}

.intro-text h2 {
    color: var(--coral);
}

@media (max-width:600px) {
    .home-intro {
        flex-direction: column;
        text-align: center;
    }
}

/* post/article container */
.article {
    max-width: 800px;
    margin: 0 auto;
}

.post {
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
}

.article .post+.post {
    margin-top: 1.25rem;
}

.meta {
    font-size: .9rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

/* link grid — used for resources, webrings, etc. */
.links {
    max-width: 720px;
    margin: 2rem auto;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.link-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.link-grid a {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: .25rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--soft);
    border-radius: 16px;
    box-shadow: var(--shadow);
    color: var(--text);
    transition: transform .15s, box-shadow .2s, border-color .2s;
}

.link-grid a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
    border-color: var(--sage);
}

.lg-emoji {
    font-size: 1.4rem;
}

.lg-title {
    font-weight: 700;
    color: var(--sage);
}

.lg-sub {
    font-size: .9rem;
    color: var(--muted);
}

/* progress bars for project tracking or plant growth logs :) */
.progress {
    height: 8px;
    background: rgba(132, 165, 157, .18);
    border-radius: 999px;
    overflow: hidden;
    margin-top: .35rem;
}

.progress-bar {
    height: 100%;
    width: var(--pct, 0%);
    background: var(--sage);
    border-radius: inherit;
    transition: width .4s;
}

.progress.done .progress-bar {
    background: var(--coral);
}

.progress.in-progress .progress-bar {
    background: var(--sage);
}

.progress.not-started .progress-bar {
    background: var(--border);
}

.progress-label {
    font-size: .85rem;
    color: var(--muted);
    margin-top: .25rem;
}

/* about + media layouts */
.about-intro,
.about-extra {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

@media (min-width:900px) {
    .about-intro {
        grid-template-columns: minmax(420px, 1fr) 360px;
    }

    .about-extra {
        grid-template-columns: 1fr 1fr;
    }
}

.about-intro .card,
.about-extra .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* embedded music & video cards */
.music-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 1rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .7);
    box-shadow: var(--shadow);
}

.music-card h4 {
    font-size: .95rem;
    color: var(--muted);
    text-align: center;
    margin: 0 0 4px;
}

.music-card img {
    display: block;
    margin: 0 auto;
    width: 180px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.music-card iframe {
    width: 100%;
    height: 152px;
    border: 0;
    border-radius: 12px;
}

.video-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: .75rem;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* guestbook + form blocks */
.form-card {
    max-width: 720px;
    margin: 2rem auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.form-title {
    font-family: "Poppins", system-ui, sans-serif;
    margin-bottom: .25rem;
}

.guestbook-form input[type="text"],
.guestbook-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: .75rem .9rem;
    font: inherit;
    background: #fff;
}

.btn {
    margin-top: 1rem;
    padding: .7rem 1rem;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: var(--sage);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.btn:hover {
    filter: brightness(.95);
}

/* coral alert banner + badges */
.alert {
    --bg: color-mix(in oklab, var(--coral), var(--sage) 30%);
    --ink: color-mix(in oklab, var(--coral), black 40%);
    --bd: color-mix(in oklab, var(--coral), var(--sage) 55%);
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: .75rem 1rem;
    align-items: start;
    max-width: 1100px;
    margin: .75rem auto 1.25rem;
    padding: 1.1rem 1.4rem;
    background: rgba(242, 132, 130, .15);
    border: 1px solid var(--bd);
    border-radius: calc(var(--radius) + 10px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .05), inset 0 1px 0 rgba(255, 255, 255, .4);
    color: var(--ink);
}

.alert-icon {
    font-size: 1.25rem;
    opacity: .8;
    transform: translateY(2px);
}

.alert-title {
    font-family: "Poppins", system-ui, sans-serif;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .2rem;
}

.alert p {
    margin: 0;
    font-size: .95rem;
    color: color-mix(in oklab, var(--text), var(--coral) 20%);
}

.badges {
    display: flex;
    gap: .5rem;
    align-items: center;
    margin: .25rem 0 .35rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 .6rem;
    border-radius: 999px;
    font: 700 .75rem/1 "Poppins", system-ui, sans-serif;
    letter-spacing: .3px;
}

.divider {
    border: 0;
    border-top: 1px dashed color-mix(in oklab, var(--sage), white 40%);
    margin: 1.25rem 0;
    opacity: .8;
}

/* misc helpers */
.highlight-link {
    color: var(--sage);
    text-decoration: underline;
}

.highlight-link:hover {
    color: #5e7d75;
}

details {
    margin: 1em 0;
    padding: .75em;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #fdfdfd;
}

summary {
    font-weight: bold;
    cursor: pointer;
    color: #444;
}

details[open] {
    background-color: #f7f7f7;
}