/* Import base styles from index.css for header and footer */
@import url('index.css');

/* ========== ARTICLE SPECIFIC STYLES ========== */

/* Article Hero Section */
.article-hero {
    position: relative;
    height: 500px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.article-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.article-hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 60px 0;
    color: var(--white);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.6);
}

.article-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.article-subtitle {
    font-size: 1.3rem;
    margin-bottom: 25px;
    opacity: 0.95;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    font-size: 0.95rem;
}

.article-meta span {
    color: #efefef;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-meta i {
    color: var(--secondary-color);
}

/* Article Content */
.article-content {
    padding: 80px 0;
    background: var(--bg-light);
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.main-content {
    background: var(--white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.content-section {
    margin-bottom: 50px;
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section h2 i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.content-section h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 30px 0 15px;
    font-weight: 600;
}

.content-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.content-section ul,
.content-section ol {
    margin: 20px 0;
    padding-left: 30px;
}

.content-section li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* Attraction Items */
.attraction-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.attraction-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.attraction-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* Article Images */
.attraction-image,
.activity-image {
    margin: 20px 0 25px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    position: relative;
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    padding: 4px;
}

.attraction-image:hover,
.activity-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
}

.attraction-image img,
.activity-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 12px;
}

.attraction-image:hover img,
.activity-image:hover img {
    transform: scale(1.05);
}

/* Image overlay effect */
.attraction-image::after,
.activity-image::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 12px;
    pointer-events: none;
}

.attraction-image:hover::after,
.activity-image:hover::after {
    opacity: 1;
}

/* Gradient border effect */
.attraction-image::before,
.activity-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(145deg, var(--primary-color), var(--accent-color), var(--secondary-color));
    border-radius: 15px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.attraction-image:hover::before,
.activity-image:hover::before {
    opacity: 0.3;
}

/* Specific styling for attraction images (larger) */
.attraction-image {
    margin: 25px 0 30px;
    position: relative;
}

.attraction-image img {
    height: 400px;
    object-fit: cover;
}

/* Attraction image special effects */
.attraction-image::after {
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.15), 
        rgba(139, 92, 246, 0.15),
        rgba(236, 72, 153, 0.1)
    );
}

/* Specific styling for activity images (smaller) */
.activity-image {
    margin: 15px 0 20px;
    position: relative;
}

.activity-image img {
    height: 300px;
    object-fit: cover;
}

/* Activity image special effects */
.activity-image::after {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.12), 
        rgba(16, 185, 129, 0.12)
    );
}

/* Glass morphism effect for image containers */
.image-glass-effect {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Image reflection effect */
.image-reflection::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 4px;
    right: 4px;
    height: 50px;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.1) 0%, 
        transparent 100%
    );
    transform: scaleY(-1);
    opacity: 0.3;
    border-radius: 0 0 12px 12px;
    pointer-events: none;
}

/* Parallax effect for images */
.image-parallax {
    transform-style: preserve-3d;
}

.image-parallax:hover {
    transform: translateY(-5px) rotateX(5deg) rotateY(5deg);
}

/* Image focus ring for accessibility */
.attraction-image img:focus,
.activity-image img:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 12px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .attraction-image,
    .activity-image {
        border: 2px solid #000;
        box-shadow: none;
    }
    
    .attraction-image::after,
    .activity-image::after {
        display: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .attraction-image,
    .activity-image {
        transition: none;
    }
    
    .attraction-image img,
    .activity-image img {
        transition: none;
        animation: none;
    }
    
    .attraction-image:hover img,
    .activity-image:hover img {
        transform: none;
    }
    
    .image-badge {
        animation: none;
    }
}

/* Image caption styling */
.image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 10px;
    font-style: italic;
}

/* Image loading animation */
.attraction-image img,
.activity-image img {
    animation: fadeInImage 0.8s ease-out;
    opacity: 0;
    animation-fill-mode: forwards;
}

/* Staggered animation for multiple images */
.attraction-image:nth-child(1) img,
.activity-image:nth-child(1) img {
    animation-delay: 0.1s;
}

.attraction-image:nth-child(2) img,
.activity-image:nth-child(2) img {
    animation-delay: 0.2s;
}

.attraction-image:nth-child(3) img,
.activity-image:nth-child(3) img {
    animation-delay: 0.3s;
}

.attraction-image:nth-child(4) img,
.activity-image:nth-child(4) img {
    animation-delay: 0.4s;
}

.attraction-image:nth-child(5) img,
.activity-image:nth-child(5) img {
    animation-delay: 0.5s;
}

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

/* Smooth image reveal on scroll */
.image-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.image-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Image hover glow effect */
.attraction-image:hover,
.activity-image:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.18),
        0 0 30px rgba(102, 126, 234, 0.3);
}

/* Premium image styling */
.image-premium {
    position: relative;
    overflow: hidden;
}

.image-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
    z-index: 2;
}

.image-premium:hover::before {
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

/* Image gallery effect for multiple images */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.image-gallery .attraction-image,
.image-gallery .activity-image {
    margin: 0;
}

/* Enhanced image borders and shadows */
.attraction-image,
.activity-image {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: linear-gradient(145deg, #f8fafc, #e2e8f0);
    padding: 4px;
}

.attraction-image img,
.activity-image img {
    border-radius: 12px;
}

/* Image badges and labels */
.image-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 3;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: fadeInBadge 0.8s ease-out 0.3s backwards;
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Image quality indicator */
.image-quality-high::after {
    content: '📸';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px;
    border-radius: 50%;
    font-size: 0.9rem;
    z-index: 3;
    backdrop-filter: blur(10px);
}

/* Image loading states */
.image-loading {
    position: relative;
    background: #f0f0f0;
}

.image-loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #e0e0e0;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 2;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Image error state */
.image-error {
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.9rem;
    min-height: 200px;
    border: 2px dashed #dee2e6;
}

.image-error::before {
    content: '🖼️ ';
    margin-right: 8px;
}

/* Responsive image enhancements */
@media (max-width: 768px) {
    .image-badge {
        top: 10px;
        left: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
    
    .image-quality-high::after {
        top: 10px;
        right: 10px;
        padding: 6px;
        font-size: 0.8rem;
    }
}

/* Image zoom effect on click */
.image-zoom {
    cursor: zoom-in;
}

.image-zoom:hover {
    cursor: zoom-in;
}

/* Lazy loading placeholder */
.image-placeholder {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Image focus styles for accessibility */
.attraction-image:focus-within,
.activity-image:focus-within {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print styles for images */
@media print {
    .attraction-image,
    .activity-image {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .attraction-image::after,
    .activity-image::after {
        display: none;
    }
}

/* Responsive image adjustments */
@media (max-width: 768px) {
    .attraction-image img {
        height: 250px;
    }
    
    .activity-image img {
        height: 200px;
    }
    
    .attraction-image,
    .activity-image {
        margin: 15px 0 20px;
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .attraction-image img {
        height: 200px;
    }
    
    .activity-image img {
        height: 180px;
    }
    
    .attraction-image,
    .activity-image {
        margin: 12px 0 18px;
        border-radius: 10px;
    }
}

/* Info Boxes */
.info-box,
.tip-box,
.warning-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    margin: 30px 0;
}

.info-box {
    background: #e0f2fe;
    border-left: 4px solid #0284c7;
}

.tip-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
}

.warning-box {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
}

.info-box i,
.tip-box i,
.warning-box i {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.info-box i {
    color: #0284c7;
}

.tip-box i {
    color: #f59e0b;
}

.warning-box i {
    color: #ef4444;
}

.info-box strong,
.tip-box strong,
.warning-box strong {
    display: block;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--bg-light);
}

.sidebar-nav {
    list-style: none;
}

.sidebar-nav li {
    margin-bottom: 12px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    border-radius: 8px;
}

.sidebar-nav a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-nav i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.info-list {
    list-style: none;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg-light);
    font-size: 0.95rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: var(--primary-color);
    margin-top: 3px;
    width: 20px;
}

.info-list strong {
    color: var(--text-dark);
    min-width: 80px;
}

/* Related Posts */
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.related-post {
    display: flex;
    gap: 15px;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    padding: 10px;
    border-radius: 10px;
}

.related-post:hover {
    background: var(--bg-light);
    transform: translateY(-3px);
}

.related-post img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.related-post-content h4 {
    font-size: 0.95rem;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.related-post-content span {
    font-size: 0.85rem;
    color: var(--text-light);
}

/* CTA Widget */
.cta-widget {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.cta-widget h3 {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.cta-widget p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
}

.btn-cta {
    display: inline-block;
    padding: 12px 30px;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-cta:hover {
    background: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr 300px;
        gap: 40px;
    }

    .main-content {
        padding: 40px;
    }

    .article-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .article-hero {
        height: 400px;
    }

    .article-title {
        font-size: 2.2rem;
    }

    .article-subtitle {
        font-size: 1.1rem;
    }

    .article-meta {
        gap: 15px;
        font-size: 0.85rem;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .main-content {
        padding: 30px;
    }

    .sidebar {
        position: static;
    }

    .content-section h2 {
        font-size: 1.6rem;
    }

    .content-section h3 {
        font-size: 1.3rem;
    }

    .content-section p,
    .content-section li {
        font-size: 1rem;
    }

    .attraction-item {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .article-hero {
        height: 350px;
    }

    .article-hero-content {
        padding: 40px 0;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .article-subtitle {
        font-size: 1rem;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    .main-content {
        padding: 20px;
    }

    .content-section {
        margin-bottom: 35px;
    }

    .content-section h2 {
        font-size: 1.4rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .sidebar-widget {
        padding: 20px;
    }

    .info-box,
    .tip-box,
    .warning-box {
        flex-direction: column;
        padding: 15px;
    }

    .related-post {
        flex-direction: column;
    }

    .related-post img {
        width: 100%;
        height: 150px;
    }
}
/* Mobile-only elements - hidden on desktop */
.mobile-menu-brand,
.mobile-search-wrapper {
    display: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    /* Mobile-only elements - show on mobile */
    .mobile-menu-brand,
    .mobile-search-wrapper {
        display: block;
    }
    
    /* Mobile Menu Brand */
    .mobile-menu-brand {
        position: relative;
        z-index: 5;
        display: flex;
        align-items: center;
        gap: 15px;
        padding: 30px 25px 20px;
        animation: fadeInLeft 0.5s ease 0.1s backwards;
    }
    
    .mobile-menu-brand .logo-icon {
        width: 55px;
        height: 55px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.6rem;
    }
    
    .mobile-menu-brand .logo-content {
        color: white;
    }
    
    .mobile-menu-brand .logo-name {
        font-size: 1.4rem;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        display: block;
    }
    
    .mobile-menu-brand .logo-tagline {
        opacity: 0.9;
        font-size: 0.8rem;
        display: block;
    }
    
    /* Mobile Search */
    .mobile-search-wrapper {
        position: relative;
        z-index: 5;
        margin: 0 25px 30px;
        animation: fadeInUp 0.5s ease 0.2s backwards;
    }
    
    .mobile-search-form {
        display: flex;
        align-items: center;
        background: white;
        border-radius: 16px;
        padding: 14px 20px;
        gap: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        border: 2px solid transparent;
        transition: all 0.3s ease;
    }
    
    .mobile-search-form:focus-within {
        border-color: #667eea;
        box-shadow: 0 8px 30px rgba(102, 126, 234, 0.25);
        transform: translateY(-2px);
    }
    
    .mobile-search-form i {
        color: #667eea;
        font-size: 1.2rem;
    }
    
    .mobile-search-form input {
        flex: 1;
        border: none;
        background: transparent;
        padding: 0;
        font-size: 1rem;
        color: #2d3748;
    }
    
    .mobile-search-form input:focus {
        outline: none;
    }
    
    .mobile-search-form input::placeholder {
        color: #718096;
    }
    
    /* Animations */
    @keyframes fadeInLeft {
        from {
            opacity: 0;
            transform: translateX(-20px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2563eb, #8b5cf6);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.3);
}

.back-to-top:active {
    transform: translateY(-1px);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}