/* Blog Single Page Styles */
.blog-single {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, rgba(43, 43, 53, 0.7) 0%, rgba(25, 27, 34, 0.8) 100%);
    position: relative;
    overflow: hidden;
    --primary-color: #e52d27;
    --primary-color-rgb: 229, 45, 39;
    --secondary-color: #2575fc;
    --secondary-color-rgb: 37, 117, 252;
    --text-color: #f5f5f5;
    --glass-opacity: 0.15;
    --glass-border-opacity: 0.2;
    --glass-blur: 15px;
    --transition-speed: 0.4s;
    --animation-timing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-single::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1516549655055-1433a1682f8e?ixlib=rb-4.0.3&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.blog-single-content {
    background: rgba(255, 255, 255, var(--glass-opacity));
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 
                inset 0 0 0 1px rgba(255, 255, 255, var(--glass-border-opacity));
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    color: var(--text-color);
    animation: fadeInUp 1s ease-out forwards;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: all var(--transition-speed) cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-single-content:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    transform: translateY(-5px);
}

/* Floating gradient background effects */
.blog-single-content::before {
    content: '';
    position: absolute;
    top: -40%;
    left: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(var(--secondary-color-rgb), 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: -1;
    opacity: 0.6;
    animation: floatGlow 15s ease-in-out infinite alternate;
}

.blog-single-content::after {
    content: '';
    position: absolute;
    bottom: -40%;
    right: -40%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.2) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    opacity: 0.7;
    animation: floatGlow 18s ease-in-out infinite alternate-reverse;
}

/* Shimmer border effect */
.blog-single-content .shimmer-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: -1;
}

.blog-single-content .shimmer-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 20%,
        rgba(255, 255, 255, 0.1) 40%,
        rgba(255, 255, 255, 0.1) 60%,
        transparent 80%
    );
    pointer-events: none;
    transform: rotate(30deg);
    animation: shimmerSweep 5s linear infinite;
}

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

@keyframes floatGlow {
    0% {
        transform: translate(0, 0);
    }
    50% {
        transform: translate(10%, 5%);
    }
    100% {
        transform: translate(-5%, -10%);
    }
}

@keyframes shimmerSweep {
    0% {
        transform: rotate(30deg) translateY(-100%);
    }
    100% {
        transform: rotate(30deg) translateY(100%);
    }
}

/* Blog Post Header */
.blog-post-header {
    margin-bottom: 30px;
    position: relative;
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.blog-breadcrumbs {
    margin-bottom: 20px;
    font-size: 14px;
    opacity: 0.8;
}

.blog-breadcrumbs a {
    color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blog-breadcrumbs a:hover {
    color: #e52d27;
}

.blog-breadcrumbs .separator {
    margin: 0 8px;
    opacity: 0.6;
}

.blog-title {
    font-size: 38px;
    margin-bottom: 20px;
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    display: inline-block;
}

.blog-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform-origin: left;
    transform: scaleX(0);
    animation: expandLine 1.2s var(--animation-timing) forwards;
    animation-delay: 1s;
    border-radius: 2px;
}

@keyframes expandLine {
    to {
        transform: scaleX(1);
    }
}

.blog-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.blog-meta > div {
    display: flex;
    align-items: center;
}

.blog-meta i {
    margin-right: 8px;
    color: #e52d27;
}

/* Featured Image */
.blog-featured-image {
    margin-bottom: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
    position: relative;
}

.blog-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.blog-featured-image:hover img {
    transform: scale(1.03);
}

/* Blog Content */
.blog-post-content {
    line-height: 1.8;
    color: var(--text-color);
    animation: fadeIn 0.8s var(--animation-timing) forwards;
    animation-delay: 0.4s;
    opacity: 0;
}

.blog-intro {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    border-left: 3px solid #e52d27;
    padding-left: 20px;
}

/* Table of Contents */
.blog-table-of-contents {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 20px 30px;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-table-of-contents h3 {
    margin-bottom: 15px;
    font-size: 20px;
    color: #fff;
}

.blog-table-of-contents ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 30px;
}

.blog-table-of-contents li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.blog-table-of-contents a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 3px 0;
}

.blog-table-of-contents a:hover {
    color: #e52d27;
    transform: translateX(5px);
}

/* Share Buttons */
.blog-share-buttons {
    display: flex;
    align-items: center;
    margin: 30px 0;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-share-buttons span {
    margin-right: 15px;
    font-size: 14px;
    opacity: 0.8;
}

.blog-share-buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    margin-right: 10px;
    transition: all 0.3s ease;
    color: #fff;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.blog-share-buttons a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(229, 45, 39, 0.4);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.blog-share-buttons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 45, 39, 0.3);
    background: rgba(229, 45, 39, 0.8);
}

.blog-share-buttons a:hover::before {
    width: 150%;
    height: 150%;
}

.blog-share-buttons a i {
    position: relative;
    z-index: 1;
}

/* Destination Sections */
.blog-destination {
    margin-bottom: 60px;
    padding-top: 30px;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--animation-timing), transform 0.8s var(--animation-timing);
}

.blog-destination.visible {
    opacity: 1;
    transform: translateY(0);
}

.destination-number {
    position: absolute;
    top: -10px;
    left: -15px;
    font-size: 120px;
    font-weight: 800;
    opacity: 0.08;
    color: #fff;
    z-index: -1;
    line-height: 1;
    transform: rotate(-5deg);
    user-select: none;
    pointer-events: none;
}

.blog-destination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #e52d27, rgba(37, 117, 252, 0.5));
    border-radius: 3px;
}

.blog-destination h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding-right: 40px;
    transition: transform 0.3s var(--animation-timing);
}

.blog-destination h2::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) translateX(0);
    opacity: 0;
    transition: transform 0.4s var(--animation-timing), opacity 0.4s var(--animation-timing);
    color: var(--primary-color);
}

.blog-destination:hover h2::after {
    transform: translateY(-50%) translateX(10px);
    opacity: 1;
}

.destination-image {
    margin-bottom: 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: perspective(1000px) rotateX(0) rotateY(0);
    transition: transform 0.5s var(--animation-timing), box-shadow 0.5s var(--animation-timing);
}

.destination-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(var(--primary-color-rgb), 0.3) 0%, transparent 50%, rgba(var(--secondary-color-rgb), 0.3) 100%);
    opacity: 0;
    transition: opacity 0.5s var(--animation-timing);
    pointer-events: none;
}

.destination-image:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.destination-image:hover::after {
    opacity: 1;
}

.destination-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.destination-image:hover img {
    transform: scale(1.03);
}

.destination-content {
    color: rgba(255, 255, 255, 0.9);
}

.destination-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    position: relative;
    padding-left: 2px;
}

.destination-content p::first-letter {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--primary-color);
}

.destination-content h4 {
    font-size: 20px;
    margin: 25px 0 15px;
    color: #fff;
}

.destination-content ul {
    padding-left: 20px;
    margin-bottom: 20px;
}

.destination-content ul li {
    margin-bottom: 10px;
    position: relative;
}

.destination-content ul li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    opacity: 0.9;
    transition: transform 0.3s var(--animation-timing), opacity 0.3s var(--animation-timing);
}

.destination-content ul li:hover::before {
    transform: scale(1.3);
    opacity: 1;
}

/* Conclusion */
.blog-conclusion {
    margin-top: 60px;
    padding: 30px;
    background: rgba(229, 45, 39, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(229, 45, 39, 0.2);
    position: relative;
    overflow: hidden;
}

.blog-conclusion::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 200px;
    height: 200px;
    background: radial-gradient(rgba(229, 45, 39, 0.3), transparent 70%);
    border-radius: 50%;
}

.blog-conclusion h2 {
    font-size: 26px;
    margin-bottom: 20px;
    color: #fff;
}

.blog-conclusion p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.blog-cta {
    margin-top: 30px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 20px rgba(229, 45, 39, 0.3);
    transition: all 0.3s ease;
    transform: translateY(0);
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(229, 45, 39, 0.4);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.5s ease;
}

.cta-button:hover::before {
    transform: scale(25);
    opacity: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .blog-single {
        padding: 100px 0 60px;
    }
    
    .blog-single-content {
        padding: 30px 20px;
    }
    
    .blog-title {
        font-size: 28px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .blog-table-of-contents ul {
        columns: 1;
    }
    
    .blog-destination h2 {
        font-size: 24px;
    }
}

/* Animation for scroll anchors */
html {
    scroll-behavior: smooth;
}

/* Smooth scroll padding for fixed header */
:root {
    scroll-padding-top: 100px;
}

/* Add animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(var(--primary-color-rgb), 0.3); }
    50% { box-shadow: 0 0 30px rgba(var(--primary-color-rgb), 0.5); }
}

/* Print styles for better readability when printed */
@media print {
    .blog-single {
        padding: 0;
        background: #fff;
        color: #000;
    }
    
    .blog-single-content {
        box-shadow: none;
        background: none;
        color: #000;
    }
    
    .blog-title {
        color: #000;
        text-shadow: none;
    }
    
    .header, .footer, .blog-share-buttons, .blog-cta {
        display: none;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
}

/* Focus styles for better accessibility */
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px rgba(var(--primary-color-rgb), 0.3);
    border-radius: 2px;
    transition: box-shadow 0.2s ease-out;
}

/* Style for current anchor target */
:target {
    animation: highlight 2s ease-out;
}

@keyframes highlight {
    0% { background-color: rgba(229, 45, 39, 0.2); }
    100% { background-color: transparent; }
}
