/* 祈福牆樣式 */

/* Header */
.blessing-header {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 0 0 15px 15px;
}

.blessing-header .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0.9;
}

.blessing-header .header-content {
    position: relative;
    z-index: 1;
    color: white;
}

.blessing-header .header-title {
    font-size: 32px;
    font-weight: 700;
    color: white;
}

.blessing-header .header-subtitle {
    font-size: 14px;
    opacity: 0.95;
    color: white;
}

/* 統計區塊 */
.wall-stats {
    margin: 16px 0;
}

.wall-stats .stats-content {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.wall-stats .stat-item {
    text-align: center;
    flex: 1;
}

.wall-stats .stat-number {
    font-size: 28px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.wall-stats .stat-label {
    font-size: 13px;
    color: #666;
}

/* 祈福卡片網格 */
.blessings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

@media (max-width: 640px) {
    .blessings-grid {
        grid-template-columns: 1fr;
    }
}

/* 祈福卡片 */
.blessing-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
}

.blessing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.blessing-image-container {
    width: 100%;
    padding-top: 55%; 
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.blessing-image {
    position: absolute;
    top: -35%;
    left: 0;
    width: 100%;
    /* height: 100%;
    object-fit: cover; */
}

.blessing-content {
    padding: 16px;
}

.blessing-category {
    display: inline-block;
    padding: 4px 12px;
    background: #e8f5e9;
    color: #2e7d32;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 8px;
}

.blessing-sutra-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 8px 0;
    line-height: 1.4;
}

.blessing-text {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 12px 0;
    padding: 12px;
    background: #fef5f8;
    border-radius: 8px;
}

.blessing-text .material-symbols-outlined {
    color: #e91e63;
    font-size: 20px;
    flex-shrink: 0;
}

.blessing-text p {
    margin: 0;
    color: #555;
    font-size: 13px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blessing-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.blessing-author {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #666;
}

.blessing-author .material-symbols-outlined {
    font-size: 16px;
}

.blessing-time {
    font-size: 11px;
    color: #999;
}

/* 空狀態 */
.empty-state {
    padding: 40px 20px;
    text-align: center;
}

/* 圖片容器 hover 效果 */
.blessing-image-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.blessing-image-container .image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   background: rgb(159 159 159 / 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.blessing-image-container:hover .image-overlay {
    opacity: 1;
}

.blessing-image-container .image-overlay .material-symbols-outlined {
    color: white;
    font-size: 48px;
}

/* 操作按鈕區 */
.blessing-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.blessing-actions .action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.blessing-actions .action-btn:hover {
    background: #fff;
    border-color: #c9a063;
    color: #c9a063;
}

.blessing-actions .action-btn .material-symbols-outlined {
    font-size: 18px;
}

/* Lightbox 樣式調整 */
#image-lightbox .uk-modal-dialog {
    max-width: 90vw;
    padding: 0;
}

#image-lightbox .uk-modal-close-outside {
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border-radius: 50%;
    width: 40px;
    height: 40px;
}

/* 響應式調整 */
@media (max-width: 640px) {
    /* .blessing-actions {
        flex-direction: column;
    } */
    
    /* .blessing-actions .action-btn {
        width: 100%;
    } */
}
.uk-form-icon:not(.uk-form-icon-flip)~.uk-input {
    padding-left: 50px !important;
}

.search-container .uk-form-icon {
    left: 12px;
    color: #999;
}
.search-container .uk-input {
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    height: 48px;
}

.subtitle {
    display: block;
    color: #e91e63;
    font-size: 14px;
    font-weight: 400;
}