/* Traditional Legends - Dark Academia Theme */

/* Smooth scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #2C2E30;
}
::-webkit-scrollbar-thumb {
    background: #85614B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #BFA76F;
}

/* Selection color */
::selection {
    background: rgba(191, 167, 111, 0.3);
    color: #EDE8DC;
}

/* Dropdown hover effect */
.dropdown-menu {
    transform: translateY(4px);
    transition: all 0.2s ease;
}
.group:hover .dropdown-menu {
    transform: translateY(0);
}

/* Hero overlay gradient */
.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(44, 46, 48, 0.6) 0%,
        rgba(59, 63, 47, 0.8) 50%,
        rgba(44, 46, 48, 0.95) 100%
    );
}

/* Card hover effects */
.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #BFA76F;
}

/* Gold text shimmer on hover */
.gold-shimmer {
    background: linear-gradient(90deg, #BFA76F, #D4C08E, #BFA76F);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.gold-shimmer:hover {
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

/* Decorative divider */
.ornament-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #85614B;
}
.ornament-divider::before,
.ornament-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #85614B, transparent);
}

/* CKEditor content styling */
.ck-content h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; margin-top: 2rem; margin-bottom: 1rem; color: #BFA76F; }
.ck-content h3 { font-family: 'Playfair Display', serif; font-size: 1.375rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #D4C08E; }
.ck-content h4 { font-family: 'Playfair Display', serif; font-size: 1.125rem; margin-top: 1.25rem; margin-bottom: 0.5rem; }
.ck-content p { margin-bottom: 1rem; line-height: 1.75; }
.ck-content blockquote {
    border-left: 3px solid #BFA76F;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #9D8B7B;
}
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
/* CKEditor 5 figure.image wrapper styling */
.ck-content figure.image,
.blog-content figure.image {
    display: block;
    margin: 1.5rem 0;
    text-align: center;
}
.ck-content figure.image img,
.blog-content figure.image img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    display: inline-block;
}
.ck-content figure.image figcaption,
.blog-content figure.image figcaption {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #9D8B7B;
    font-style: italic;
}
/* Image alignment styles from CKEditor */
.ck-content figure.image-style-side,
.blog-content figure.image-style-side {
    float: right;
    max-width: 50%;
    margin: 1rem 0 1rem 1.5rem;
}
.ck-content figure.image-style-align-left,
.blog-content figure.image-style-align-left {
    float: left;
    margin: 1rem 1.5rem 1rem 0;
}
.ck-content figure.image-style-align-center,
.blog-content figure.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
}
.ck-content figure.image-style-align-right,
.blog-content figure.image-style-align-right {
    float: right;
    margin: 1rem 0 1rem 1.5rem;
}
.ck-content a { color: #BFA76F; text-decoration: underline; }
.ck-content a:hover { color: #D4C08E; }
.ck-content ul, .ck-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.ck-content li { margin-bottom: 0.25rem; }
.ck-content pre {
    background: #2C2E30;
    border: 1px solid #85614B;
    border-radius: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}
.ck-content code {
    background: rgba(133, 97, 75, 0.5);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
}

/* Blog post content inherits CKEditor styles */
.blog-content h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; margin-top: 2rem; margin-bottom: 1rem; color: #BFA76F; }
.blog-content h3 { font-family: 'Playfair Display', serif; font-size: 1.375rem; margin-top: 1.5rem; margin-bottom: 0.75rem; color: #D4C08E; }
.blog-content p { margin-bottom: 1rem; line-height: 1.75; }
.blog-content blockquote {
    border-left: 3px solid #BFA76F;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #9D8B7B;
}
.blog-content img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; }
.blog-content a { color: #BFA76F; text-decoration: underline; }
.blog-content a:hover { color: #D4C08E; }
.blog-content ul, .blog-content ol { margin-bottom: 1rem; padding-left: 1.5rem; }
.blog-content li { margin-bottom: 0.25rem; }

/* Pagination styling */
.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.pagination a {
    color: #9D8B7B;
    border: 1px solid #85614B;
}
.pagination a:hover {
    color: #BFA76F;
    border-color: #BFA76F;
    background: rgba(191, 167, 111, 0.1);
}
.pagination .current {
    background: #BFA76F;
    color: #2C2E30;
    border: 1px solid #BFA76F;
    font-weight: 600;
}

/* Audio player custom styling */
audio {
    width: 100%;
    border-radius: 0.5rem;
}
audio::-webkit-media-controls-panel {
    background: #4B3B2A;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }

/* Tags checkbox styling for blog post form */
.tag-checkbox-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-checkbox-container li {
    list-style: none;
}
.tag-checkbox-container label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #4B3B2A;
    border: 1px solid #85614B;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.875rem;
    color: #9D8B7B;
}
.tag-checkbox-container label:hover {
    border-color: #BFA76F;
    color: #BFA76F;
}
.tag-checkbox-container input[type="checkbox"] {
    accent-color: #BFA76F;
}
.tag-checkbox-container input[type="checkbox"]:checked + span,
.tag-checkbox-container label:has(input:checked) {
    color: #BFA76F;
    border-color: #BFA76F;
    background: rgba(191, 167, 111, 0.1);
}

/* Video embed styling in blog content */
.blog-content figure.media,
.ck-content figure.media {
    margin: 1.5rem 0;
}
.blog-content oembed,
.ck-content oembed,
.blog-content .ck-media__wrapper,
.ck-content .ck-media__wrapper {
    display: block;
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 0.5rem;
    background: #2C2E30;
}
.blog-content oembed iframe,
.ck-content oembed iframe,
.blog-content .ck-media__wrapper iframe,
.ck-content .ck-media__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}
