/* ===========================================
   Home Page Specific Styles
   =========================================== */

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 16px 0;
}

.hero-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.text-primary {
    color: var(--primary-green);
}

.text-info {
    color: #3b82f6;
}

.text-danger {
    color: #ef4444;
}

.text-pink {
    color: #ec4899;
}

.chatbot-link {
    display: inline-block;
    background: linear-gradient(135deg, #f0f7ff, #e8f4ff);
    color: #0078ff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-sm);
}

.chatbot-link:hover {
    background: linear-gradient(135deg, #e8f4ff, #d8ecff);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Flash Alert */
.flash-alert {
    max-width: 600px;
    margin: 0 auto 24px;
    padding: 12px 16px;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: var(--radius-md);
    color: #92400e;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #92400e;
}

/* Bookmark Container */
.bookmark-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.bookmark-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
}

.bookmark-star {
    color: var(--accent-yellow);
    font-size: 1rem;
}

.bookmark-nickname {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    cursor: pointer;
}

.bookmark-nickname:hover {
    color: var(--primary-green);
}

.bookmark-remove {
    background: none;
    border: none;
    color: var(--lose-red);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.bookmark-remove:hover {
    color: #b91c1c;
}

/* Popular Section */
.popular-section {
    max-width: 600px;
    margin: 0 auto 8px;
}

.popular-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s ease;
}

.popular-item:last-child {
    border-bottom: none;
}

.popular-item:hover {
    background: rgba(40, 167, 69, 0.05);
}

.popular-rank {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-green);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    border-radius: 12px;
    min-width: 50px;
    text-align: center;
}

.popular-level {
    font-size: 0.9rem;
    color: var(--text-secondary);
    min-width: 70px;
    text-align: center;
}

.popular-nickname {
    flex: 1;
    font-weight: 600;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.popular-item:hover .popular-nickname {
    color: var(--primary-green);
}

.popular-tier {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.2s ease;
}

.popular-item:hover .popular-tier {
    transform: scale(1.3);
}

/* Popular Empty State */
.popular-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-muted);
}

.popular-empty p {
    margin: 0;
    font-size: 0.95rem;
}

.popular-empty-hint {
    margin-top: 8px !important;
    font-size: 0.85rem !important;
    color: var(--primary-green);
}

/* Ad Section */
.ad-section {
    margin: 8px 0;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Notice List */
.notice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notice-item {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.notice-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notice-title {
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.notice-title:hover {
    color: var(--primary-green);
}

.notice-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
    margin-bottom: 4px;
}

.notice-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.notice-content.active {
    max-height: 200px;
}

.notice-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .popular-item {
        padding: 10px 12px;
        gap: 8px;
    }

    .popular-rank {
        font-size: 0.7rem;
        min-width: 45px;
        padding: 3px 8px;
    }

    .popular-level {
        font-size: 0.8rem;
        min-width: 55px;
    }

    .popular-nickname {
        font-size: 0.9rem;
    }

    .popular-tier {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 16px 0;
    }

    .hero-title {
        font-size: 1.2rem;
    }

    .chatbot-link {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .bookmark-item {
        padding: 4px 10px;
    }

    .bookmark-nickname {
        font-size: 0.8rem;
    }
}
