/* ==========================
   Tech-Talk page (techtalk.css)
   Page-specific polish + injected post card styling
   ========================== */

/* Hero: improve contrast against patterned background */
.techtalk-hero {
    /*
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.85),
        rgba(0, 0, 0, 0.95)
    );
    */
}

/* Make the hero buttons feel consistent */
.techtalk-hero .btn {
    border-radius: 0.75rem;
}

/* Breadcrumb spacing (your chosen approach) */
.techtalk-breadcrumb {
    margin-bottom: -1.8rem; /* pull hero up slightly */
}

/* ==========================
   Tech-Talk breadcrumb (dark background)
   ========================== */

.techtalk-breadcrumb .breadcrumb {
    --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5);
}

.techtalk-breadcrumb .breadcrumb-item,
.techtalk-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

.techtalk-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.techtalk-breadcrumb .breadcrumb-item a:hover,
.techtalk-breadcrumb .breadcrumb-item a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}


/* NEW: subtle dividers between light sections */
.techtalk-section-divider {
    position: relative;
}

.techtalk-section-divider::before {
    content: "";
    display: block;
    height: 1px;
    margin: 0 0 2rem 0;
    background: rgba(0, 0, 0, 0.10);
}

/* Topic cards readability */
#tech-talk-topics .card-title {
    font-weight: 700;
}

#tech-talk-topics .card-text {
    line-height: 1.35;
}

/* Topic cards: gentle polish */
#tech-talk-topics .card {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* ==========================
   Latest Tech-Talk injected cards
   ========================== */

/* Ensure the whole card feels like a clickable unit */
#techTalkContainer a {
    display: block;
    height: 100%;
    cursor: pointer;
}

/* Hover + lift effect for mouse users */
#techTalkContainer .card {
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#techTalkContainer a:hover .card {
    transform: translateY(-3px);
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.15);
    border-color: rgba(25, 135, 84, 0.35); /* Bootstrap success */
}

/* Keyboard focus state (important because the <a> wraps the card) */
#techTalkContainer a:focus-visible {
    outline: 3px solid rgba(25, 135, 84, 0.6); /* Bootstrap success */
    outline-offset: 4px;
    border-radius: 0.75rem;
}

#techTalkContainer a:focus-visible .card {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
}

/* Clamp summary text to keep cards even (works in modern browsers) */
#techTalkContainer .techtalk-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Slightly tighten the meta row */
#techTalkContainer .badge {
    font-weight: 600;
}

#techTalkContainer small.text-muted {
    white-space: nowrap;
}

@media (max-width: 360px) {
    #techTalkContainer small.text-muted {
        white-space: normal;
    }
}

/* Loading / empty-state paragraphs in the container */
#techTalkStatus > p {
    margin-bottom: 0.25rem;
}

#techTalkStatus > p:last-child {
    margin-bottom: 0;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    #techTalkContainer .card {
        transition: none;
    }
}
