/**
 * IRV Blog Villas Shortcode Styles
 * Elegant design with smooth animations
 */

/* Container */
.irv-blog-villas-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

@media (max-width: 768px) {
    .irv-blog-villas-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }
}

/* Post Cards */
.irv-post-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.irv-post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.irv-post-card--featured {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .irv-post-card--featured {
        grid-column: span 1;
    }
}

.irv-post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.irv-post-card--featured .irv-post-card__link {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    min-height: 280px;
}

@media (max-width: 768px) {
    .irv-post-card--featured .irv-post-card__link {
        grid-template-columns: 1fr;
    }
}

.irv-post-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.irv-post-card--featured .irv-post-card__image {
    aspect-ratio: auto;
    height: 100%;
    min-height: 280px;
}

.irv-post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.irv-post-card:hover .irv-post-card__image img {
    transform: scale(1.08);
}

.irv-post-card__category {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.irv-post-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.irv-post-card--featured .irv-post-card__content {
    padding: 30px;
}

.irv-post-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.irv-post-card--featured .irv-post-card__title {
    font-size: 24px;
    margin-bottom: 15px;
}

.irv-post-card:hover .irv-post-card__title {
    color: #8B7355;
}

.irv-post-card__excerpt {
    margin: 0 0 15px;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.irv-post-card__date {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Villas CTA Section */
.irv-villas-cta-section {
    grid-column: span 2;
    margin: 20px 0;
    padding: 40px;
    background: linear-gradient(135deg, #f8f6f3 0%, #f0ebe4 100%);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.irv-villas-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 115, 85, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .irv-villas-cta-section {
        grid-column: span 1;
        padding: 30px 20px;
        margin: 15px 0;
    }
}

.irv-villas-cta-header {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.irv-villas-cta-label {
    display: inline-block;
    background: #8B7355;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.irv-villas-cta-title {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .irv-villas-cta-title {
        font-size: 22px;
    }
}

/* Villas Grid */
.irv-villas-cta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 1;
}

@media (max-width: 992px) {
    .irv-villas-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .irv-villas-cta-grid {
        grid-template-columns: 1fr;
    }
}

/* Villa Cards */
.irv-villa-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.irv-villa-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.irv-villa-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.irv-villa-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.irv-villa-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.irv-villa-card:hover .irv-villa-card__image img {
    transform: scale(1.1);
}

.irv-villa-card__location {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    color: #1a1a1a;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.irv-villa-card__location svg {
    color: #8B7355;
}

.irv-villa-card__content {
    padding: 18px;
}

.irv-villa-card__title {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.irv-villa-card:hover .irv-villa-card__title {
    color: #8B7355;
}

.irv-villa-card__features {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.irv-villa-card__feature {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #666;
}

.irv-villa-card__feature svg {
    color: #8B7355;
}

/* CTA Footer */
.irv-villas-cta-footer {
    text-align: center;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.irv-villas-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #8B7355;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 115, 85, 0.3);
}

.irv-villas-cta-button:hover {
    background: #7a6349;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 115, 85, 0.4);
    color: #fff;
}

.irv-villas-cta-button svg {
    transition: transform 0.3s ease;
}

.irv-villas-cta-button:hover svg {
    transform: translateX(4px);
}

/* Animation on scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.irv-post-card,
.irv-villa-card {
    animation: fadeInUp 0.6s ease forwards;
}

.irv-post-card:nth-child(1) { animation-delay: 0.1s; }
.irv-post-card:nth-child(2) { animation-delay: 0.2s; }
.irv-villas-cta-section { animation-delay: 0.3s; }
.irv-post-card:nth-child(4) { animation-delay: 0.4s; }
.irv-post-card:nth-child(5) { animation-delay: 0.5s; }

.irv-villa-card:nth-child(1) { animation-delay: 0.1s; }
.irv-villa-card:nth-child(2) { animation-delay: 0.2s; }
.irv-villa-card:nth-child(3) { animation-delay: 0.3s; }
