/*
Theme Name: CostaDelSol
Theme URI: https://www.costadelsoltmk.com/
Description: Custom WordPress Theme for Costa del Sol TMK — Agencia de Marketing Digital en Málaga. Blog sobre SEO, GEO, IA y Marketing para Restaurantes en la Costa del Sol.
Version: 1.0.3
Author: Costa del Sol TMK
Author URI: https://www.costadelsoltmk.com/
Text Domain: costadelsol
*/

/*
 * Este theme hereda todos los estilos del sitio estático padre (custom.css, bootstrap, etc.)
 * que se cargan desde la raíz del dominio (/css/).
 * Este archivo solo contiene estilos exclusivos del blog de WordPress.
 */

/* ================================================
   BLOG LAYOUT — 2 columnas (8 + 4)
================================================ */

.our-blog-post {
    padding: 80px 0;
}

/* Blog Post Card */
.blog-post-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.blog-post-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.13);
}
.blog-post-image {
    position: relative;
    overflow: hidden;
}
.blog-post-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.blog-post-item:hover .blog-post-image img {
    transform: scale(1.05);
}

/* Category Badge */
.blog-post-category {
    position: absolute;
    top: 14px;
    left: 14px;
}
.blog-post-category a {
    display: inline-block;
    background: var(--primary-color, #e53e2f);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: background 0.3s ease;
}
.blog-post-category a:hover {
    background: var(--secondary-color, #1a1a2e);
}

/* Post Content */
.blog-post-content {
    padding: 22px 24px 24px;
}

/* Meta */
.blog-post-meta ul {
    list-style: none;
    padding: 0;
    margin: 0 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.blog-post-meta ul li {
    font-size: 12px;
    color: #888;
    display: flex;
    align-items: center;
    gap: 5px;
}
.blog-post-meta ul li i {
    color: var(--primary-color, #e53e2f);
    font-size: 11px;
}

/* Title */
.blog-post-title h2 {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.blog-post-title h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-post-title h2 a:hover {
    color: var(--primary-color, #e53e2f);
}

/* Excerpt */
.blog-post-text {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* ================================================
   SINGLE POST
================================================ */

.single-blog-post .blog-post-item {
    box-shadow: none;
    border-radius: 0;
}
.single-blog-post .blog-post-item:hover {
    transform: none;
    box-shadow: none;
}
.single-post-featured-image img {
    height: 420px;
    border-radius: 16px;
    margin-bottom: 30px;
}
.blog-post-body {
    font-size: 16px;
    line-height: 1.85;
    color: #444;
}
.blog-post-body h2,
.blog-post-body h3,
.blog-post-body h4 {
    margin-top: 2em;
    margin-bottom: 0.75em;
    font-weight: 700;
}
.blog-post-body img {
    max-width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}
.blog-post-body a {
    color: var(--primary-color, #e53e2f);
}
.blog-post-body ul,
.blog-post-body ol {
    padding-left: 1.5em;
    margin-bottom: 1em;
}
.blog-post-body blockquote {
    border-left: 4px solid var(--primary-color, #e53e2f);
    padding: 16px 20px;
    margin: 24px 0;
    background: #f8f8f8;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #555;
}

/* Tags */
.blog-post-tags {
    margin: 24px 0;
    font-size: 13px;
    color: #666;
}
.blog-post-tags a {
    display: inline-block;
    background: #f0f0f0;
    color: #555;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 3px 3px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.blog-post-tags a:hover {
    background: var(--primary-color, #e53e2f);
    color: #fff;
}

/* Author Box */
.blog-author-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #f8f8f8;
    border-radius: 16px;
    padding: 24px;
    margin: 36px 0;
}
.blog-author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.blog-author-info h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
.blog-author-info p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Post Navigation */
.blog-post-navigation {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 24px 0;
    margin: 32px 0;
}
.blog-nav-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #aaa;
    margin-bottom: 6px;
}
.blog-nav-item a {
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.blog-nav-item a:hover {
    color: var(--primary-color, #e53e2f);
}

/* Related Posts */
.related-posts {
    margin-top: 40px;
}
.related-post-item .blog-post-image img {
    height: 150px;
}
.related-post-item .blog-post-content {
    padding: 12px 0 0;
}
.related-post-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.related-post-item h4 a {
    color: inherit;
    text-decoration: none;
}
.related-post-item h4 a:hover {
    color: var(--primary-color, #e53e2f);
}
.blog-post-date {
    font-size: 12px;
    color: #999;
}

/* ================================================
   SIDEBAR
================================================ */

.sidebar-widget {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.widget-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-color, #e53e2f);
    position: relative;
}

/* Search Widget */
.sidebar-search-box {
    display: flex;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.sidebar-search-box:focus-within {
    border-color: var(--primary-color, #e53e2f);
}
.sidebar-search-box .search-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 11px 18px;
    font-size: 14px;
    background: transparent;
}
.sidebar-search-box .search-submit {
    border: none;
    background: var(--primary-color, #e53e2f);
    color: #fff;
    padding: 0 18px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 14px;
}
.sidebar-search-box .search-submit:hover {
    background: var(--secondary-color, #1a1a2e);
}

/* Recent Posts Widget */
.sidebar-recent-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-recent-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.sidebar-recent-thumb {
    flex-shrink: 0;
}
.sidebar-recent-thumb img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.sidebar-recent-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: inherit;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}
.sidebar-recent-title:hover {
    color: var(--primary-color, #e53e2f);
}
.sidebar-recent-date {
    font-size: 11px;
    color: #aaa;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Categories Widget */
.sidebar-categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar-categories-list li {
    border-bottom: 1px solid #f0f0f0;
}
.sidebar-categories-list li:last-child {
    border-bottom: none;
}
.sidebar-categories-list li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    gap: 8px;
}
.sidebar-categories-list li a i {
    font-size: 11px;
    color: var(--primary-color, #e53e2f);
    margin-right: 4px;
}
.sidebar-categories-list li a:hover {
    color: var(--primary-color, #e53e2f);
}
.cat-count {
    margin-left: auto;
    background: #f0f0f0;
    color: #777;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
}

/* Tag Cloud Widget */
.tagcloud a {
    display: inline-block;
    background: #f5f5f5;
    color: #555;
    padding: 5px 13px;
    border-radius: 20px;
    margin: 4px 3px;
    text-decoration: none;
    font-size: 12px !important;
    font-weight: 500;
    transition: all 0.3s ease;
}
.tagcloud a:hover {
    background: var(--primary-color, #e53e2f);
    color: #fff;
}

/* CTA Widget */
.sidebar-cta-widget {
    background: var(--secondary-color, #1a1a2e);
    color: #fff;
    text-align: center;
}
.sidebar-cta-icon {
    font-size: 36px;
    color: var(--primary-color, #e53e2f);
    margin-bottom: 16px;
    display: block;
}
.sidebar-cta-widget h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
}
.sidebar-cta-widget p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 20px;
    line-height: 1.6;
}
.sidebar-cta-btn {
    display: inline-block;
}

/* ================================================
   PAGINACIÓN
================================================ */

.page-pagination {
    margin-top: 40px;
}
.page-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f5f5f5;
    color: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.page-pagination .page-numbers:hover,
.page-pagination .page-numbers.current {
    background: var(--primary-color, #e53e2f);
    color: #fff;
}
.page-pagination .page-numbers.dots {
    background: transparent;
    width: auto;
}

/* ================================================
   404 PAGE
================================================ */

.error-404-section {
    padding: 100px 0;
}
.error-404-box {
    max-width: 600px;
    margin: 0 auto;
}
.error-404-number {
    font-size: 140px;
    font-weight: 900;
    line-height: 1;
    color: var(--primary-color, #e53e2f);
    opacity: 0.15;
    margin-bottom: 20px;
    font-family: 'Sora', sans-serif;
}
.error-404-search {
    max-width: 420px;
    margin: 28px auto;
}
.error-404-links {
    margin-top: 24px;
}

/* ================================================
   NO RESULTS
================================================ */

.blog-no-results {
    padding: 60px 0;
}

/* ================================================
   COMMENTS — WordPress native styling
================================================ */

.blog-comments-section {
    margin-top: 40px;
}
.comment-list {
    list-style: none;
    padding: 0;
}
.comment-body {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.comment-author img {
    border-radius: 50%;
    margin-right: 12px;
}
.comment-respond .comment-reply-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}
.comment-form input,
.comment-form textarea {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 14px;
    outline: none;
    transition: border-color 0.3s ease;
    font-family: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color, #e53e2f);
}
.comment-form textarea {
    height: 140px;
    resize: vertical;
}
.comment-form .submit {
    background: var(--primary-color, #e53e2f);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 13px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}
.comment-form .submit:hover {
    background: var(--secondary-color, #1a1a2e);
}

/* ================================================
   RESPONSIVE
================================================ */

@media (max-width: 991px) {
    #blog-sidebar {
        margin-top: 40px;
    }
    .single-post-featured-image img {
        height: 260px;
    }
}

@media (max-width: 767px) {
    .our-blog-post {
        padding: 50px 0;
    }
    .blog-post-image img {
        height: 180px;
    }
    .error-404-number {
        font-size: 90px;
    }
}
