/* Studio Valensi - Author Website Styles */

:root {
    --powder-green: #b7d1b4;
    --tan: #D2B48C;
    --black: #1a1a1a;
    --accent-red: #880000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
	--accent-green: #095200;
	--steel-gray: #556078;
	--hawthorn-blue: #2148BB;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    color: var(--black);
    line-height: 1.6;
    background-color: var(--light-gray);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
}

h4, h5, h6 {
    font-family: 'Cinzel', serif;
}

p, a, li {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
}

p {
		margin-bottom: 1.4em;
}

/* Header */
header {
    background-color: var(--black);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}


.bannerimage {
	background-color: var(--black);
    max-height: 750px;
	width: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 5%;
	background-image: url("assets/bannerimage.jpg");
	object-fit: cover;
	color: var(--powder-green);
}	 

.logo {
    height: 100px;
    width: 200px;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

nav ul li a {
    color: var(--powder-green);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--accent-red);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--powder-green);
    font-size: 1.8rem;
    cursor: pointer;
}

/* Banner Carousel */
.banner-carousel {
    position: relative;
    height: 500px;
    overflow: hidden;
    background-color: var(--tan);
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 5%;
    gap: 3rem;
}

.carousel-slide img {
    max-height: 400px;
    max-width: 300px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 3px solid var(--accent-red);
}

.carousel-content {
    flex: 1;
    max-width: 600px;
}

.carousel-content h2 {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.carousel-content p {
    font-size: 1.2rem;
    color: var(--black);
    line-height: 1.8;
}

/* Carousel Controls */
.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-btn {
    background-color: rgba(136, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background-color: var(--accent-red);
}

.carousel-dots {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: var(--accent-red);
}

/* Book Grid Section */
.book-grid-section {
    padding: 4rem 5%;
    background-color: var(--powder-green);
}

.book-grid-section h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 3rem;
}

.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.book-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(136, 0, 0, 0.4);
}

.book-card img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-bottom: 3px solid var(--accent-red);
}

.book-info {
    padding: 1.5rem;
}

.book-info h3 {
    font-size: 1.5rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.book-info .publish-date {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1rem;
}

.book-info .category {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
	font-weight: 500;
    color: var(--accent-green);
    margin-bottom: 1rem;
}

.book-info p {
    font-size: 1rem;
    color: var(--black);
    line-height: 1.6;
}

/* Welcome Section */
.welcome-section {
    padding: 5rem 5%;
    background-color: var(--tan);
    text-align: center;
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.welcome-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--black);
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #660000;
    transform: scale(1.05);
}

/* LATEST RELEASE Section */
.release-section {
    padding: 5rem 5%;
    background-color: var(--black);
    text-align: center;
}

.release-section h2 {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1.5rem;
}

.release-section p {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--black);
}
 
.cta-button {
    display: inline-block;
    background-color: var(--accent-red);
    color: white;
    padding: 1rem 3rem;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #660000;
    transform: scale(1.15);
}



/* ===================================
   LIBRARY CATALOG - TABBED INTERFACE
   =================================== */

.library-catalog {
    padding: 0;
    background-color: var(--light-gray);
}

/* Tab Navigation */
.catalog-tabs {
    display: flex;
    justify-content: center;
    background-color: var(--black);
    padding: 0;
    flex-wrap: wrap;
    border-bottom: 3px solid var(--accent-red);
}

.catalog-tab {
    background: none;
    border: none;
    color: var(--powder-green);
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    padding: 1.25rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.catalog-tab:hover {
    color: var(--tan);
    background-color: rgba(136, 0, 0, 0.3);
}

.catalog-tab.active {
    color: var(--white);
    background-color: var(--accent-red);
}

.catalog-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--tan);
    transition: width 0.3s ease;
}

.catalog-tab.active::after {
    width: 100%;
}

/* Tab Content Panels */
.catalog-panels {
    background-color: var(--powder-green);
    min-height: 400px;
}

.catalog-panel {
    display: none;
    padding: 3rem 5%;
    animation: fadeIn 0.4s ease;
}

.catalog-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Series Header */
.series-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--accent-red);
}

.series-header h2 {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.series-header .series-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--black);
    opacity: 0.8;
}

/* Works List */
.works-section {
    max-width: 900px;
    margin: 0 auto 2.5rem;
}

.works-section-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent-green);
}

.works-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.work-item {
    background-color: var(--white);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-left: 4px solid var(--accent-red);
}

.work-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(136, 0, 0, 0.2);
}

/* Work Item Variations */
.work-item.side-story {
    border-left-color: var(--tan);
    background-color: rgba(255, 255, 255, 0.85);
}

.work-item.short-story {
    border-left-color: var(--powder-green);
    border-left-width: 4px;
    background-color: var(--white);
}

.work-item.novella {
    border-left-color: var(--accent-green);
}

.work-item.future {
    border-left-color: #999;
    background-color: rgba(255, 255, 255, 0.6);
    opacity: 0.85;
}

.work-item.future .work-title {
    font-style: italic;
    color: #555;
}

/* Work Details */
.work-details {
    flex: 1;
    min-width: 200px;
}

.work-title {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: var(--black);
    margin-bottom: 0.25rem;
}

.work-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Status Badges */
.work-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-badge {
    font-family: 'Cinzel', serif;
    font-size: 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

.status-badge.published {
    background-color: var(--accent-green);
    color: var(--white);
}

.status-badge.upcoming {
    background-color: var(--accent-red);
    color: var(--white);
}

.status-badge.planned {
    background-color: #999;
    color: var(--white);
}

.release-date {
    font-family: 'Cormorant Garamond', serif;
    font-size: 0.95rem;
    color: var(--accent-red);
    font-weight: 600;
}

/* Type Labels */
.work-type {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

/* Future Works Section */
.future-works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.future-card {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    border: 2px dashed #999;
    text-align: center;
    transition: all 0.3s ease;
}

.future-card:hover {
    border-color: var(--accent-red);
    background-color: rgba(255, 255, 255, 0.9);
}

.future-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 0.5rem;
}

.future-card p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: #777;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-tab {
        padding: 1rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .series-header h2 {
        font-size: 2rem;
    }
    
    .work-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .work-status {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .catalog-tabs {
        flex-direction: column;
    }
    
    .catalog-tab {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(183, 209, 180, 0.2);
    }
    
    .catalog-tab:last-child {
        border-bottom: none;
    }
}







/* Newsletter Section */
.newsletter-section {
    padding: 4rem 5%;
    background-color: var(--light-gray);
    text-align: center;
}

.newsletter-section h2 {
    font-size: 2.5rem;
    color: var(--accent-red);
    margin-bottom: 1rem;
}

.newsletter-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--black);
}

.newsletter-placeholder {
    background-color: var(--light-gray);
    padding: 3rem;
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.newsletter-placeholder p {
    font-family: 'Cinzel', serif;
    color: #666;
    font-style: italic;
}

/* Social Section */
.social-section {
    padding: 4rem 5%;
    background-color: var(--black);
    text-align: center;
}

.social-section h2 {
    font-size: 2.5rem;
    color: var(--powder-green);
    margin-bottom: 2rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.social-icons a {
    color: var(--powder-green);
    font-size: 3rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
    color: var(--accent-red);
    transform: scale(1.2);
}

/* Footer */
footer {
    background-color: var(--black);
    color: var(--tan);
    text-align: center;
    padding: 2rem 5%;
    border-top: 2px solid var(--accent-red);
}

footer p {
    font-size: 1rem;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--accent-red);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.3s ease;
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #660000;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-wrap: wrap;
        justify-content: space-between;
        padding: 1rem 3%;
    }

    .logo {
        height: 80px;
        width: 160px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    nav.active {
        max-height: 500px;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
    }

    .carousel-slide {
        flex-direction: column;
        padding: 2rem 3%;
        gap: 1.5rem;
    }

    .carousel-slide img {
        max-height: 250px;
        max-width: 200px;
    }

    .carousel-content h2 {
        font-size: 1.8rem;
    }

    .carousel-content p {
        font-size: 1rem;
    }

    .book-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .welcome-section h2,
    .newsletter-section h2,
    .social-section h2 {
        font-size: 2rem;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .carousel-content h2 {
        font-size: 1.5rem;
    }

    .social-icons a {
        font-size: 2.5rem;
    }

    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
