/* Forum specific styles */
.forum-container {
    padding: 20px;
    max-width: 960px; /* Slightly wider container */
    margin: 0 auto;
}

.forum-section {
    margin-bottom: 30px;
    background-color: var(--card-background-color);
    border-radius: 16px; /* More rounded corners */
    box-shadow: var(--card-shadow, 0 4px 12px rgba(0, 0, 0, 0.08)); /* Softer shadow */
    padding: 30px; /* More padding */
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out; /* Add transition for hover effect */
}

.forum-section:hover {
    transform: translateY(-8px); /* Lift effect on hover */
    box-shadow: var(--card-hover-shadow, 0 8px 20px rgba(0, 0, 0, 0.12)); /* Enhanced shadow on hover */
}

.forum-section h2 {
    color: var(--text-color-dark);
    margin-top: 0;
    margin-bottom: 25px; /* More space below heading */
    border-bottom: 1px solid var(--border-color-light); /* Lighter, subtle border */
    padding-bottom: 18px; /* More padding below border */
    font-size: 2em; /* Larger heading */
    font-weight: 700; /* Bolder heading */
    text-align: center; /* Center align heading */
}

.category-list, .thread-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li, .thread-list li {
    margin-bottom: 20px; /* More space between list items */
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color-light); /* Dashed border for a softer look */
    transition: background-color 0.3s ease; /* Smooth transition for hover */
}

.category-list li:last-child, .thread-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-list li:hover, .thread-list li:hover {
    background-color: var(--hover-background-color, rgba(0, 0, 0, 0.03)); /* Subtle background on hover */
    border-radius: 8px;
    cursor: pointer;
}

.category-list a, .thread-list a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 10px 15px; /* Add more internal padding to links */
}

.category-list h3, .thread-list h3 {
    color: var(--link-color);
    margin-top: 0;
    margin-bottom: 10px; /* More space below title */
    font-size: 1.4em; /* Larger title */
    font-weight: 600; /* Bolder title */
}

.category-list p, .thread-list p {
    color: var(--text-color-light);
    font-size: 1.1em; /* Slightly larger description font */
    line-height: 1.6; /* Improve readability */
    margin-bottom: 0; /* Remove bottom margin */
}

.create-thread-button {
    text-align: center;
    margin-top: 50px; /* More space above button */
}

.button {
    display: inline-block;
    padding: 15px 35px; /* More padding for button */
    border-radius: 35px; /* More pill-shaped button */
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.2em; /* Larger button text */
    letter-spacing: 0.5px; /* Add slight letter spacing */
}

.button.primary {
    background-color: var(--primary-color);
    color: var(--button-text-color, #fff); /* Use a variable for button text color */
    box-shadow: var(--button-shadow, 0 6px 15px rgba(0, 0, 0, 0.25)); /* Enhanced shadow to button */
}

.button.primary:hover {
    background-color: var(--primary-hover-color);
    transform: translateY(-3px); /* Lift effect on hover */
    box-shadow: var(--button-hover-shadow, 0 8px 20px rgba(0, 0, 0, 0.35)); /* Enhanced shadow on hover */
}

/* 置顶相关样式 */
.pinned-badge {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 4px rgba(255, 152, 0, 0.3);
    margin-right: 8px;
}

.pinned-badge i {
    font-size: 8px;
}

.pinned-icon {
    color: #ff9800;
    margin-right: 6px;
    font-size: 16px;
    transform: rotate(45deg);
    display: inline-block;
    transition: all 0.3s ease;
}

h1:hover .pinned-icon {
    color: #f57c00;
    transform: rotate(45deg) scale(1.1);
}

/* 分类卡片样式 */
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 25px;
}

.category-card {
    background: var(--card-background-color, white);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--card-shadow, 0 2px 8px rgba(0,0,0,0.06));
    transition: all 0.3s ease;
    border: 1px solid var(--border-color, #f0f0f0);
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: var(--primary-color, #007bff);
}

.category-card:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.category-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color, #007bff), var(--primary-hover-color, #0056b3));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
}

.category-icon i {
    color: white;
    font-size: 20px;
}

.category-info {
    flex: 1;
    min-width: 0;
}

.category-info h3 {
    font-size: 15px;
    color: var(--text-color-dark, var(--text-color, #333));
    margin-bottom: 4px;
    font-weight: 600;
    margin-top: 0;
}

.category-info p {
    font-size: 12px;
    color: var(--text-color-light, var(--secondary-text-color, #666));
    margin-bottom: 6px;
    line-height: 1.4;
    margin-top: 0;
}

.category-stats {
    font-size: 11px;
    color: var(--secondary-text-color, #999);
    display: flex;
    align-items: center;
}

.category-stats i {
    margin-right: 4px;
}

.category-arrow {
    color: var(--secondary-text-color, #999);
    font-size: 14px;
    margin-left: 10px;
    flex-shrink: 0;
}

.button.primary:active {
    transform: translateY(0);
    box-shadow: var(--button-shadow, 0 6px 15px rgba(0, 0, 0, 0.25));
}
