/* Main CSS - Specific styles for Kentucky Poet */

:root {
    --color-bg: #1B2338;
    --color-secondary: #2F3A63;
    --color-gold: #D6A85E;
    --color-peach: #E6A07C;
    --color-text: #E9E6DF;
    --color-dark: #0F1422;
    --max-width: 640px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.kp-drawer-open,
body.menu-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

a {
    color: var(--color-text);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--color-gold);
}

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 90%;
    z-index: 100;
}

.site-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    letter-spacing: 0.1em;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.main-navigation a:hover {
    opacity: 1;
    color: var(--color-gold);
}

/* Header Actions & Icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.kp-header-icon {
    color: var(--color-text);
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.kp-header-icon:hover,
.kp-header-icon:focus {
    opacity: 1;
    color: var(--color-gold);
    transform: translateY(-1px);
    outline: none;
}

.kp-header-icon:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 4px;
    border-radius: 2px;
}

.kp-header-icon svg {
    width: 22px;
    height: 22px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 4rem;
}

/* Home Page Specifics */
.home-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: radial-gradient(circle at center, #2F3A63 0%, #1B2338 70%);
}

.home-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    margin-bottom: 6rem;
    color: var(--color-gold);
    /* Fallback or specific tint */
    background: linear-gradient(to bottom, #E9E6DF 0%, #D6A85E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.9;
}

.home-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

.enter-button {
    border: 1px solid var(--color-gold);
    color: var(--color-text);
    padding: 1rem 3rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    transition: all 0.4s ease;
    background: transparent;
    cursor: pointer;
}

.enter-button:hover {
    background: rgba(214, 168, 94, 0.1);
    box-shadow: 0 0 20px rgba(214, 168, 94, 0.2);
}

/* Poems Index (Archive) */
.poem-list {
    max-width: 800px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.poem-list-header {
    text-align: center;
    margin-bottom: 4rem;
    color: var(--color-gold);
    font-size: 2.5rem;
}

.poem-item {
    display: flex;
    justify-content: center;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(214, 168, 94, 0.1);
    transition: all 0.3s ease;
}

.poem-item:hover {
    border-bottom-color: rgba(214, 168, 94, 0.3);
}

.poem-item a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-text);
}

.poem-item:hover a {
    color: var(--color-gold);
    text-shadow: 0 0 10px rgba(214, 168, 94, 0.3);
}

.poem-date {
    font-size: 0.9rem;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
}

/* Single Poem */
.single-poem-container {
    max-width: var(--max-width);
    margin: 8rem auto;
    padding: 0 2rem;
    position: relative;
}

.poem-header {
    margin-bottom: 3rem;
}

.single-poem-title {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 0.5rem;
}

.poem-author {
    font-family: 'Inter', sans-serif;
    font-style: italic;
    opacity: 0.7;
    margin-bottom: 2rem;
}

.poem-content {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.8;
    position: relative;
    padding-left: 2rem;
    /* Space for the gold line */
}

/* Gold vertical line */
.poem-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    opacity: 0.5;
}

.poem-content p {
    margin-bottom: 1.5rem;
}

/* Subscription Form */
.footer-subscription {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 400px;
    margin: 0 auto;
}

.footer-subscription h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-style: italic;
}

#subscription-form {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

#subscription-form input[type="email"] {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(214, 168, 94, 0.3);
    background: transparent;
    color: var(--color-paper);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    width: 100%;
}

#subscription-form input[type="email"]:focus {
    outline: none;
    border-color: var(--color-gold);
}

#subscription-form button {
    padding: 0.75rem 1.5rem;
    background: var(--color-gold);
    color: var(--color-midnight);
    border: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

#subscription-form button:hover {
    opacity: 0.9;
}

#subscription-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#subscription-message {
    margin-top: 1rem;
    font-size: 0.85rem;
    min-height: 1.2em;
}

#subscription-message.success {
    color: #4CAF50;
}

#subscription-message.error {
    color: #f44336;
}

/* Responsive */
@media (max-width: 768px) {
    .home-title {
        font-size: 3rem;
    }

    .single-poem-title {
        font-size: 2.5rem;
    }

    .poem-content {
        padding-left: 1.5rem;
        font-size: 1.2rem;
    }
}

/* Category Portal (Quiet Portals) */
.category-portal-container {
    max-width: 900px;
    margin: 8rem auto;
    padding: 0 2rem;
    text-align: center;
}

.portal-header {
    margin-bottom: 4rem;
}

.portal-title {
    font-size: 2.5rem;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.portal-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto;
    opacity: 0.4;
}

.category-bands {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.kp-category {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(150px, 22vw, 210px);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid rgba(214, 168, 94, 0.1);
    transition: border-color 0.4s ease;
}

.kp-category__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: block;
}

.kp-category__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    filter: grayscale(40%) blur(0px);
    transition: transform 0.7s ease, filter 0.7s ease;
    transform: scale(1.01);
}

.kp-category__placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg), var(--color-secondary));
}

.kp-category__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    opacity: 0.65;
    transition: opacity 0.7s ease;
    z-index: 2;
}

.kp-category__content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: padding 0.4s ease;
}

/* Odd categories (1st, 3rd...): Right-aligned */
.kp-category:nth-child(odd) .kp-category__content {
    align-items: flex-end;
    padding-right: 6rem;
    text-align: right;
}

/* Focal control for desktop only */
@media (min-width: 769px) {
    .kp-category:nth-child(even) .kp-category__content {
        align-items: flex-start;
        padding-left: 6rem;
        text-align: left;
    }

    .kp-category:nth-child(odd) .kp-category__media img {
        object-position: right center;
    }

    .kp-category:nth-child(even) .kp-category__media img {
        object-position: left center;
    }
}

@media (max-width: 768px) {
    .kp-category {
        height: 180px;
    }

    .kp-category:nth-child(odd) .kp-category__content {
        padding-right: 2rem;
    }

    .kp-category:nth-child(even) .kp-category__content {
        align-items: flex-start;
        padding-left: 2rem;
        text-align: left;
    }

    .kp-category__title {
        font-size: 1.8rem;
    }
}

.kp-category__title {
    color: var(--color-gold);
    font-size: 2.2rem;
    margin: 0 0 0.25rem 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 400;
}

.kp-category__sub {
    color: var(--color-text);
    opacity: 0.7;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-style: italic;
    margin: 0;
    letter-spacing: 0.02em;
}

/* Hover States */
.kp-category:hover,
.kp-category:focus {
    border-color: rgba(214, 168, 94, 0.4);
    outline: none;
}

.kp-category:hover .kp-category__media img,
.kp-category:focus .kp-category__media img {
    transform: scale(1.04);
    filter: grayscale(0%) blur(0px);
}

.kp-category:hover .kp-category__overlay,
.kp-category:focus .kp-category__overlay {
    opacity: 0.45;
}

/* View All Card Enhancements */
.kp-view-all-wrapper {
    margin-bottom: 6rem;
    /* Increased to separate from "Choose a Category" */
    text-align: center;
}

.kp-category--viewall {
    border: 1px solid rgba(214, 168, 94, 0.3) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Center "Begin Reading" vertically and horizontally */
.kp-category--viewall .kp-category__content {
    display: flex !important;
    flex-direction: column;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    text-align: center !important;
    height: 100%;
}

.kp-category--viewall .kp-category__title {
    margin: 0 !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8) !important;
    /* Stronger shadow for readability on lighter overlay */
}

.kp-category--viewall .kp-category__overlay {
    /* Inherits standard theme overlay (0.65) for consistency */
}

.kp-category--viewall:hover,
.kp-category--viewall:focus {
    transform: translateY(-4px);
    border-color: var(--color-gold) !important;
    box-shadow: 0 10px 30px rgba(214, 168, 94, 0.15);
}

.kp-category--viewall:hover .kp-category__overlay {
    opacity: 0.45;
    /* Consistent with global hover 0.45 */
}

/* Mobile Alignment (≤ 768px as requested in main.css context, or 640px per prompt) */
/* We'll use 768px to match existing breakpoints, but follow 640px center rule */
@media (max-width: 768px) {
    .home-title {
        font-size: 3rem;
    }

    .single-poem-title {
        font-size: 2.5rem;
    }

    .poem-content {
        padding-left: 1.5rem;
        font-size: 1.2rem;
    }

    .kp-category:nth-child(odd) .kp-category__content,
    .kp-category:nth-child(even) .kp-category__content {
        align-items: center;
        padding: 0 2rem;
        text-align: center;
    }

    .kp-category__title {
        font-size: 1.8rem;
    }
}

/* --- Poem Search (Universal) --- */
.kp-page-search {
    padding-top: 120px;
    /* Clear header */
    min-height: 80vh;
}

.kp-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.kp-page-header {
    text-align: center;
    margin-bottom: 4rem;
}

.kp-page-title {
    font-size: 3rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.kp-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto;
    opacity: 0.4;
}

.kp-search-section {
    margin-bottom: 6rem;
}

.kp-search-field-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.kp-search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(214, 168, 94, 0.3);
    color: var(--color-text);
    padding: 1rem 3rem 1rem 0;
    font-size: 1.4rem;
    font-family: 'Cormorant Garamond', serif;
    transition: border-color 0.3s ease;
}

.kp-search-field:focus {
    outline: none;
    border-bottom-color: var(--color-gold);
}

.kp-search-submit {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--color-gold);
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
}

.kp-search-submit:hover {
    opacity: 1;
}

/* Results */
.kp-results-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

.kp-result-item {
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(214, 168, 94, 0.1);
}

.kp-result-item:last-child {
    border-bottom: none;
}

.kp-result-title {
    font-size: 2rem;
    margin: 0 0 0.75rem 0;
}

.kp-result-title a {
    color: var(--color-gold);
}

.kp-result-excerpt {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    opacity: 0.8;
    line-height: 1.6;
}

.kp-read-link {
    color: var(--color-gold);
    font-style: italic;
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Suggestions & Helpers */
.kp-no-results,
.kp-search-suggestions {
    text-align: center;
    opacity: 0.8;
}

.kp-suggestions-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.kp-suggestion-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.kp-suggestion-list a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--color-gold);
}

.kp-search-helpers {
    margin-top: 2rem;
    font-size: 0.9rem;
}

.kp-link {
    color: var(--color-gold);
}

.kp-search-helpers .sep {
    margin: 0 1rem;
    opacity: 0.3;
}

@media (max-width: 768px) {
    .kp-page-search {
        padding-top: 100px;
    }

    .kp-page-title {
        font-size: 2.2rem;
    }

    .kp-search-field {
        font-size: 1.2rem;
    }

    .kp-result-title {
        font-size: 1.6rem;
    }
}

/* Footer Hierarchy & Support Whisper */
.site-footer {
    padding: 80px 20px 40px;
    text-align: center;
}

.footer-support-portal {
    margin-top: 6rem;
    margin-bottom: 5rem;
}

.kp-footer-support-intro {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 0.9rem;
    color: rgba(240, 230, 215, 0.60);
    letter-spacing: 0.02em;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-support-link {
    font-family: 'Inter', sans-serif;
    color: var(--color-gold);
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.8;
    padding: 0.5rem 1rem;
    /* Better tap target */
    transition: opacity 0.4s ease;
}

.footer-support-link:hover,
.footer-support-link:focus {
    opacity: 1;
    outline: none;
}

.footer-support-link:focus-visible {
    outline: 1px solid var(--color-gold);
    outline-offset: 4px;
}

.site-info {
    opacity: 0.25;
    font-size: 0.85rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(214, 168, 94, 0.05);
    padding-top: 3rem;
}

@media (max-width: 768px) {
    .footer-support-portal {
        margin-top: 4rem;
        margin-bottom: 4rem;
    }

    .kp-footer-support-intro {
        font-size: 0.95rem;
        padding: 0 20px;
    }

    .footer-support-link {
        font-size: 0.9rem;
    }
}

/* Support Page Styles */
.kp-support-page {
    padding: 120px 0 80px;
    text-align: center;
}

.kp-support-header {
    margin-bottom: 3rem;
}

.kp-support-subheading {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    opacity: 0.8;
}

.kp-support-body {
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.9;
}

.kp-support-body p {
    margin-bottom: 1.5rem;
}

.kp-venmo-section {
    margin-bottom: 5rem;
}

.kp-venmo-button {
    display: inline-block;
    padding: 18px 40px;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.kp-venmo-button:hover {
    background: rgba(214, 168, 94, 0.05);
    transform: translateY(-2px);
}

.kp-venmo-subtext {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.5;
    font-family: 'Inter', sans-serif;
}

.kp-support-footer {
    opacity: 0.4;
    font-style: italic;
    font-size: 0.9rem;
    margin-top: 4rem;
}

.container--narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Content Page Template --- */
.kp-content-page {
    max-width: 900px;
    margin: 8rem auto;
    padding: 0 2rem;
}

.kp-content-page .portal-header {
    margin-bottom: 4rem;
    text-align: center;
}

.kp-content-hero {
    position: relative;
    width: 100%;
    margin-bottom: 4rem;
    border: 1px solid rgba(214, 168, 94, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    height: clamp(200px, 40vw, 400px);
}

.kp-content-hero__media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.kp-content-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    opacity: 0.3;
    z-index: 2;
}

.kp-content-body {
    max-width: 700px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--color-text);
    opacity: 0.95;
}

.kp-content-body h2,
.kp-content-body h3,
.kp-content-body h4 {
    color: var(--color-gold);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.kp-content-body p {
    margin-bottom: 1.5rem;
}

.kp-content-body blockquote {
    margin: 3rem 0;
    padding: 0 2rem;
    border-left: 2px solid var(--color-gold);
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--color-text);
}

.kp-content-body ul,
.kp-content-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.kp-content-body li {
    margin-bottom: 0.5rem;
}

.kp-content-body hr {
    border: none;
    height: 1px;
    background: var(--color-gold);
    opacity: 0.2;
    margin: 4rem auto;
    width: 40px;
}

.kp-content-body a {
    color: var(--color-gold);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.kp-content-body a:hover {
    color: var(--color-peach);
}

.kp-content-body figure {
    margin: 3rem 0;
}

.kp-content-body figcaption {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 0.75rem;
    text-align: center;
    font-style: italic;
}

@media (max-width: 768px) {
    .kp-content-page {
        margin: 6rem auto;
    }

    .kp-content-hero {
        height: 250px;
    }

    .kp-content-body {
        font-size: 1.05rem;
    }
}

/* Vertical Spacing Refinements */
.site-footer {
    padding-top: 40px;
    /* Reduced from 80px */
}

.category-portal-container,
.kp-content-page,
.kp-support-page,
.poem-list {
    margin-bottom: 3rem !important;
    /* Reduced from 8rem */
}

.footer-support-portal {
    margin-top: 2.5rem;
    /* Reduced from 6rem */
    margin-bottom: 2rem;
    /* Reduced from 5rem */
}

.site-info {
    margin-top: 1rem;
    /* Reduced from 3rem */
    padding-top: 2rem;
    /* Reduced from 3rem */
}

@media (max-width: 768px) {
    .site-footer {
        padding-top: 30px;
    }

    .category-portal-container,
    .kp-content-page,
    .kp-support-page,
    .poem-list {
        margin-bottom: 2rem !important;
    }

    .footer-support-portal {
        margin-top: 2rem;
        margin-bottom: 1.5rem;
    }
}


.kp-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
    z-index: 1001;
}

.kp-hamburger:hover {
    color: var(--color-gold);
}

/* Supress default browser focus outlines for navigation triggers */
.kp-hamburger:focus,
.kp-drawer-close:focus,
.kp-drawer-link:focus {
    outline: none;
    box-shadow: none;
}

/* Unified Navigation Drawer */
.kp-unified-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: clamp(320px, 100vw, 400px);
    background: var(--color-bg);
    border-left: 1px solid rgba(214, 168, 94, 0.2);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3);
}

body.kp-drawer-open .kp-unified-drawer {
    transform: translateX(0);
}

.kp-drawer-header {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.kp-drawer-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--color-gold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.kp-drawer-close {
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
    padding: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kp-drawer-close:hover {
    color: var(--color-gold);
    transform: rotate(90deg);
}

.kp-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

/* Primary Nav in Drawer */
.kp-drawer-primary-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.kp-drawer-primary-list li {
    margin-bottom: 1.25rem;
}

.kp-drawer-primary-list a {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.kp-drawer-primary-list a:hover {
    color: var(--color-gold);
    transform: translateX(5px);
}

.kp-drawer-divider {
    height: 1px;
    background: rgba(214, 168, 94, 0.2);
    margin: 0 0 2rem 0;
    width: 60px;
}

/* Icons/Actions in Drawer */
.kp-drawer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.kp-drawer-item {
    margin-bottom: 1rem;
}

.kp-drawer-link {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.kp-drawer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.kp-drawer-icon img {
    max-width: 100%;
    max-height: 100%;
    filter: brightness(0) invert(1);
    transition: filter 0.3s ease;
}

.kp-drawer-label {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    letter-spacing: 0.02em;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.kp-drawer-link:hover .kp-drawer-label {
    color: var(--color-gold);
}

.kp-drawer-link:hover .kp-drawer-icon img {
    filter: invert(36%) sepia(85%) saturate(300%) hue-rotate(10deg) brightness(110%) contrast(90%);
}

@media (max-width: 768px) {
    .main-navigation {
        display: none;
    }

    .site-header {
        padding: 1.5rem 5%;
    }
}