/* =========================================================
   GLOBAL
   (body background is the ocean gradient for the whole site)
========================================================= */
body {
    background: linear-gradient(
            to bottom,
            #FFF5D9 0%,   /* warm sand/sky */
            #F0FAFF 25%,  /* soft morning */
            #D9F1FF 55%,  /* light ocean */
            #BEE3F8 80%,  /* water */
            #1E81CE 100%  /* transition to footer */
    );
    background-attachment: fixed;
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* =========================================================
   NAVBAR
========================================================= */

.navbar-main {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.9rem;
}

/* Small inline language switcher inside navbar */
.language-switcher {
    margin-left: 1.5rem;
}

.language-switcher ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0.5rem;
}

.language-switcher li {
    font-size: 0.875rem;
}

.language-switcher li.active span {
    font-weight: 600;
}

.language-switcher a {
    text-decoration: none;
}

.language-switcher a:hover {
    text-decoration: underline;
}

/* =========================================================
   META TEXT (breadcrumbs, small meta)
========================================================= */

.post-meta,
.breadcrumb {
    font-size: 0.85rem;
    color: #777;
}

/* =========================================================
   HERO CAROUSEL
========================================================= */

#mainCarousel {
    border-radius: 0.75rem;
    overflow: hidden;
}

#mainCarousel .carousel-item img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

#mainCarousel .carousel-caption {
    left: 0;
    right: 0;
    bottom: 0;
    text-align: left;
    border-radius: 0;
}

/* Dark gradient overlay for caption text */
#mainCarousel .carousel-caption-inner {
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.75),
            rgba(0, 0, 0, 0.35),
            transparent
    );
    padding: 1rem 1.25rem;
    border-radius: 0;
}

#mainCarousel .carousel-caption small {
    letter-spacing: .08em;
    font-size: .7rem;
}

#mainCarousel .carousel-caption h5 {
    font-size: 1.1rem;
}

@media (min-width: 992px) {
    #mainCarousel .carousel-item img {
        height: 380px;
    }

    #mainCarousel .carousel-caption h5 {
        font-size: 1.35rem;
    }
}

/* =========================================================
   MAIN FEED CARDS
========================================================= */

.card-post-horizontal {
    transition: box-shadow 0.18s ease, transform 0.18s ease;
    border-radius: 14px;
    background: #ffffffcc; /* light transparency */
    backdrop-filter: blur(2px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.card-post-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

/* Thumbnail inside horizontal post cards */
.card-post-horizontal img {
    object-fit: cover;
    height: 180px;
}

/* Category / tag badge */
.post-card-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #FFF2CC;
    color: #B45309;
    border: 1px solid #FFE8A3;
    margin-bottom: 0.25rem;
}

/* Meta line like "03.12.2025 · por Lucas..." */
.post-card-meta-line {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
}

/* Snippet with line clamp for equal card height */
.post-card-snippet {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Views counter in card footer */
.post-card-views {
    font-size: 0.8rem;
    color: #6b7280;
}

/* =========================================================
   SIDEBAR WIDGETS (mini cards)
========================================================= */

.widget-post-thumb {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

.widget-post-info span {
    display: block;
    line-height: 1.3;
}

.widget-post-meta-line {
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 2px;
}

/* Slight glass effect for all generic .card blocks */
.card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* =========================================================
   "SERIES / COLLECTIONS" SECTION
========================================================= */

.series-section {
    margin-bottom: 2rem;
}

.series-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}

.series-card {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.series-card:hover {
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.series-card-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}

.series-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.series-card-meta {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.25rem;
}

.series-card-snippet {
    font-size: 0.8rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =========================================================
   "MINI ABOUT" AUTHOR WIDGET
========================================================= */

.author-widget {
    text-align: left;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #fb923c, #fde68a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.author-header {
    display: flex;
    align-items: center;
    margin-bottom: 0.65rem;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}

.author-role {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.author-bio {
    font-size: 0.8rem;
    color: #4b5563;
    margin-bottom: 0.75rem;
}

.author-link {
    font-size: 0.8rem;
    color: #2563eb;
    text-decoration: none;
}

.author-link:hover {
    text-decoration: underline;
}

/* =========================================================
   RELATED CARDS (inner pages)
========================================================= */

.related-card img {
    object-fit: cover;
    height: 150px;
}

/* =========================================================
   SIMPLE PAGE BOX (inner template wrapper)
========================================================= */

.page-simple {
    background: #fff;
    border: 1px solid #ede4d2;
    padding: 2rem 2.5rem;
}

/* =========================================================
   FOOTER
========================================================= */

.footer-main {
    background: linear-gradient(
            to bottom right,
            #1E81CE 0%,
            #0E4677 100%
    );
    color: #E6F4FF;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-text {
    font-size: 0.85rem;
    color: #E5F3FF;
    line-height: 1.55;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin-bottom: 0.4rem;
}

.footer-main a {
    font-size: 0.85rem;
    color: #F0F8FF;
    text-decoration: none;
}

.footer-main a:hover {
    text-decoration: underline;
    color: #FFC107;
}

.footer-bottom {
    font-size: 0.8rem;
    color: #C7E0FF;
}
