/*
Theme Name:     Saliver Child
Theme URI:      https://Sosadiaz.com
Description:    Tema hijo de Saliver
Author:         Tu Nombre o Empresa
Author URI:     https://sosadiaz.com
Template:       saliver
Version:        1.0
*/

    /* Estilos para elementos individuales */
    .article-single-category {
        background: var(--primary-color, #10b981);
        color: #000000;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        display: inline-block;
    }

    .article-single-reading-time {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        display: inline-block;
    }

    .article-featured-img {
        width: 100%;
		max-height: 500px;
		object-fit: cover;
		border-radius: 12px !important;
		box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
		transition: transform 0.3s ease;
    }

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

    .article-placeholder-image {
        width: 100%;
        height: 400px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 12px;
        overflow: hidden;
    }

    .article-placeholder-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .article-placeholder-image .placeholder-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 2rem;
    }

    .article-placeholder-image h3 {
        color: white;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    .article-single-date {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .article-single-date .date-label {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .article-single-date .date-value {
        color: #111827;
        font-size: 1rem;
        font-weight: 600;
    }

    .article-single-author {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .article-single-author .author-avatar {
        flex-shrink: 0;
    }

    .article-single-author .author-avatar img {
        border-radius: 50%;
        border: 3px solid #f3f4f6;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .article-single-author .author-details {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .article-single-author .author-name {
        color: #111827;
        font-size: 1rem;
        font-weight: 600;
    }

    .article-single-author .author-role {
        color: #6b7280;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .article-single-title {
        color: #111827;
        font-size: 2rem;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
    }

    .article-single-excerpt {
        color: #6b7280;
        font-size: 1rem;
        line-height: 1.6;
        margin: 0;
    }

    .article-info-container {
        width: 100%;
        max-width: 1000px;
        margin: 0 auto;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }

    /* Sección 1: Meta información superior */
    .article-meta-top {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        margin-bottom: 1.5rem;
        flex-wrap: wrap;
    }

    .article-category {
        background: var(--primary-color, #10b981);
        color: #000000;
        padding: 4px 12px;
        border-radius: 4px;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .article-reading-time {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    /* Sección 2: Imagen destacada */
    .article-featured-image {
        width: 100%;
        height: 400px;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 2rem;
        box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .article-featured-image .featured-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s ease;
    }

    .article-featured-image:hover .featured-img {
        transform: scale(1.02);
    }

    .placeholder-featured-image {
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .placeholder-featured-image::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
    }

    .placeholder-content {
        position: relative;
        z-index: 2;
        text-align: center;
        padding: 2rem;
    }

    .placeholder-title {
        color: white;
        font-size: 2rem;
        font-weight: 700;
        margin: 0;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }

    /* Sección 3: Meta información inferior */
    .article-meta-bottom {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .article-publication-info {
        flex: 1;
    }

    .publication-date {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .date-label {
        color: #6b7280;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .date-value {
        color: #111827;
        font-size: 1rem;
        font-weight: 600;
    }

    .article-author-info {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .author-avatar {
        flex-shrink: 0;
    }

    .author-avatar img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        border: 3px solid #f3f4f6;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .author-details {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }

    .author-name {
        color: #111827;
        font-size: 1rem;
        font-weight: 600;
    }

    .author-role {
        color: #6b7280;
        font-size: 0.875rem;
        font-weight: 500;
    }

    /* Responsive Design */
    @media (max-width: 768px) {
        .article-info-container {
            padding: 0 1rem;
        }
        
        .article-meta-top {
            margin-bottom: 1rem;
        }
        
        .article-featured-image {
            height: 250px;
            margin-bottom: 1.5rem;
            border-radius: 8px;
        }
        
        .placeholder-title {
            font-size: 1.5rem;
        }
        
        .article-meta-bottom {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
        
        .article-author-info {
            align-self: flex-end;
        }
        
        .author-avatar img {
            width: 50px;
            height: 50px;
        }
        
        .author-name {
            font-size: 0.9rem;
        }
        
        .author-role {
            font-size: 0.8rem;
        }
    }

    @media (max-width: 480px) {
        .article-meta-top {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.75rem;
        }
        
        .article-featured-image {
            height: 200px;
        }
        
        .article-meta-bottom {
            text-align: center;
        }
        
        .article-author-info {
            align-self: center;
        }
    }
    
    /*////////////////////////*/
    
    
    .blog-cards-container {
        width: 100%;
        margin: 2rem 0;
    }

    .blog-cards-filters {
        display: flex;
        gap: 1rem;
        margin-bottom: 2rem;
        flex-wrap: wrap;
		justify-content:center
    }

    .filter-btn {
    padding: 5px 25px !important;
    border: 2px solid var(--primary-color) !important;
    background: #00000091 !important;
    color: #64748b;
    border-radius: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    line-height: 20px !important;
    font-weight: 500 !important;
    backdrop-filter: blur(5px);
    }

    .filter-btn:hover,
    .filter-btn.active {
        background: var(--primary-color) !important;
		color: black !important;
		border-color: var(--primary-color);
    }

    .blog-cards-grid {
        display: grid;
        gap: 2rem;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }

    .carousel-wrapper {
        position: relative;
        overflow: hidden;
    }

    .carousel-slides {
        display: flex;
        transition: transform 0.5s ease;
        gap: 2rem;
    }

    .carousel-nav {
		position: absolute !important;
		top: 50%;
		transform: translateY(-50%) !important;
		background: rgba(0, 0, 0, 0.7) !important;
		color: white !important;
		border: none !important;
		width: 50px !important;
		height: 50px !important;
		border-radius: 50% !important;
		cursor: pointer !important;
		font-size: 1.5rem !important;
		z-index: 10 !important;
		transition: background 0.3s ease !important;
		padding: 0 !important;
		line-height: 1 !important;
		backdrop-filter: blur(5px);
    }

    .carousel-nav:hover {
        background: rgba(0, 0, 0, 0.9);
    }

    .carousel-nav.prev {
        left: 1rem;
    }

    .carousel-nav.next {
        right: 1rem;
    }

    .blog-card {
        border-radius: 1rem;
        overflow: hidden;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        background: black;
        flex: 0 0 auto;
		cursor:pointer
    }

    .blog-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    }

    .card-image {
        position: relative;
        height: 550px;
        overflow: hidden;
		display:block
    }

    .card-image img,
    .placeholder-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .placeholder-image {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

    .image-overlay {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to bottom, 
            rgba(0, 0, 0, 0.1) 0%, 
            rgba(0, 0, 0, 0.3) 50%, 
            rgba(0, 0, 0, 0.8) 100%);
    }

    .card-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1.5rem;
        color: white;
		height:100%;
		display:flex;
		flex-direction:column
    }

    .card-meta-top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        gap: 0.75rem;
		flex-grow: 1;
    }

    .card-categories {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
    }

    .card-category {
        background: var(--primary-color);
		color: #000000;
		padding: 2px 10px;
		border-radius: 1rem;
		font-size: 0.75rem;
		font-weight: 600;
		letter-spacing: 0.05em;
		white-space: nowrap;
    }

    .card-category-more {
        background: rgba(16, 185, 129, 0.8);
        color: white;
        padding: 0.25rem 0.5rem;
        border-radius: 1rem;
        font-size: 0.7rem;
        font-weight: 600;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .card-tags {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .tag {
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        color: white;
        padding: 2px 10px;
        border-radius: 50px;
        font-size: 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.3);
        white-space: nowrap;
    }

    .tag-more {
        background: rgba(255, 255, 255, 0.15);
        font-size: 0.7rem;
        opacity: 0.9;
    }

    .card-title {
        margin: 0 0 1rem 0;
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.3;
    }

    .card-title a {
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

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

    .card-excerpt {
        margin-bottom: 1.5rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.95rem;
    }

    .card-author {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    .author-avatar {
        flex-shrink: 0;
    }

    .author-avatar img {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.3);
    }

    .author-name {
        font-weight: 600;
        color: white;
        display: block;
        margin-bottom: 0.25rem;
    }

    .post-meta {
        display: flex;
        gap: 1rem;
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.8);
    }

    .load-more-btn {
        display: block;
        margin: 2rem auto 0;
        padding: 0.75rem 2rem;
        background: #10b981;
        color: white;
        border: none;
        border-radius: 2rem;
        cursor: pointer;
        font-weight: 600;
        transition: background 0.3s ease;
    }

    .load-more-btn:hover {
        background: #059669;
    }

    .load-more-btn:disabled {
        background: #9ca3af;
        cursor: not-allowed;
    }

    .blog-cards-loading {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem;
        gap: 1rem;
    }

    .loading-spinner {
        width: 40px;
        height: 40px;
        border: 4px solid #f3f4f6;
        border-top: 4px solid #10b981;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    .hidden {
        display: none !important;
    }

    /* Responsive */
    @media (max-width: 768px) {
        .blog-cards-grid {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }
        
        .carousel-nav {
            width: 40px;
            height: 40px;
            font-size: 1.2rem;
        }
        
        .card-content {
            padding: 1rem;
        }
        
        .card-title {
            font-size: 1.25rem;
        }
        
        .post-meta {
            flex-direction: column;
            gap: 0.25rem;
        }
    }
