/**
 * The Fight Buzz MMA - Custom Styles
 * Dark mode theme with yellow jacket colors 🐝
 */

/* Base Overrides */
html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Hide elements with x-cloak until Alpine loads */
[x-cloak] {
    display: none !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1e293b;
}

::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #F7EF0F;
}

/* Selection */
::selection {
    background: #F7EF0F;
    color: #0A0906;
}

/* Focus States */
*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid #F7EF0F;
    outline-offset: 2px;
}

/* WordPress-specific overrides */
.wp-block-image img {
    border-radius: 0.75rem;
}

.wp-block-quote {
    border-left: 4px solid #F7EF0F;
    padding-left: 1rem;
    font-style: italic;
}

/* Pagination Styles */
.page-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-numbers li {
    display: inline-block;
}

.page-numbers a,
.page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background: #1e293b;
    color: #f1f5f9;
    border-radius: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

.page-numbers a:hover {
    background: #F7EF0F;
    color: #0A0906;
}

.page-numbers .current {
    background: #F7EF0F;
    color: #0A0906;
}

/* Comments */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background: #334155;
    border: 1px solid #475569;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    color: #f1f5f9;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #F7EF0F;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #94a3b8;
    font-size: 0.875rem;
}

.comment-form .form-submit input {
    background: #F7EF0F;
    color: #0A0906;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background-color 0.2s;
}

.comment-form .form-submit input:hover {
    background: #C8C343;
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid #334155;
}

.comment .comment-author img {
    border-radius: 9999px;
    border: 2px solid #F7EF0F;
}

.comment .comment-meta {
    color: #94a3b8;
    font-size: 0.875rem;
}

.comment .comment-content {
    margin-top: 1rem;
    color: #cbd5e1;
}

/* HTMX loading indicator */
.htmx-indicator {
    display: none;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-request.htmx-indicator {
    display: inline-block;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Line clamp utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Article Content Styling (replaces Tailwind Typography) */
.tfb-content {
    color: #cbd5e1;
    line-height: 1.75;
}

.tfb-content > * + * {
    margin-top: 1.25em;
}

.tfb-content h1,
.tfb-content h2,
.tfb-content h3,
.tfb-content h4,
.tfb-content h5,
.tfb-content h6 {
    font-family: 'Oswald', sans-serif;
    color: #f1f5f9;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 2em;
    margin-bottom: 0.75em;
}

.tfb-content h1 { font-size: 2.25rem; }
.tfb-content h2 { font-size: 1.875rem; }
.tfb-content h3 { font-size: 1.5rem; }
.tfb-content h4 { font-size: 1.25rem; }

.tfb-content p {
    margin-bottom: 1.25em;
}

.tfb-content a {
    color: #F7EF0F;
    text-decoration: none;
    transition: color 0.2s;
}

.tfb-content a:hover {
    color: #C8C343;
    text-decoration: underline;
}

.tfb-content strong,
.tfb-content b {
    color: #f1f5f9;
    font-weight: 600;
}

.tfb-content em,
.tfb-content i {
    font-style: italic;
}

.tfb-content blockquote {
    border-left: 4px solid #F7EF0F;
    padding-left: 1.5rem;
    margin: 1.5em 0;
    font-style: italic;
    color: #94a3b8;
    background: rgba(30, 41, 59, 0.5);
    padding: 1rem 1.5rem;
    border-radius: 0 0.5rem 0.5rem 0;
}

.tfb-content blockquote p {
    margin: 0;
}

.tfb-content ul,
.tfb-content ol {
    padding-left: 1.5rem;
    margin: 1.25em 0;
}

.tfb-content ul {
    list-style-type: disc;
}

.tfb-content ol {
    list-style-type: decimal;
}

.tfb-content li {
    margin-bottom: 0.5em;
    padding-left: 0.5em;
}

.tfb-content li::marker {
    color: #F7EF0F;
}

.tfb-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5em 0;
}

.tfb-content figure {
    margin: 1.5em 0;
}

.tfb-content figcaption {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.75rem;
}

.tfb-content pre {
    background: #1e293b;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.875rem;
}

.tfb-content code {
    color: #F7EF0F;
    background: #1e293b;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-size: 0.875em;
}

.tfb-content pre code {
    background: transparent;
    padding: 0;
    color: #cbd5e1;
}

.tfb-content hr {
    border: none;
    border-top: 1px solid #334155;
    margin: 2em 0;
}

.tfb-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.tfb-content th,
.tfb-content td {
    border: 1px solid #334155;
    padding: 0.75rem 1rem;
    text-align: left;
}

.tfb-content th {
    background: #1e293b;
    color: #f1f5f9;
    font-weight: 600;
}

.tfb-content tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.3);
}

/* WordPress specific content elements */
.tfb-content .wp-block-image {
    margin: 1.5em 0;
}

.tfb-content .wp-block-image img {
    margin: 0;
}

.tfb-content .wp-block-image figcaption {
    margin-top: 0.5rem;
}

.tfb-content .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.tfb-content .alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.tfb-content .alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.tfb-content .wp-caption {
    max-width: 100%;
}

.tfb-content .wp-caption-text {
    color: #64748b;
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Video embeds */
.tfb-content iframe,
.tfb-content .wp-block-embed__wrapper {
    max-width: 100%;
    border-radius: 0.75rem;
    overflow: hidden;
}

.tfb-content .wp-block-embed {
    margin: 1.5em 0;
}

/* Gallery */
.tfb-content .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5em 0;
}

.tfb-content .wp-block-gallery img {
    margin: 0;
}

/* Ad placeholders */
.ad-placeholder {
    background: repeating-linear-gradient(
        45deg,
        #1e293b,
        #1e293b 10px,
        #334155 10px,
        #334155 20px
    );
}

/* Fight card hover effect */
.fight-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.fight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -5px rgba(247, 239, 15, 0.1);
}

/* Mobile menu animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-enter {
    animation: slideDown 0.2s ease-out;
}

/* Yellow accent gradient */
.buzz-gradient {
    background: linear-gradient(135deg, #F7EF0F 0%, #C8C343 100%);
}

/* Text gradient */
.text-buzz-gradient {
    background: linear-gradient(135deg, #F7EF0F 0%, #C8C343 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
