/* =========================================================
   BOOKS – CARD & ARCHIVE STYLING (Bootstrap-based)
========================================================= */

/* =========================
   BOOK CARD
========================= */

.book-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
    transition: transform 0.2s ease;
}

.book-card a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-decoration: none;
    color: inherit;
}

.book-card:hover {
    transform: translateY(-2px);
}

/* =========================
   BOOK CARD – COVER
========================= */

.book-card-cover {
    position: relative;
    overflow: hidden;
}

.book-card-cover img {
    position: relative;
    z-index: 1;
    border-radius: 2px;
    display: block;
}

/* Category label overlay */
.book-category-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 4px 10px;
    font-size: 12px;
    background: rgba(0,0,0,0.65);
    color: #fff;
    border-radius: 3px;
    letter-spacing: 0.02em;
    z-index: 2;
}

/* =========================
   BOOK CARD – HEADER
========================= */

.book-card-header {
    margin-bottom: 10px;
    min-height: 70px; /* σταθερό σημείο έναρξης blurb */
}

.book-card-title {
    font-size: 20px;
    font-weight: 600;
    margin: 4px 0 0;
    line-height: 1.25;
}

.book-card-subtitle {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #111;
    opacity: 0.75;

    line-height: 1.35;
    max-height: calc(1.35em * 2); /* max 2 lines */
    overflow: hidden;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =========================
   BOOK CARD – BLURB
========================= */

.book-card-blurb {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.75;
}

/* =========================================================
   BOOKS PAGE – HERO
========================================================= */

.books-page-hero {
    position: relative;
    width: 100vw;
    min-height: 420px;

    background-image: url('https://sofiatsenekidou.com/wp-content/uploads/2025/12/books.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-left: calc(-50vw + 50%);
}

.books-page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

.books-page-hero-inner {
    position: relative;
    text-align: center;
    padding: 0 20px;
}

.books-page-hero h1 {
    color: #fff;
    font-size: clamp(42px, 6vw, 64px);
    font-weight: 700;
    margin: 0;
}

@media (max-width: 768px) {
    .books-archive{
	    padding-left:15px;
	    padding-right:15px;
	}
}
/* =========================
   BOOKS PAGE – INTRO
========================= */

.books-intro {
    max-width: 720px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.8;
    opacity: 0.8;
    text-align: center;
}

/* =========================================================
   SINGLE BOOK PAGE
========================================================= */

.sofia-book-single {
    padding-bottom: 100px;
}

.sofia-book-single .row {
    align-items: stretch;
}

/* =========================
   SINGLE BOOK – TYPOGRAPHY
========================= */

.book-title {
    font-size: 42px;
    font-weight: 600;
}

.book-subtitle {
    font-size: 22px;
    line-height: 1.4;
    opacity: 0.85;
}

.book-authors {
    font-size: 15px;
    opacity: 0.9;
}

.book-publishing-description {
    font-size: 17px;
    line-height: 1.8;
    opacity: 0.9;
}

.book-meta li {
    font-size: 14px;
    line-height: 1.8;
    opacity: 0.85;
}

/* =========================
   SINGLE BOOK – STICKY COVER
========================= */

.book-cover img {
    position: sticky;
    top: 200px;
    max-width: 70%;
    height: auto;
    display: block;
}

.book-cover-mobile img {
    max-width: 320px;
}

.book-cover-sticky-wrapper {
    margin-top: 200px;
    overflow-y: visible;
}

.book-content-column {
    padding-top: 100px;
    padding-bottom: 200px;
}

.sofia-book-single,
.sofia-book-single .container,
.sofia-book-single .row {
    overflow: visible !important;
}

/* =========================
   SINGLE BOOK – CONTENT
========================= */

.book-long-description,
.book-preface,
.book-related-writings {
    font-size: 18px;
    line-height: 1.9;
}

.book-preface h3,
.book-related-writings h3 {
    font-size: 26px;
    margin-bottom: 20px;
}

.book-pdf-type {
  opacity: 0.8;
  font-size: 0.95em;
}


/* =========================================================
   PAGINATION
========================================================= */

.books-pagination {
    margin: 80px auto 0;
    text-align: center;
}

.books-pagination .page-numbers {
    display: inline-block;
    margin: 0 6px;
    padding: 6px 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.books-pagination .page-numbers:hover {
    opacity: 1;
}

.books-pagination .page-numbers.current {
    opacity: 1;
    font-weight: 600;
    text-decoration: underline;
    pointer-events: none;
}

.books-pagination .prev,
.books-pagination .next {
    font-size: 13px;
    letter-spacing: 0.02em;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 992px) {

    .book-content-column {
        order: 1;
        padding-top: 40px;
        padding-bottom: 60px;
    }

    .book-cover img {
        position: static;
        max-width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {

    .books-page-hero {
        min-height: 300px;
    }
	
	.sofia-book-single {
	    padding-left:15px;
	    padding-right:15px;
	}

    .books-archive.books-page.container {
	    padding-left:15px;
	    padding-right:15px;
	}	
	
    .books-page-hero h1 {
        font-size: 32px;
    }

    .books-intro {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .book-title {
        font-size: 32px;
    }
	
}

@media (max-width: 768px) {
    body.single-thought .sofia-thought-single {
        padding-top: 100px;
    }
}

/* =========================
   THOUGHTS – TYPOGRAPHY
========================= */

body.single-thought .sofia-thought-single {
    padding-top: 120px;
}

.thought-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    line-height: 1.25;
    font-weight: 600;
}

.thought-body p {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 1.6rem;
}

/* =========================
   SINGLE THOUGHT – TYPOGRAPHY
========================= */

.thought-navigation {
    font-size: 0.95rem;
    margin-top: 80px;
    opacity: 0.75;
}

.thought-navigation a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease;
}

.thought-navigation a:hover {
    opacity: 1;
    text-decoration: underline;
}


.thought-nav-prev,
.thought-nav-next {
    max-width: 35%;
}

.thought-nav-back {
    font-weight: 500;
}

/* =========================
   THOUGHT CONCEPT TEMPLATE – TYPOGRAPHY
========================= */

.thought-concept-view .text-muted, .thought-sub-concept-view .text-muted{
    font-size: 0.82rem;
    line-height: 1.4;
    margin-top: 0.25rem;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
}

.thought-concept-view .text-muted a, .thought-sub-concept-view .text-muted a {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-style: italic;
    transition: color 0.2s ease;
}

.thought-concept-view .text-muted a:hover, .thought-sub-concept-view .text-muted a:hover {
    color: #000;
}

