/* Blog Page Styles */

/* Hero Section */
.blog-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at top left, rgba(220, 20, 60, 0.02) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(178, 34, 34, 0.02) 0%, transparent 50%),
        linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    padding: 8rem 0 4rem;
}

.blog-hero-red-accent {
    position: absolute;
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, var(--primary-red) 50%, transparent 100%);
    opacity: 0.3;
    z-index: 0;
}

.blog-hero-red-accent-1 {
    top: 20%;
    left: 10%;
    transform: rotate(-45deg);
    animation: accentPulse 3s ease-in-out infinite;
}

.blog-hero-red-accent-2 {
    bottom: 25%;
    right: 15%;
    transform: rotate(45deg);
    animation: accentPulse 3s ease-in-out infinite 1.5s;
}

@keyframes accentPulse {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.2);
    }
}

.blog-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.blog-floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.blog-shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    animation: floatShape 20s ease-in-out infinite;
}

.blog-shape-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.blog-shape-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 15%;
    animation-delay: -7s;
}

.blog-shape-3 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    animation-delay: -14s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.blog-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.blog-hero-number {
    font-size: 8rem;
    font-weight: 900;
    color: rgba(220, 20, 60, 0.1);
    line-height: 1;
    margin-bottom: -2rem;
    letter-spacing: -0.05em;
}

.blog-hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(178, 34, 34, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-light);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Content Section */
.blog-content-section {
    padding: 6rem 0;
    background: 
        radial-gradient(ellipse at top right, rgba(220, 20, 60, 0.03) 0%, transparent 50%),
        linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    min-height: 60vh;
}

.blog-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Blog Posts Grid - Uniform Layout */
.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Photo Items - Uniform Size with Frames */
.blog-photo-item {
    position: relative;
    border-radius: 20px;
    overflow: visible;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(250, 250, 250, 0.95) 100%);
    padding: 12px;
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(220, 20, 60, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease-out backwards;
    aspect-ratio: 16 / 9;
    width: 100%;
}

.blog-photo-item::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border: 3px solid rgba(220, 20, 60, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
    transition: all 0.3s ease;
}

.blog-photo-item::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    pointer-events: none;
    z-index: 2;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border: 2px solid rgba(220, 20, 60, 0.15);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.6s ease-out backwards;
}

.blog-post:nth-child(1) {
    animation-delay: 0.1s;
}

.blog-post:nth-child(2) {
    animation-delay: 0.2s;
}

.blog-post:nth-child(3) {
    animation-delay: 0.3s;
}

.blog-post:nth-child(4) {
    animation-delay: 0.4s;
}

.blog-post:nth-child(5) {
    animation-delay: 0.5s;
}

.blog-post:nth-child(6) {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-photo-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.18),
        0 0 0 2px rgba(220, 20, 60, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 10;
}

.blog-photo-item:hover::before {
    border-color: rgba(220, 20, 60, 0.4);
    border-width: 4px;
}

.blog-photo-item:hover::after {
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.15);
}

.blog-photo {
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 10px;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 0;
}

.blog-photo-item:hover .blog-photo {
    transform: scale(1.05);
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.blog-photo-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
    border-radius: 10px;
    z-index: 3;
}

.blog-photo-item:hover .blog-photo-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.blog-photo-icon {
    font-size: 3rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 10px rgba(255, 255, 255, 0.3));
}

.blog-photo-item:hover .blog-photo-icon {
    opacity: 1;
    transform: scale(1);
}

/* Corner Decorations */
.blog-photo-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    z-index: 4;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.blog-photo-corner-tl {
    top: 16px;
    left: 16px;
    border-top: 3px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
    border-top-left-radius: 8px;
}

.blog-photo-corner-tr {
    top: 16px;
    right: 16px;
    border-top: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-red);
    border-top-right-radius: 8px;
}

.blog-photo-corner-bl {
    bottom: 16px;
    left: 16px;
    border-bottom: 3px solid var(--primary-red);
    border-left: 3px solid var(--primary-red);
    border-bottom-left-radius: 8px;
}

.blog-photo-corner-br {
    bottom: 16px;
    right: 16px;
    border-bottom: 3px solid var(--primary-red);
    border-right: 3px solid var(--primary-red);
    border-bottom-right-radius: 8px;
}

.blog-photo-item:hover .blog-photo-corner {
    opacity: 1;
    width: 35px;
    height: 35px;
}

.blog-photo-item:hover .blog-photo-corner-tl {
    top: 14px;
    left: 14px;
}

.blog-photo-item:hover .blog-photo-corner-tr {
    top: 14px;
    right: 14px;
}

.blog-photo-item:hover .blog-photo-corner-bl {
    bottom: 14px;
    left: 14px;
}

.blog-photo-item:hover .blog-photo-corner-br {
    bottom: 14px;
    right: 14px;
}

.blog-post:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.9);
    border-color: rgba(220, 20, 60, 0.3);
}

.blog-post-media {
    position: relative;
    width: 100%;
    padding-top: 75%; /* 4:3 aspect ratio */
    overflow: hidden;
    background: #f0f0f0;
}

.blog-image,
.blog-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.blog-post:hover .blog-image,
.blog-post:hover .blog-video {
    transform: scale(1.1);
}

.blog-video {
    background: #000;
}

.blog-post-content {
    padding: 2rem;
}

.blog-post-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.8rem;
}

.blog-post-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(178, 34, 34, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-post-description {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Empty State */
.blog-empty-state {
    text-align: center;
    padding: 6rem 2rem;
    display: none;
}

.blog-empty-state.show {
    display: block;
}

.blog-empty-icon {
    font-size: 5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(0 5px 15px rgba(220, 20, 60, 0.2));
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.blog-empty-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-dark);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-red) 0%, rgba(178, 34, 34, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.blog-empty-description {
    font-size: 1.2rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
/* Responsive Design - Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .blog-hero {
        padding: 7rem 0 3.5rem;
        min-height: 85vh;
    }
    
    .blog-hero-number {
        font-size: 6rem;
    }
    
    .blog-hero-title {
        font-size: clamp(2.5rem, 6vw, 5rem);
    }
    
    .blog-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .blog-content-section {
        padding: 5rem 0;
    }
    
    .blog-content-wrapper {
        padding: 0 2rem;
    }
    
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .blog-post-card {
        padding: 2rem;
    }
    
    .blog-post-title {
        font-size: 1.5rem;
    }
    
    .blog-post-excerpt {
        font-size: 0.95rem;
    }
    
    .blog-lightbox-content {
        max-width: 90%;
        max-height: 90vh;
    }
    
    .blog-lightbox-prev {
        left: -60px;
    }
    
    .blog-lightbox-next {
        right: -60px;
    }
}

@media (max-width: 768px) {
    .blog-hero {
        padding: 6rem 0 3rem;
        min-height: 80vh;
    }

    .blog-hero-title {
        font-size: 3rem;
    }

    .blog-hero-subtitle {
        font-size: 1.1rem;
    }

    .blog-content-section {
        padding: 4rem 0;
    }

    .blog-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .blog-lightbox-prev {
        left: 10px;
    }

    .blog-lightbox-next {
        right: 10px;
    }

    .blog-lightbox-close {
        top: 10px;
        right: 10px;
    }

    .blog-post-content {
        padding: 1.5rem;
    }

    .blog-post-title {
        font-size: 1.3rem;
    }

    .blog-empty-title {
        font-size: 2rem;
    }

    .blog-empty-description {
        font-size: 1rem;
    }
}

/* Lightbox */
.blog-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(0px);
    pointer-events: none;
}

.blog-lightbox.active {
    opacity: 1;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.blog-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lightboxZoomIn 0.3s ease;
    transition: opacity 0.2s ease;
}

@keyframes lightboxZoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.blog-lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
    line-height: 1;
    font-weight: 300;
}

.blog-lightbox-close:hover {
    background: rgba(220, 20, 60, 0.8);
    border-color: var(--primary-red);
    transform: rotate(90deg);
}

.blog-lightbox-prev,
.blog-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 100001;
    line-height: 1;
    font-weight: 300;
}

.blog-lightbox-prev {
    left: -80px;
}

.blog-lightbox-next {
    right: -80px;
}

.blog-lightbox-prev:hover,
.blog-lightbox-next:hover {
    background: rgba(220, 20, 60, 0.8);
    border-color: var(--primary-red);
    transform: translateY(-50%) scale(1.1);
}

@media (max-width: 480px) {
    .blog-hero-number {
        font-size: 5rem;
    }

    .blog-hero-title {
        font-size: 2.5rem;
    }

    .blog-content-wrapper {
        padding: 0 1rem;
    }

    .blog-posts-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .blog-lightbox-prev {
        left: 10px;
    }

    .blog-lightbox-next {
        right: 10px;
    }

    .blog-lightbox-close {
        top: 10px;
        right: 10px;
    }
}

