/* ========================================
   灰宝的小窝 - 前台样式
   ======================================== */

/* --- Quick Access Cards --- */
.quick-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 1rem;
    border: 1px solid #F5E6D0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px -5px rgba(139, 115, 85, 0.15);
    border-color: #E8D4B8;
}

.quick-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.quick-label {
    font-weight: 600;
    color: #4A3728;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.quick-desc {
    font-size: 0.8rem;
    color: #A88B6A;
}

/* --- Article Cards --- */
.article-card {
    display: block;
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid #F5E6D0;
    transition: all 0.3s ease;
    text-decoration: none;
}

.article-card:hover {
    box-shadow: 0 10px 25px -5px rgba(139, 115, 85, 0.12);
    border-color: #E8D4B8;
}

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

/* --- Huibao Monologue - FIXED --- */
.monologue-text {
    /* Ensure text fills the container nicely */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.monologue-text p {
    /* Slightly tighter line height for more content fit */
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

.monologue-text p:last-child {
    margin-bottom: 0;
}

/* Custom scrollbar for monologue if needed */
.monologue-text::-webkit-scrollbar {
    width: 4px;
}

.monologue-text::-webkit-scrollbar-track {
    background: transparent;
}

.monologue-text::-webkit-scrollbar-thumb {
    background: #E8D4B8;
    border-radius: 2px;
}

/* Ensure both columns in latest activity have same height */
.latest-activity-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

/* Prose styling for reserved page */
.prose-warm {
    color: #6B5344;
}

.prose-warm h2 {
    color: #4A3728;
}

/* Navigation active state */
.nav-link.active {
    background: #FDF6E9;
    color: #4A3728;
    font-weight: 600;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: #E8D4B8;
    color: #4A3728;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .latest-activity-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .quick-card {
        padding: 1rem 0.75rem;
    }
    
    .quick-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }
    
    .quick-label {
        font-size: 0.85rem;
    }
    
    .quick-desc {
        font-size: 0.75rem;
    }
}

/* ========================================
   Reserved Slot - Masonry Gallery
   ======================================== */

.masonry-grid {
    column-count: 2;
    column-gap: 0.75rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 0.75rem;
}

.masonry-item img {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
}

/* 3 columns on tablet */
@media (min-width: 640px) {
    .masonry-grid {
        column-count: 3;
        column-gap: 1rem;
    }
    .masonry-item {
        margin-bottom: 1rem;
    }
}

/* 4 columns on desktop */
@media (min-width: 1024px) {
    .masonry-grid {
        column-count: 4;
        column-gap: 1rem;
    }
}

/* 5 columns on wide screens */
@media (min-width: 1280px) {
    .masonry-grid {
        column-count: 5;
    }
}

/* Video play button pulse */
.masonry-item .aspect-video:hover .w-12 {
    transform: scale(1.1);
}

/* Lightbox enhancements */
[x-cloak] { display: none !important; }

/* Slot upload page drag border */
.border-3 {
    border-width: 3px;
}
