/* Wise Book Club Theme - Adding wisdom-themed design elements */

:root {
    /* Refined color palette with "wise" theme */
    --wisdom-primary: #9A1F40; /* Dark red - represents wisdom, depth, and tradition */
    --wisdom-secondary: #F0EAD6; /* Parchment/antique paper color - represents old books, scrolls */
    --wisdom-accent: #8B5A2B; /* Rich brown - represents aged leather book bindings */
    --wisdom-gold: #D4AF37; /* Gold - represents illuminated manuscripts, wisdom */
    --wisdom-dark: #5D3A6D; /* Deep purple - represents depth of thought */
    --wisdom-light: #F9F5E7; /* Light cream - represents aged paper */
}

/* Wisdom-themed header styling */
.navbar.wisdom-nav {
    background: linear-gradient(to right, var(--wisdom-primary), #7A1930);
    border-bottom: 3px solid var(--wisdom-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Owl logo styling */
.wisdom-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.wisdom-logo::before {
    content: '\f6b0'; /* Font Awesome owl icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    color: var(--wisdom-gold);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Wisdom quote in footer */
.wisdom-quote {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-style: italic;
    color: var(--wisdom-primary);
    background-color: var(--wisdom-light);
    position: relative;
    padding: 1rem 2rem;
    margin: 1rem 0;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid var(--wisdom-gold);
}

.wisdom-quote::before,
.wisdom-quote::after {
    content: '\f10d'; /* Font Awesome quote left */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    font-size: 1rem;
    color: var(--wisdom-gold);
    opacity: 0.9;
}

.wisdom-quote::before {
    top: 0;
    left: 0;
}

.wisdom-quote::after {
    content: '\f10e'; /* Font Awesome quote right */
    bottom: 0;
    right: 0;
}

/* Wisdom-themed cards */
.card.wisdom-card {
    border: none;
    border-radius: 8px;
    background-color: var(--wisdom-light);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--wisdom-primary), var(--wisdom-gold));
}

.card.wisdom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.card.wisdom-card .card-header {
    background-color: var(--wisdom-primary);
    color: white;
    border-bottom: 2px solid var(--wisdom-gold);
    font-family: 'Libre Baskerville', Georgia, serif;
}

/* Wisdom-themed buttons */
.btn-wisdom {
    background-color: var(--wisdom-primary);
    border-color: var(--wisdom-primary);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-wisdom:hover {
    background-color: #7A1930; /* Darker red */
    border-color: #7A1930;
    color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-wisdom:disabled {
    background-color: var(--wisdom-primary);
    border-color: var(--wisdom-primary);
    color: white;
    opacity: 0.8;
}


/* Special highlight button for search - makes it stand out more */
.btn-search-highlight {
    background: linear-gradient(135deg, var(--wisdom-gold), #F4D03F);
    border-color: var(--wisdom-gold);
    color: var(--wisdom-dark);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    border: 2px solid var(--wisdom-gold);
}

.btn-search-highlight:hover {
    background: linear-gradient(135deg, #F4D03F, var(--wisdom-gold));
    border-color: #F4D03F;
    color: var(--wisdom-dark);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-search-highlight:active {
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.3);
}


/* Wisdom-themed book cards */
.book-card.wisdom-book {
    border-left: 12px solid var(--wisdom-accent);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card.wisdom-book::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 12px;
    background: linear-gradient(to right, var(--wisdom-accent), #A67C52);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.book-card.wisdom-book:hover {
    transform: translateY(-5px);
    box-shadow: -3px 0 8px -2px rgba(0, 0, 0, 0.3), 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Wisdom-themed book spine */
.book-spine.wisdom-spine {
    background: linear-gradient(to right, var(--wisdom-accent), #A67C52);
    color: var(--wisdom-light);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    position: relative;
}

.book-spine.wisdom-spine::after {
    content: '';
    position: absolute;
    top: 10px;
    bottom: 10px;
    left: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

/* Wisdom-themed decorative elements */
.wisdom-decoration {
    position: relative;
}

.wisdom-decoration::before,
.wisdom-decoration::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Cpath fill='%23D4AF37' d='M12 2L9.19 8.63L2 9.24L7.46 13.97L5.82 21L12 17.27L18.18 21L16.54 13.97L22 9.24L14.81 8.63L12 2Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.2;
    pointer-events: none;
}

.wisdom-decoration::before {
    top: 10px;
    left: 10px;
}

.wisdom-decoration::after {
    bottom: 10px;
    right: 10px;
    transform: rotate(180deg);
}

/* Wisdom-themed badges */
.badge-wisdom {
    background: linear-gradient(135deg, var(--wisdom-primary), var(--wisdom-dark));
    color: white;
    padding: 0.5em 0.8em;
    border-radius: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.2);
    border: 2px solid var(--wisdom-gold);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Removed badge-wisdom::before to eliminate white flash on hover */


.badge-wisdom:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Wisdom-themed AI summary container */
.ai-summary-container.wisdom-summary {
    background-color: var(--wisdom-light);
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%238B5A2B' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    border: 1px solid var(--wisdom-accent);
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.ai-summary-container.wisdom-summary::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    border-width: 0 16px 16px 0;
    border-style: solid;
    border-color: var(--wisdom-accent) var(--wisdom-light);
    box-shadow: -1px 1px 1px rgba(0,0,0,0.1);
}

.ai-summary-label.wisdom-label {
    color: var(--wisdom-primary);
    font-variant: small-caps;
    letter-spacing: 1px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.ai-summary-label.wisdom-label::before {
    content: '\f02d'; /* Font Awesome book icon */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 0.5rem;
    color: var(--wisdom-gold);
}

/* Wisdom-themed bookshelf */
.bookshelf.wisdom-bookshelf {
    background: linear-gradient(to bottom, var(--wisdom-light), #E6DFC8);
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15), inset 0 -10px 10px -10px rgba(0,0,0,0.1);
}

.bookshelf.wisdom-bookshelf .books-container::after {
    background: linear-gradient(to bottom, var(--wisdom-accent), #7A4A1D);
}

/* Wisdom-themed feature icons */
.wisdom-feature-icon {
    color: var(--wisdom-primary);
    background-color: rgba(58, 86, 131, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.wisdom-feature-icon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 2px dashed var(--wisdom-gold);
    opacity: 0.5;
}

.wisdom-feature-icon:hover {
    transform: rotate(10deg);
}

.wisdom-feature-icon i {
    font-size: 2rem;
    color: var(--wisdom-primary);
}

/* Wisdom-themed section dividers */
.wisdom-divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.wisdom-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--wisdom-gold), transparent);
}

.wisdom-divider span {
    position: relative;
    background-color: white;
    padding: 0 1rem;
    font-family: 'Libre Baskerville', Georgia, serif;
    color: var(--wisdom-primary);
}

/* Wisdom-themed footer */
footer.wisdom-footer {
    background: linear-gradient(to right, var(--wisdom-primary), #7A1930);
    color: white;
    border-top: 3px solid var(--wisdom-gold);
}

/* Wisdom-themed scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--wisdom-light);
}

::-webkit-scrollbar-thumb {
    background: var(--wisdom-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--wisdom-dark);
}

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
    /* Card adjustments */
    .card.wisdom-card {
        margin-bottom: 1.5rem;
    }
    
    /* Feature icon adjustments */
    .wisdom-feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 0.75rem;
    }
    
    .wisdom-feature-icon i {
        font-size: 1.5rem;
    }
    
    /* Quote adjustments */
    .wisdom-quote {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .wisdom-quote::before,
    .wisdom-quote::after {
        font-size: 0.8rem;
    }
    
    /* Divider adjustments */
    .wisdom-divider {
        margin: 1.5rem 0;
    }
    
    /* Button adjustments */
    .btn-wisdom {
        padding: 0.375rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .btn-search-highlight {
        padding: 0.5rem 1rem;
        font-size: 1rem;
        font-weight: 700;
    }
    
    /* Decoration adjustments */
    .wisdom-decoration::before,
    .wisdom-decoration::after {
        width: 20px;
        height: 20px;
    }
    
    /* Footer adjustments */
    footer.wisdom-footer {
        padding: 1.5rem 0;
    }
    
    /* Navigation adjustments */
    .navbar.wisdom-nav {
        padding: 0.5rem 1rem;
    }
    
    .wisdom-logo::before {
        font-size: 1.2rem;
    }
}
