/* ===========================
   COMPONENT STYLES - MEJORADO
   =========================== */

/* Hero Section */
.haiku-hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #8b7355 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
    margin-bottom: 4rem;
    border-radius: 0;
    position: relative;
    overflow: hidden;
}

.haiku-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 300"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="1200" height="300" fill="url(%23grid)" /></svg>');
    opacity: 0.1;
}

.haiku-hero-title {
    color: white;
    margin-bottom: 1rem;
    font-size: 3.5rem;
    position: relative;
    z-index: 2;
    font-weight: 700;
    letter-spacing: -1px;
}

.haiku-hero-subtitle {
    font-size: 1.4rem;
    margin-bottom: 0;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Sección de "Sin contenido" */
.haiku-empty-state {
    background: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 4rem auto;
    max-width: 600px;
}

.haiku-empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.haiku-empty-title {
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.haiku-empty-text {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.haiku-empty-button {
    display: inline-block;
    background-color: #8b7355;
    color: white;
    padding: 1rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.haiku-empty-button:hover {
    background-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Sample Articles Grid */
.haiku-sample-articles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.haiku-sample-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.haiku-sample-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #8b7355 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: 700;
}

.haiku-sample-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.haiku-sample-date {
    font-size: 0.85rem;
    color: #8b7355;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.haiku-sample-title {
    font-size: 1.25rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.haiku-sample-text {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.haiku-sample-link {
    color: #8b7355;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.haiku-sample-link:hover {
    color: #1a1a1a;
}

/* Featured Article */
.haiku-featured {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin: 4rem 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.haiku-featured-image {
    background: linear-gradient(135deg, #1a1a1a 0%, #8b7355 100%);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.1);
}

.haiku-featured-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.haiku-featured-label {
    color: #8b7355;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.haiku-featured-title {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.haiku-featured-text {
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.haiku-featured-meta {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
    font-size: 0.9rem;
    color: #999;
}

/* Articles Grid */
.haiku-articles {
    display: grid;
    gap: 2rem;
}

.wp-block-query {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Article Card */
.haiku-article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.haiku-article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.haiku-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.haiku-article-meta {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.haiku-article-date {
    font-size: 0.875rem;
    color: #8b7355;
    margin: 0;
    font-weight: 600;
}

.haiku-article-title {
    padding: 0 1.5rem;
    color: #1a1a1a;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
}

.haiku-article-title a {
    color: #1a1a1a;
}

.haiku-article-title a:hover {
    color: #8b7355;
    text-decoration: none;
}

.haiku-article-excerpt {
    padding: 0 1.5rem 1.5rem;
    flex-grow: 1;
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pagination */
.wp-block-query-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.wp-block-query-pagination a,
.wp-block-query-pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    color: #8b7355;
    transition: all 0.3s ease;
    font-weight: 600;
}

.wp-block-query-pagination a:hover {
    background-color: #8b7355;
    color: white;
    text-decoration: none;
    border-color: #8b7355;
}

.wp-block-query-pagination .page-numbers.current {
    background-color: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}
