/* Eye Blog Specific Styles */

/* Hero section enhancements */
.hero-section {
    background-image: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(139, 92, 246, 0.1));
    background-size: cover;
    position: relative;
    border-radius: 0.75rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="rgba(236, 72, 153, 0.1)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"></path><circle cx="12" cy="12" r="3"></circle></svg>');
    background-size: 100px;
    opacity: 0.15;
    pointer-events: none;
    border-radius: 0.75rem;
}

/* Line clamp utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 1.5em;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 3em;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.5em;
}

/* iFrame container */
.iframe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.iframe-container iframe {
    border: none;
    width: 100%;
}

/* Loading animation */
@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade-in animation for content */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.blog-post-appear {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Category filter styles */
#category-filters button {
    transition: all 0.3s ease;
}

#category-filters button:hover {
    transform: translateY(-2px);
}

/* Blog post card styles */
.blog-post-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(236, 72, 153, 0.1);
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.blog-post-card img {
    transition: all 0.5s ease;
}

.blog-post-card:hover img {
    transform: scale(1.05);
}

/* Tag cloud styles */
#tag-cloud a {
    transition: all 0.3s ease;
}

#tag-cloud a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Scroll button styles */
.scroll-btn {
    display: block;
    position: fixed;
    z-index: 9999;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white !important;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    opacity: 0.7;
    visibility: visible;
    padding: 0;
    margin: 0;
}

.scroll-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

#back-to-top {
    bottom: 20px;
    right: 20px;
}

#scroll-to-bottom {
    bottom: 90px;
    right: 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #category-filters {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
        justify-content: flex-start;
        scroll-behavior: smooth;
    }
    
    #category-filters button {
        flex-shrink: 0;
    }
    
    .scroll-btn {
        width: 44px;
        height: 44px;
        line-height: 44px;
        font-size: 20px;
    }
    
    #back-to-top {
        bottom: 15px;
        right: 15px;
    }
    
    #scroll-to-bottom {
        bottom: 70px;
        right: 15px;
    }
}

/* Pagination styles */
.pagination-button {
    transition: all 0.3s ease;
}

.pagination-button:hover:not(:disabled) {
    transform: translateY(-2px);
}

.pagination-button:active:not(:disabled) {
    transform: scale(0.95);
}

/* Search input styles */
#blog-search {
    transition: all 0.3s ease;
}

#blog-search:focus {
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.3);
}
