/* ============================================
   UNIFIED STYLESHEET - style-20251122.css
   John D. Cressler Website
   ============================================ */

/* ============ BASE RESET & VARIABLES ============ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --emerald: #339966;
    --dark-emerald: #2a7a54;
    --gold: #d4a574;
    --cream: #faf8f3;
    --dark-gray: #333;
    --light-gray: #f5f5f5;
    --text-gray: #555;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.7;
    color: var(--text-gray);
    background-color: var(--cream);
    font-size: 18px;
}

/* ============ HEADER ============ */
header.hero {
    background: linear-gradient(rgba(51, 153, 102, 0.9), rgba(42, 122, 84, 0.9)),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><path fill="%23d4a574" opacity="0.1" d="M0,100 Q300,150 600,100 T1200,100 L1200,300 L0,300 Z"/></svg>');
    color: white;
    text-align: center;
    padding: 2rem 2rem;
    background-size: cover;
    background-position: center;
}

header.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    font-style: italic;
}

/* ============ LAYOUT ============ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

/* ============ BOOK COVER SECTION ============ */
.book-cover-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.book-cover {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
    max-width: 400px;
    height: auto;
}

.book-cover:hover {
    transform: scale(1.05);
}

.book-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
	text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.book-info h3 {
    color: var(--emerald);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.price {
    font-size: 1.5rem;
    color: var(--dark-emerald);
    font-weight: bold;
    margin: 1rem 0;
}

.buy-button {
    display: block;
    background: var(--emerald);
    color: white;
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.buy-button:hover {
    color: white;
	background: var(--dark-emerald);
	transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(51, 153, 102, 0.4);
}

/* ============ SERIES NAVIGATION ============ */
.series-navigation {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.series-navigation h3 {
    color: var(--emerald);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.5rem;
}

.series-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.series-link {
    display: block;
    padding: 0.75rem;
    border-radius: 8px;
    background: var(--light-gray);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.series-link:hover {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.1), rgba(212, 165, 116, 0.1));
    border-color: var(--emerald);
    transform: translateX(5px);
    text-decoration: none;
}

.series-link.active {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.15), rgba(212, 165, 116, 0.15));
    border-color: var(--emerald);
    pointer-events: none;
}

.series-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.series-title {
    font-size: 1rem;
    color: var(--dark-gray);
    font-weight: 500;
    line-height: 1.3;
}

.series-link.active .series-title {
    color: var(--dark-emerald);
    font-weight: 600;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.section {
    margin-bottom: 3rem;
}

.section p {
    margin-bottom: 1rem;
}

.section h2 {
    color: var(--emerald);
    font-size: 2rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
}

.section h3 {
    color: var(--dark-emerald);
    font-size: 1.6rem;
    margin: 1.5rem 0 1rem;
}

/* ============ QUOTES ============ */
.quote {
    background: var(--light-gray);
    border-left: 4px solid var(--emerald);
    padding: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.quote-author {
    text-align: right;
    font-weight: bold;
    color: var(--dark-emerald);
    margin-top: 1rem;
    font-style: normal;
}

/* ============ VIDEO ============ */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ============ LISTS ============ */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.5rem;
}

/* ============ LINKS ============ */
a {
    color: var(--emerald);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--dark-emerald);
    text-decoration: underline;
}

/* ============ SKIP LINK (Accessibility) ============ */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--emerald);
    color: white;
    padding: 8px 16px;
    z-index: 10000;
    text-decoration: none;
    font-weight: bold;
    border-radius: 0 0 8px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

/* ============ VIDEO INFO ============ */
.video-info {
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 1rem;
    text-align: center;
}

/* ============ NONFICTION GALLERY GRID ============ */
.nonfiction-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.nonfiction-gallery figure {
    margin: 0;
    text-align: center;
}

.nonfiction-gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.nonfiction-gallery img:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .nonfiction-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .nonfiction-gallery {
        grid-template-columns: 1fr;
    }
}

/* ============ FOOTER ============ */
footer {
    background: var(--dark-gray);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

footer p {
    margin: 0.5rem 0;
}

/* ============ SCROLL TO TOP ============ */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--emerald);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 100;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--dark-emerald);
    transform: translateY(-5px);
}

/* ============ HIGHLIGHT BOX ============ */
.highlight-box {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.1), rgba(212, 165, 116, 0.1));
    border: 2px solid var(--emerald);
    border-radius: 10px;
    padding: 2rem;
    margin: 2rem 0;
}

.highlight-box h3 {
    margin-top: 0;
}

/* ============ FLIP CARDS ============ */
.flip-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.flip-container {
    width: 100%;
    height: 310px;
    perspective: 1000px;
    cursor: pointer;
    perspective-origin: center;
}

.flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    transform: rotateX(0deg) rotateY(0deg);
}

.flip-container:hover .flipper {
    transform: rotateX(0deg) rotateY(180deg);
}

.front,
.back {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    backface-visibility: hidden;
    padding: 2rem;
}

.front {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.1), rgba(212, 165, 116, 0.1));
    border: 1px solid var(--gold);
    border-radius: 10px;
    color: var(--dark-emerald);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: rotateX(0deg) rotateY(0deg) translateZ(1px);
}

.back {
    background: white;
    color: var(--dark-gray);
    transform: rotateX(0deg) rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    border: 1px solid var(--light-gray);
    cursor: pointer;
}

.card-title {
    font-size: 1.9rem;
    font-weight: 700;
	color: var(--dark-gray);
	text-align: center;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.card-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
	text-align: center;
    text-transform: uppercase;
    font-weight: 600;
}

.card-back-content {
    width: 100%;
    margin-top: 0.5rem;
}

.card-back-content h3 {
    color: var(--emerald);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.card-back-content p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

.card-back-content .back-link {
    color: var(--emerald);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s;
    margin-top: 1rem;
    display: block;
}

.card-back-content .back-link:hover {
    color: var(--dark-emerald);
}

.arrow {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s, transform 0.3s;
}

.flip-container:hover .arrow {
    opacity: 1;
    transform: translateX(5px);
}

/* ============ INDEX PAGE STYLES ============ */
.author-cover-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.author-photo {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.author-photo:hover {
    transform: scale(1.05);
}

.author-info {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.author-info h2 {
    color: var(--dark-gray);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.author-info h1 {
    color: var(--emerald);
    font-size: 1.8rem;
    font-style: italic;
    margin-bottom: 1rem;
}

.author-info h3 {
    color: var(--emerald);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.author-info p {
    color: var(--text-gray);
    font-size: 1rem;
    margin: 0.5rem 0;
    line-height: 1.6;
}

.author-info .highlight {
    color: var(--dark-emerald);
    font-weight: bold;
}

.author-info-title {
    margin-top: 1rem;
}

/* ============ AUTHOR PAGE STYLES ============ */
.author-photo-section {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.interview-qa {
    margin-bottom: 2rem;
}

.interview-qa h4 {
    color: var(--emerald);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
}

/* ============ BOOKS SECTION ============ */
.books-section {
    background: white;
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.books-grid a {
    display: block;
    transition: transform 0.3s ease;
}

.books-grid a:hover {
    transform: scale(1.05);
}

.books-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* ============ SECTION HEADINGS ============ */
.section-heading {
    color: var(--emerald);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    margin-top: 0;
    border-bottom: 3px solid var(--gold);
    padding-bottom: 0.5rem;
}

/* ============ NON-FICTION SECTION ============ */
.non-fiction-section {
    margin-top: 2rem;
}

.upcoming-book {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.05), rgba(212, 165, 116, 0.05));
    border: 2px solid var(--emerald);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
}

.upcoming-book h3 {
    color: var(--dark-emerald);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.upcoming-book .coming-soon {
    color: var(--emerald);
    font-size: 1.3rem;
    font-weight: bold;
    margin: 0.5rem 0;
}

.upcoming-book .publisher {
    color: var(--dark-gray);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
}

.upcoming-book .book-description {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
    margin-top: 1rem;
    font-style: italic;
}

/* ============ 4-COLUMN GRID ============ */
.books-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.book-card {
    background: linear-gradient(135deg, rgba(51, 153, 102, 0.05), rgba(212, 165, 116, 0.05));
    border: 1px solid var(--gold);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.book-card h3 {
    color: var(--dark-gray);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.book-card .book-cover-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1rem;
    height: 280px;
}

.book-card .book-cover-wrapper img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.book-card .book-cover-wrapper img:hover {
    transform: scale(1.03);
}

.book-card .book-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.book-card .trailer-link {
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-block;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-print {
    background: var(--emerald);
    color: white;
}

.btn-print:hover {
    background: var(--dark-emerald);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 153, 102, 0.4);
}

.btn-kindle {
    background: var(--gold);
    color: var(--dark-gray);
}

.btn-kindle:hover {
    background: #c49564;
    color: var(--dark-gray);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

.btn-nook {
    background: var(--dark-gray);
    color: white;
}

.btn-nook:hover {
    background: #222;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 51, 51, 0.4);
}

/* ============ NON-FICTION STORE GRID ============ */
.nonfiction-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.nonfiction-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.nonfiction-card:hover {
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.nonfiction-card h3 {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.nonfiction-card .book-cover-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 1rem;
    height: 220px;
}

.nonfiction-card .book-cover-wrapper img {
    max-height: 220px;
    width: auto;
    max-width: 100%;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.nonfiction-card .book-cover-wrapper img:hover {
    transform: scale(1.03);
}

.nonfiction-card .btn {
    margin-top: auto;
}

/* ============ STORE PAGE STYLES ============ */

/* 2-Column Grid for al-Andalus Series */
.store-books-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 2rem;
}

.store-book-card {
    background: white;
    border: 1px solid var(--gold);
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.store-book-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.store-book-cover {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.store-book-cover img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.store-book-cover img:hover {
    transform: scale(1.03);
}

.store-book-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 1.5rem;
    gap: 0.25rem;
}

.store-book-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--emerald);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.store-book-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin: 0.25rem 0;
    font-style: italic;
    line-height: 1.3;
}

.store-book-year {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.store-book-links {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    width: 100%;
}

.btn-trailer {
    display: inline-block;
    background: transparent;
    color: var(--emerald);
    border: 2px solid var(--emerald);
    padding: 0.6rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-trailer:hover,
.btn-trailer:focus {
    background: var(--emerald);
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(51, 153, 102, 0.3);
    outline: none;
}

.btn-trailer:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn-trailer-placeholder {
    height: 42px;
    width: 100%;
}

/* ============ STORE NON-FICTION GRID ============ */
.store-nonfiction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.store-nonfiction-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.store-nonfiction-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.store-nonfiction-card .store-book-cover {
    width: 100%;
    margin-bottom: 1rem;
}

.store-nonfiction-card .store-book-cover img {
    width: 100%;
    height: auto;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}

.store-nonfiction-card .store-book-info {
    margin-bottom: 1rem;
}

.store-nonfiction-card .store-book-title {
    font-size: 1.1rem;
    font-style: normal;
}

.store-nonfiction-card .store-book-year {
    font-size: 0.85rem;
}

.store-nonfiction-card .btn {
    margin-top: auto;
    width: 100%;
}

/* ============ WHERE TO BUY SECTION ============ */
.store-where-to-buy {
    border-top: 1px solid var(--light-gray);
    padding-top: 2rem;
}

.store-links-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 1.5rem;
}

.store-links-column h3 {
    color: var(--dark-emerald);
    font-size: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gold);
}

.store-links-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.store-links-column li {
    margin-bottom: 0.75rem;
}

.store-links-column a {
    color: var(--emerald);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s ease;
}

.store-links-column a:hover,
.store-links-column a:focus {
    color: var(--dark-emerald);
    text-decoration: underline;
}

/* ============ ACCESSIBILITY ============ */
.btn:focus,
.store-links-column a:focus {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

.btn:focus:not(:focus-visible),
.store-links-column a:focus:not(:focus-visible) {
    outline: none;
}

.btn:focus-visible,
.store-links-column a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .store-book-card,
    .store-nonfiction-card,
    .store-book-cover img,
    .btn-trailer,
    .store-links-column a {
        transition: none;
    }

    .store-book-card:hover,
    .store-nonfiction-card:hover,
    .btn-trailer:hover,
    .btn-trailer:focus {
        transform: none;
    }

    .store-book-cover img:hover {
        transform: none;
    }
}

/* ============ RESPONSIVE - TABLETS ============ */
@media (max-width: 1100px) {
    .books-grid-4col {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .store-nonfiction-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .book-cover-section,
    .author-cover-section,
    .author-photo-section {
        position: static;
        max-width: 400px;
        margin: 0 auto;
    }

    header.hero h1 {
        font-size: 2rem;
    }

    .books-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .flip-cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .store-books-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .store-book-card {
        padding: 1.5rem;
    }


    .store-book-title {
        font-size: 1.25rem;
    }

    .store-links-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============ RESPONSIVE - MOBILE ============ */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .main-content {
        padding: 1.5rem;
    }

    header.hero {
        padding: 2rem 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .flip-cards-container {
        grid-template-columns: 1fr;
    }

    .flip-container {
        height: 280px;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .books-section {
        padding: 1.5rem;
    }

    .author-info h2 {
        font-size: 1.2rem;
    }

    .author-info h1 {
        font-size: 1.5rem;
    }

    .section-heading {
        font-size: 1.5rem;
    }

    .upcoming-book h3 {
        font-size: 1.4rem;
    }

    .upcoming-book .coming-soon {
        font-size: 1.1rem;
    }

    .books-grid-4col {
        grid-template-columns: 1fr;
    }

    .book-card .book-cover-wrapper {
        height: 260px;
    }

    .book-card .book-cover-wrapper img {
        max-height: 260px;
    }

    .store-nonfiction-grid {
        grid-template-columns: 1fr;
    }


    .store-book-links {
        flex-direction: column;
    }

    .store-book-links .btn {
        width: 100%;
    }
}
