/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #d6c59b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: #7c4f34;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    font-size: 1.5rem;
}

header h1 a {
    color: white;
    text-decoration: none;
}

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 0.8;
}

.username {
    color: #ecf0f1;
}

/* Main Content */
main {
    min-height: calc(100vh - 200px);
    padding: 2rem 0;
}

/* Footer */
footer {
    background: #7c4f34;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Hero Section */
.hero {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.hero-content {
    padding: 2rem;
    text-align: center;
}

.hero-content h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Content Sections */
.content-section, .rules-section, .stats-section {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.content-section h3, .rules-section h3, .stats-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Rules */
.rules-list {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.rule-item h4 {
    color: #3498db;
    margin-bottom: 0.5rem;
}

.rules-note {
    background: #e8f4f8;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #ecf0f1;
    border-radius: 8px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
}

.stat-label {
    color: #7f8c8d;
    margin-top: 0.5rem;
}

/* Buttons */
.btn, .cta-buttons a {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.btn-success {
    background: #27ae60;
    color: white;
}

.btn-success:hover {
    background: #229954;
}

.btn-warning {
    background: #f39c12;
    color: white;
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.btn-link {
    background: none;
    color: #3498db;
    padding: 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-container h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.required {
    color: #e74c3c;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.form-group textarea {
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #7f8c8d;
    font-size: 0.875rem;
}

.form-group .error {
    display: block;
    color: #e74c3c;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group input[type="checkbox"] {
    width: auto;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1.5rem;
}

.info-box {
    background: #e8f4f8;
    padding: 1rem;
    border-left: 4px solid #3498db;
    margin-top: 1.5rem;
}

/* Alerts */
.alert {
    padding: 1rem;
    border-radius: 5px;
    margin-bottom: 1.5rem;
}

.alert-error {
    background: #fadbd8;
    color: #c0392b;
    border-left: 4px solid #e74c3c;
}

.alert-success {
    background: #d5f4e6;
    color: #1e8449;
    border-left: 4px solid #27ae60;
}

.alert-info {
    background: #e8f4f8;
    color: #21618c;
    border-left: 4px solid #3498db;
}

/* Forums */
.forums-list {
    display: grid;
    gap: 1rem;
}

.forum-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.forum-card:hover {
    transform: translateY(-2px);
}

.forum-info h3 {
    margin-bottom: 0.5rem;
}

.forum-info h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.forum-info h3 a:hover {
    color: #3498db;
}

.forum-stats {
    display: flex;
    gap: 2rem;
}

.stat .label {
    color: #7f8c8d;
    font-size: 0.875rem;
}

.stat .value {
    font-weight: bold;
    color: #2c3e50;
    margin-left: 0.5rem;
}

/* Threads */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.breadcrumb {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
}

.data-table {
    width: 100%;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.data-table th {
    background: #ecf0f1;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid #ecf0f1;
}

.thread-title {
    color: #2c3e50;
    text-decoration: none;
    font-weight: 500;
}

.thread-title:hover {
    color: #3498db;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-right: 0.5rem;
}

.badge-pinned {
    background: #f39c12;
    color: white;
}

.badge-locked {
    background: #95a5a6;
    color: white;
}

.badge-admin {
    background: #e74c3c;
    color: white;
}

.badge-moderator {
    background: #3498db;
    color: white;
}

.badge-success {
    background: #27ae60;
    color: white;
}

.badge-warning {
    background: #f39c12;
    color: white;
}

.badge-danger {
    background: #e74c3c;
    color: white;
}

/* Posts */
.posts-list {
    display: grid;
    gap: 1rem;
}

.post {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.post-author {
    background: #ecf0f1;
    padding: 1.5rem;
    min-width: 200px;
    text-align: center;
}

.author-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.author-info {
    color: #7f8c8d;
    font-size: 0.875rem;
}

.post-content {
    flex: 1;
    padding: 1.5rem;
}

.post-date {
    color: #7f8c8d;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.post-body {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* Rich text content formatting */
.post-body h1, .post-body h2, .post-body h3,
.post-body h4, .post-body h5, .post-body h6 {
    margin: 1em 0 0.5em 0;
    color: #2c3e50;
}

.post-body h1 { font-size: 1.8em; }
.post-body h2 { font-size: 1.5em; }
.post-body h3 { font-size: 1.3em; }

.post-body p {
    margin: 0.5em 0;
}

.post-body ul, .post-body ol {
    margin: 0.5em 0;
    padding-left: 2em;
}

.post-body li {
    margin: 0.25em 0;
}

.post-body blockquote {
    border-left: 4px solid #3498db;
    padding: 0.5em 1em;
    margin: 1em 0;
    background: #f8f9fa;
    font-style: italic;
}

.post-body code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-body pre {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 1em;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1em 0;
}

.post-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.post-body a {
    color: #3498db;
    text-decoration: none;
}

.post-body a:hover {
    text-decoration: underline;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5em 0;
}

.post-body table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.post-body table th,
.post-body table td {
    border: 1px solid #ddd;
    padding: 0.5em;
    text-align: left;
}

.post-body table th {
    background: #ecf0f1;
    font-weight: 600;
}

.post-body hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 1.5em 0;
}

.post-edited {
    color: #7f8c8d;
    font-size: 0.875rem;
    font-style: italic;
}

.post-actions {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
}

.reply-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.reply-form h3 {
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.page-info {
    color: #7f8c8d;
}

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.stat-card.highlight {
    background: #e8f4f8;
    border: 2px solid #3498db;
}

.stat-card h3 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: #7f8c8d;
}

.admin-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.admin-menu-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    position: relative;
}

.admin-menu-item:hover {
    transform: translateY(-2px);
}

.admin-menu-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.admin-menu-item p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.admin-menu-item .badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.pending-users-section, .recent-activity {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-details dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.user-details dt {
    font-weight: 600;
    color: #2c3e50;
}

.admin-actions {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.admin-actions h3 {
    margin: 1.5rem 0 1rem 0;
}

.admin-actions h3:first-child {
    margin-top: 0;
}

.inline-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Account */
.account-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.account-info, .account-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.account-info dl {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 1rem;
}

.account-info dt {
    font-weight: 600;
    color: #2c3e50;
}

/* Moderation */
.moderation-panel {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mod-actions {
    margin: 1.5rem 0;
}

.thread-info {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 5px;
}

.thread-info p {
    margin-bottom: 0.5rem;
}

/* Utility */
.text-center {
    text-align: center;
}

/* Quill Rich Text Editor Styling */
.quill-editor-container {
    margin-bottom: 1rem;
}

.quill-editor-container .ql-container {
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.quill-editor-container .ql-editor {
    min-height: 200px;
    max-height: 600px;
    overflow-y: auto;
}

.quill-editor-container .ql-editor.ql-blank::before {
    color: #999;
    font-style: italic;
}

/* Quill toolbar styling to match forum theme */
.quill-editor-container .ql-toolbar {
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 5px 5px 0 0;
}

.quill-editor-container .ql-container {
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 5px 5px;
    background: white;
}
.contact-link {
    color: white;
}
/* Responsive */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    nav {
        flex-wrap: wrap;
    }
    
    .account-container {
        grid-template-columns: 1fr;
    }
    
    .post {
        flex-direction: column;
    }
    
    .post-author {
        min-width: auto;
    }
    
    .admin-menu {
        grid-template-columns: 1fr;
    }
}
