/* Blog Utilities for TailwindCSS - PeruLuxuryTrips Theme */

/* Line Clamp Utilities */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

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

.line-clamp-4 {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Aspect Ratio Utilities for older TailwindCSS versions */
.aspect-video {
    aspect-ratio: 16 / 9;
}

@supports not (aspect-ratio: 1 / 1) {
    .aspect-video {
        position: relative;
        padding-bottom: 56.25%; /* 9/16 * 100% */
    }
    
    .aspect-video > * {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Custom hover effects that work with TailwindCSS */
.hover\:scale-110:hover {
    transform: scale(1.1);
}

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:text-green-600 {
    color: #D4B66A;
}

.group:hover .group-hover\:text-green-700 {
    color: #1e3627;
}

.group:hover .group-hover\:text-green-500 {
    color: #D4B66A;
}

/* Smooth transitions for all hover effects */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Enhanced typography for blog content */
.entry-content {
    line-height: 1.75;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.875rem;
    font-weight: 600;
    color: #1e3627;
    line-height: 1.25;
}

.entry-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3627;
    line-height: 1.375;
}

.entry-content h4 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e3627;
    line-height: 1.5;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.entry-content li {
    margin-bottom: 0.5rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #D4B66A;
    background-color: #f9fafb;
    font-style: italic;
    color: #1e3627;
}

/* .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
} */

.entry-content a {
    color: #16a34a;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.entry-content a:hover {
    color: #15803d;
}

/* Sidebar Specific Styles */
.widget-area .bg-white {
    border: 1px solid #1e3627;
}

.widget-area input:focus {
    outline: none;
    box-shadow: 0 0 0 2px #D4B66A;
    border-color: transparent;
}

/* Responsive sidebar adjustments */
@media (max-width: 1023px) {
    .widget-area {
        width: 100%;
        margin-top: 2rem;
    }
}

/* Search form enhancements */
.widget-area form {
    position: relative;
}

.widget-area input[type="search"] {
    padding-left: 2.5rem;
    padding-right: 5rem;
}

.widget-area button[type="submit"] {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Tag cloud styling improvements */
.widget-area .tag-cloud a {
    display: inline-block;
    margin: 0.125rem;
    padding: 0.375rem 0.75rem;
    background-color: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 9999px;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.widget-area .tag-cloud a:hover {
    background-color: #dcfce7;
    color: #15803d;
}

/* Recent posts list styling */
.widget-area .recent-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area .recent-posts-list li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f3f4f6;
}

.widget-area .recent-posts-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}