/**
 * WordPress Forum Plugin - Frontend Styles
 * 
 * Basic, clean CSS structure ready for customization
 */

/* ============================================
   Main Container
   ============================================ */
.wp-forum-index,
.wp-forum-topics,
.wp-forum-topic {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

/* ============================================
   Typography
   ============================================ */
.wp-forum-title {
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 20px;
	color: #333;
}

.wp-forum-topic-title {
	font-size: 20px;
	font-weight: bold;
	margin-bottom: 10px;
}

.wp-forum-replies-title {
	font-size: 18px;
	font-weight: bold;
	margin: 30px 0 15px;
}

/* ============================================
   Header & Navigation
   ============================================ */
.wp-forum-header {
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 2px solid #e0e0e0;
}

.wp-forum-back-link {
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
}

.wp-forum-back-link:hover {
	text-decoration: underline;
}

/* ============================================
   Actions & Buttons
   ============================================ */
.wp-forum-actions {
	margin-bottom: 20px;
}

.wp-forum-btn {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.3s;
}

.wp-forum-btn-primary {
	background-color: #0073aa;
	color: #fff;
}

.wp-forum-btn-primary:hover {
	background-color: #005a87;
	color: #fff;
}

/* ============================================
   Tables
   ============================================ */
.wp-forum-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
	background-color: #fff;
	border: 1px solid #ddd;
}

.wp-forum-table thead {
	background-color: #f5f5f5;
}

.wp-forum-table th {
	padding: 12px;
	text-align: left;
	font-weight: bold;
	border-bottom: 2px solid #ddd;
}

.wp-forum-table td {
	padding: 12px;
	border-bottom: 1px solid #e0e0e0;
}

.wp-forum-table tbody tr:hover {
	background-color: #f9f9f9;
}

.wp-forum-table tbody tr:last-child td {
	border-bottom: none;
}

/* Table Column Widths */
.wp-forum-category-name {
	width: 50%;
}

.wp-forum-topic-title {
	width: 50%;
}

.wp-forum-author {
	width: 20%;
}

.wp-forum-topic-count,
.wp-forum-replies {
	width: 15%;
	text-align: center;
}

.wp-forum-last-activity {
	width: 20%;
	text-align: right;
	font-size: 13px;
	color: #666;
}

/* ============================================
   Category Description
   ============================================ */
.wp-forum-category-description {
	margin: 5px 0 0;
	font-size: 13px;
	color: #666;
	font-style: italic;
}

/* ============================================
   Topic Content
   ============================================ */
.wp-forum-topic-content {
	margin-bottom: 30px;
	padding: 20px;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wp-forum-topic-header {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #e0e0e0;
}

.wp-forum-topic-meta {
	font-size: 13px;
	color: #666;
	margin-top: 10px;
}

.wp-forum-topic-meta span {
	margin-right: 15px;
}

.wp-forum-topic-body {
	line-height: 1.6;
	color: #333;
}

/* ============================================
   Replies
   ============================================ */
.wp-forum-replies {
	margin-top: 30px;
}

.wp-forum-reply {
	margin-bottom: 20px;
	padding: 15px;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wp-forum-reply-header {
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f0f0f0;
	font-size: 13px;
	color: #666;
}

.wp-forum-reply-header .wp-forum-author {
	font-weight: bold;
	color: #333;
	margin-right: 15px;
}

.wp-forum-reply-body {
	line-height: 1.6;
	color: #333;
}

/* ============================================
   Forms
   ============================================ */
.wp-forum-form {
	margin-top: 20px;
	padding: 20px;
	background-color: #f9f9f9;
	border: 1px solid #e0e0e0;
	border-radius: 4px;
}

.wp-forum-form-group {
	margin-bottom: 20px;
}

.wp-forum-form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #333;
}

.wp-forum-form-group .required {
	color: #d63638;
}

.wp-forum-input {
	width: 100%;
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
}

.wp-forum-input:focus {
	border-color: #0073aa;
	outline: none;
	box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* ============================================
   Pagination
   ============================================ */
.wp-forum-pagination {
	margin-top: 30px;
	text-align: center;
}

.wp-forum-pagination .page-numbers {
	display: inline-block;
	padding: 8px 12px;
	margin: 0 4px;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #0073aa;
	background-color: #fff;
}

.wp-forum-pagination .page-numbers:hover {
	background-color: #f5f5f5;
}

.wp-forum-pagination .page-numbers.current {
	background-color: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

/* ============================================
   Messages
   ============================================ */
.wp-forum-message {
	padding: 12px 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.wp-forum-message.success {
	background-color: #d4edda;
	border: 1px solid #c3e6cb;
	color: #155724;
}

.wp-forum-message.error {
	background-color: #f8d7da;
	border: 1px solid #f5c6cb;
	color: #721c24;
}

.wp-forum-login-required {
	padding: 15px;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	text-align: center;
}

/* ============================================
   Responsive Design
   ============================================ */
@media screen and (max-width: 768px) {
	.wp-forum-index,
	.wp-forum-topics,
	.wp-forum-topic {
		padding: 10px;
	}

	.wp-forum-table {
		font-size: 14px;
	}

	.wp-forum-table th,
	.wp-forum-table td {
		padding: 8px;
	}

	.wp-forum-table .wp-forum-last-activity {
		display: none;
	}

	.wp-forum-topic-title {
		font-size: 18px;
	}
}

