/*
Theme Name: Melanie Brosowski
Theme URI: https://www.melanie-brosowski.de
Description: Child theme for Melanie Brosowski - Autorin & Dozentin website based on Twenty Twenty-Four
Author: Dennis Ruske
Template: twentytwentyfour
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: melanie-brosowski-child
*/

/* ==========================================================================
   Custom Styles for Melanie Brosowski Theme
   ========================================================================== */

/* Custom Color Variables */
:root {
    --color-navy: #1e3a5f;
    --color-olive: #6b5d4f;
    --color-gray-50: #f9fafb;
    --color-gray-100: #f3f4f6;
    --color-gray-200: #e5e7eb;
    --color-gray-600: #4b5563;
    --color-gray-700: #374151;
    --color-gray-800: #1f2937;
}

/* Typography - Merriweather (Serif) for content, Open Sans for UI */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--color-gray-800);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Merriweather', serif;
}

/* Header Styles */
#header-title {
    font-size: 3rem;
    font-weight: bold;
    color: #333;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-navy);
    margin-top: 0;
    letter-spacing: 0.1em;
}

.header-divider {
    border-color: var(--color-navy);
    opacity: 1;
    width: 20rem;

}

/* Navigation Styles */
.nav {
    border-top-color: rgba(var(--kubio-color-2), 0.38);
    border-top-width: 1px;
    border-top-style: solid;
}

/* Custom Border Utilities */
.border-navy {
    border-color: var(--color-navy) !important;
}

/* Active Navigation Item Styles */
.current-menu-item>a,
.current_page_item>a,
.current-menu-ancestor>a,
.current-menu-parent>a {
    background-color: var(--color-navy) !important;
    color: white !important;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    background-color: white !important;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    border: 1px solid var(--color-gray-200);
    min-width: 200px;
    z-index: 50;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    transition: background-color 0.3s;
}

.dropdown-menu a:hover {
    background-color: var(--color-gray-100);
}

/* Mobile Menu Transitions */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-menu.active {
    max-height: 1000px;
}

/* Mobile Dropdown */
.mobile-dropdown-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.mobile-dropdown-content.active {
    max-height: 500px;
}

.archive-header {
    background-color: var(--color-navy);
}

/* Button Styles */
.btn-primary {
    background-color: var(--color-olive);
    color: white;
    padding: 0.75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
}

/* Top Bar Styles */
.top-bar {
    background-color: var(--color-navy);
    padding: 0.5rem 0;
}

.social-icons a {
    color: white;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-gray-200);
}

/* Footer Styles */
.site-footer {
    background-color: var(--color-navy);
    border-top: 1px solid var(--color-gray-200);
}

.footer-links a {
    color: white;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* Book Archive & Single Book Styles */
.book-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.book-card {
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: 0.25rem;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.book-card:hover {
    box-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1);
}

.book-cover {
    width: 20%;
    height: auto;
    object-fit: cover;
}

.book-meta {
    padding: 1.5rem;
}

.book-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-gray-800);
}

.book-excerpt {
    font-family: 'Merriweather', serif;
    color: var(--color-gray-700);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    #header-title {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

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

/* Accessibility Improvements */
a:focus,
button:focus {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-navy);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}