/*
Theme Name: Deporte al Dia
Theme URI: https://deportealdia.info
Author: Deporte al Dia Team
Author URI: https://deportealdia.info
Description: Tema de noticias deportivas responsive con soporte para múltiples deportes, personalización de colores, logo y redes sociales.
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: deportealdia
Tags: news, sports, responsive, custom-colors, custom-logo, custom-menu, featured-images
*/

/* ================================
   RESET Y BASE
   ================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================================
   VARIABLES CSS (Personalizables)
   ================================ */
:root {
    --primary-color: #3a9b8f;
    --primary-dark: #2d7a70;
    --secondary-color: #333;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --border-color: #ddd;
    --header-bg: #2c3e50;
}

/* ================================
   TOP BAR
   ================================ */
.top-bar {
    background: var(--header-bg);
    color: white;
    padding: 8px 0;
    font-size: 12px;
}

.top-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    gap: 20px;
}

.top-bar-left span {
    color: #bdc3c7;
}

.top-bar-left a {
    color: #bdc3c7;
    transition: color 0.3s;
}

.top-bar-left a:hover {
    color: var(--primary-color);
}

.social-icons-top {
    display: flex;
    gap: 10px;
}

.social-icons-top a {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    transition: all 0.3s;
}

.social-icons-top a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* ================================
   HEADER
   ================================ */
.main-header {
    background: white;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
}

.logo-section h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-section h1 span {
    color: var(--primary-color);
}

.logo-section a {
    text-decoration: none;
}

.custom-logo {
    max-height: 60px;
    width: auto;
}

.ad-section {
    width: 728px;
    height: 90px;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
    font-weight: bold;
}

/* ================================
   NAVEGACIÓN
   ================================ */
.main-nav {
    background: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.main-menu {
    display: flex;
    list-style: none;
    flex-wrap: wrap;
}

.main-menu li {
    position: relative;
}

.main-menu li a {
    display: block;
    padding: 15px 18px;
    color: white;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.3s;
}

.main-menu li:hover > a,
.main-menu li.current-menu-item > a {
    background: var(--primary-color);
}

/* Submenu */
.main-menu .sub-menu,
.main-menu .children {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
}

.main-menu li:hover > .sub-menu,
.main-menu li:hover > .children {
    display: block;
}

.main-menu .sub-menu li a,
.main-menu .children li a {
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px;
    cursor: pointer;
}

/* ================================
   CONTENIDO PRINCIPAL
   ================================ */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 30px;
}

.content-area {
    min-width: 0;
}

/* ================================
   POST DESTACADO
   ================================ */
.featured-post {
    margin-bottom: 30px;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.featured-post .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.featured-post .post-thumbnail img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s;
}

.featured-post:hover .post-thumbnail img {
    transform: scale(1.02);
}

.featured-post .post-content {
    padding: 25px;
    background: var(--secondary-color);
    color: white;
}

.featured-post .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 12px;
}

.featured-post .post-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.featured-post .post-title a {
    color: white;
}

.featured-post .post-title a:hover {
    color: var(--primary-color);
}

.featured-post .post-excerpt {
    color: #bdc3c7;
    font-size: 14px;
    line-height: 1.6;
}

.featured-post .post-meta {
    margin-top: 15px;
    font-size: 12px;
    color: #95a5a6;
}

/* ================================
   GRID DE POSTS
   ================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.post-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.post-card .post-thumbnail {
    position: relative;
    overflow: hidden;
}

.post-card .post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s;
}

.post-card:hover .post-thumbnail img {
    transform: scale(1.05);
}

.post-card .post-content {
    padding: 20px;
}

.post-card .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 10px;
}

.post-card .post-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.post-card .post-title a {
    color: var(--secondary-color);
}

.post-card .post-title a:hover {
    color: var(--primary-color);
}

.post-card .post-meta {
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.post-card .post-meta .date {
    margin-right: 15px;
}

.post-card .post-excerpt {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 3px;
    transition: background 0.3s;
}

.read-more:hover {
    background: var(--primary-dark);
}

/* ================================
   SIDEBAR
   ================================ */
.sidebar {
    min-width: 0;
}

.widget {
    background: white;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget-title {
    background: var(--primary-color);
    color: white;
    padding: 12px 15px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    margin: -20px -20px 20px -20px;
    border-radius: 4px 4px 0 0;
}

/* Search Widget */
.search-form {
    position: relative;
}

.search-form input[type="search"] {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    font-size: 14px;
}

.search-form button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 8px;
}

/* Recent Posts Widget */
.recent-posts-list {
    list-style: none;
}

.recent-post-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.recent-post-item:last-child {
    border-bottom: none;
}

.recent-post-thumb {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
    border-radius: 3px;
    overflow: hidden;
}

.recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-info {
    flex: 1;
}

.recent-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 5px;
}

.recent-post-title a {
    color: var(--secondary-color);
}

.recent-post-title a:hover {
    color: var(--primary-color);
}

.recent-post-date {
    font-size: 11px;
    color: #95a5a6;
}

/* Social Widget */
.social-widget {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    border-radius: 4px;
    color: white;
    transition: transform 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link.facebook { background: #3b5998; }
.social-link.twitter { background: #1da1f2; }
.social-link.instagram { background: #e4405f; }
.social-link.youtube { background: #cd201f; }
.social-link.tiktok { background: #000000; }
.social-link.telegram { background: #0088cc; }

.social-link i {
    font-size: 24px;
    margin-bottom: 5px;
}

.social-link span {
    font-size: 11px;
    font-weight: 600;
}

/* Newsletter Widget */
.newsletter-form input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-bottom: 10px;
    font-size: 14px;
}

.newsletter-form button {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.newsletter-form button:hover {
    background: var(--primary-dark);
}

/* Categories Widget */
.widget_categories ul,
.widget_archive ul {
    list-style: none;
}

.widget_categories li,
.widget_archive li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.widget_categories li:last-child,
.widget_archive li:last-child {
    border-bottom: none;
}

.widget_categories a,
.widget_archive a {
    color: var(--secondary-color);
    display: flex;
    justify-content: space-between;
}

.widget_categories a:hover,
.widget_archive a:hover {
    color: var(--primary-color);
}

.cat-count {
    background: var(--primary-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* ================================
   PAGINACIÓN
   ================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    color: var(--secondary-color);
    font-weight: 600;
    transition: all 0.3s;
}

.pagination a:hover,
.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* ================================
   SINGLE POST
   ================================ */
.single-post {
    background: white;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.single-post .post-header {
    margin-bottom: 25px;
}

.single-post .post-category {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 15px;
}

.single-post .post-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.single-post .post-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #7f8c8d;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.single-post .post-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.single-post .post-thumbnail {
    margin-bottom: 25px;
    border-radius: 4px;
    overflow: hidden;
}

.single-post .post-thumbnail img {
    width: 100%;
    height: auto;
}

.single-post .post-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.single-post .post-content p {
    margin-bottom: 20px;
}

.single-post .post-content h2,
.single-post .post-content h3 {
    margin: 30px 0 15px;
    color: var(--secondary-color);
}

.single-post .post-content img {
    border-radius: 4px;
    margin: 20px 0;
}

.single-post .post-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #666;
}

/* Post Tags */
.post-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.post-tags strong {
    color: var(--secondary-color);
    margin-right: 10px;
}

.post-tags a {
    display: inline-block;
    background: #ecf0f1;
    color: var(--secondary-color);
    padding: 5px 12px;
    margin: 3px;
    border-radius: 3px;
    font-size: 12px;
    transition: all 0.3s;
}

.post-tags a:hover {
    background: var(--primary-color);
    color: white;
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.post-navigation a {
    background: white;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.post-navigation a:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.post-navigation .nav-label {
    font-size: 11px;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 5px;
}

.post-navigation .nav-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary-color);
}

/* Author Box */
.author-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 4px;
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.author-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}

.related-posts h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--secondary-color);
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-post-item {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.related-post-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.related-post-item h4 {
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
}

.related-post-item h4 a {
    color: var(--secondary-color);
}

.related-post-item h4 a:hover {
    color: var(--primary-color);
}

/* Comments */
.comments-area {
    background: white;
    border-radius: 4px;
    padding: 30px;
    margin-top: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.comments-title {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

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

.comment {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--secondary-color);
}

.comment-metadata {
    font-size: 12px;
    color: #95a5a6;
}

.comment-content {
    padding-left: 65px;
    font-size: 14px;
    line-height: 1.6;
}

.comment-reply-link {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
}

/* Comment Form */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 3px;
    margin-bottom: 15px;
    font-size: 14px;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    background: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.comment-form input[type="submit"]:hover {
    background: var(--primary-dark);
}

/* ================================
   PAGE TEMPLATE
   ================================ */
.page-content {
    background: white;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.page-title {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary-color);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

.page-content p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* ================================
   ARCHIVE PAGE
   ================================ */
.archive-header {
    background: white;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.archive-title {
    font-size: 24px;
    color: var(--secondary-color);
}

.archive-description {
    margin-top: 10px;
    color: #666;
}

/* ================================
   SEARCH PAGE
   ================================ */
.search-results-header {
    background: white;
    padding: 25px;
    border-radius: 4px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.search-form-page {
    margin-top: 20px;
}

.search-form-page input[type="search"] {
    width: 100%;
    max-width: 500px;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.search-form-page button {
    padding: 15px 30px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    margin-left: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* ================================
   404 PAGE
   ================================ */
.error-404 {
    background: white;
    padding: 60px 30px;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.error-404 .page-title {
    font-size: 100px;
    color: var(--primary-color);
    border: none;
    margin-bottom: 0;
}

.error-404 h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.error-404 p {
    color: #666;
    margin-bottom: 30px;
}

/* ================================
   FOOTER
   ================================ */
.main-footer {
    background: var(--secondary-color);
    color: white;
    margin-top: 50px;
}

.footer-top {
    padding: 50px 0 30px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.footer-section h3 {
    font-size: 16px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: white;
}

.footer-section p {
    font-size: 14px;
    line-height: 1.8;
    color: #bdc3c7;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-section li:last-child {
    border-bottom: none;
}

.footer-section a {
    color: #bdc3c7;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section .date {
    display: block;
    font-size: 11px;
    color: #7f8c8d;
    margin-top: 3px;
}

.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #95a5a6;
}

/* ================================
   RESPONSIVE
   ================================ */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        order: 2;
    }
    
    .ad-section {
        display: none;
    }
}

@media (max-width: 768px) {
    .top-bar .container {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-toggle {
        display: block;
        width: 100%;
    }
    
    .main-menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    .main-menu.active {
        display: flex;
    }
    
    .main-menu li {
        width: 100%;
    }
    
    .main-menu .sub-menu,
    .main-menu .children {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
    }
    
    .main-menu li:hover > .sub-menu,
    .main-menu li:hover > .children {
        display: none;
    }
    
    .main-menu li.menu-item-has-children > a::after {
        content: '+';
        float: right;
    }
    
    .main-menu li.menu-item-has-children.active > a::after {
        content: '-';
    }
    
    .main-menu li.active > .sub-menu,
    .main-menu li.active > .children {
        display: block;
    }
    
    .featured-post .post-thumbnail img {
        height: 250px;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .single-post .post-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .social-widget {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .single-post .post-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ================================
   UTILIDADES
   ================================ */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.alignleft {
    float: left;
    margin-right: 20px;
}

.alignright {
    float: right;
    margin-left: 20px;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

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

.wp-caption-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-item {
    flex: 1;
    min-width: 200px;
}

/* Admin Bar Fix */
body.admin-bar .main-nav {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .main-nav {
        top: 46px;
    }
}

/* Customizer Preview */
.customize-partial-edit-shortcut {
    display: none !important;
}
