/* 龙虾成长日记 - 增强样式 */

/* 信息栏 */
.info-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px 25px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.info-item i {
    color: #ff6b6b;
}

/* 搜索区域 */
.search-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.15);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 1.2rem;
}

#diary-search {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

#diary-search:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.2);
}

.search-result-count {
    margin-top: 10px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* 等级卡片 */
.level-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 20px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.level-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: center;
}

.level-icon {
    font-size: 3rem;
    animation: bounce 2s infinite;
}

.level-info {
    color: white;
}

.level-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.level-number {
    font-size: 1.5rem;
    font-weight: bold;
}

/* 挑战区域 */
.challenges-section,
.achievements-section,
.tags-section {
    margin: 30px 0;
}

.section-title {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    color: #ff6b6b;
}

.challenges-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.challenge-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.challenge-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.2);
}

.challenge-icon {
    font-size: 2.5rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    border-radius: 50%;
}

.challenge-info {
    flex: 1;
}

.challenge-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.challenge-progress {
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.5s ease;
    border-radius: 4px;
}

.challenge-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #666;
}

.challenge-stats .current {
    font-weight: bold;
    color: #ff6b6b;
}

.challenge-reward {
    font-size: 0.85rem;
    color: #999;
    text-align: right;
}

/* 成就区域 */
.achievements-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.achievements-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.achievement-item {
    width: 100px;
    text-align: center;
    padding: 15px;
    border-radius: 15px;
    transition: all 0.3s ease;
    opacity: 0.4;
    filter: grayscale(100%);
}

.achievement-item.unlocked {
    opacity: 1;
    filter: grayscale(0%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.achievement-item:hover {
    transform: scale(1.1);
}

.achievement-icon {
    font-size: 2.5rem;
    margin-bottom: 8px;
}

.achievement-name {
    font-size: 0.85rem;
    font-weight: bold;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    background: #eee;
    color: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.tag-btn.active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.tag-count {
    background: rgba(255, 255, 255, 0.3);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
}

/* 日记标签 */
.diary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.diary-tag {
    padding: 5px 12px;
    border-radius: 15px;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
}

/* 日记页脚 */
.diary-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid #eee;
}

.diary-stats {
    display: flex;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #999;
    font-size: 0.9rem;
}

.stat-icon {
    font-size: 1.2rem;
}

.stat-value {
    font-weight: bold;
    color: #666;
}

.diary-actions {
    display: flex;
    gap: 10px;
}

.action-btn {
    padding: 8px 15px;
    border: none;
    border-radius: 20px;
    background: #f5f5f5;
    color: #666;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.like-btn:hover {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
}

/* Footer */
.footer-content {
    text-align: center;
}

.footer-subtitle {
    font-size: 0.85rem;
    color: #999;
    margin: 5px 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.footer-links a {
    color: #667eea;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
    transform: translateY(-2px);
    display: inline-block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .challenges-container {
        grid-template-columns: 1fr;
    }
    
    .level-card {
        min-width: 100%;
    }
    
    .diary-footer {
        flex-direction: column;
        gap: 15px;
    }
    
    .info-bar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .achievements-list {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
    }
    
    .achievement-item {
        width: auto;
    }
}
