/**
 * Cerberus RP - Forums Stylesheet
 * All forum-related styles extracted from inline CSS
 */

/* ========================================
   FORUM HOME PAGE
   ======================================== */

.forums-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.forums-header {
    background: linear-gradient(135deg, rgba(255, 68, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.forums-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 3rem;
    color: #ff4400;
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
}

.forums-stats {
    display: flex;
    gap: 3rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff4400;
}

.stat-label {
    font-size: 0.875rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category Cards */
.category-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.category-card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.5rem;
    align-items: center;
    transition: all 0.3s;
}

.category-card:hover {
    border-color: #ff4400;
    box-shadow: 0 4px 20px rgba(255, 68, 0, 0.2);
    transform: translateX(4px);
}

.category-icon {
    font-size: 3rem;
    line-height: 1;
}

.category-info {
    flex: 1;
}

.category-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    color: #ff4400;
    margin-bottom: 0.25rem;
    text-decoration: none;
    display: block;
}

.category-name:hover {
    color: #ff6600;
}

.category-description {
    color: #999;
    font-size: 0.9rem;
}

.category-stats {
    display: flex;
    gap: 2rem;
    text-align: center;
}

.category-stat {
    display: flex;
    flex-direction: column;
}

.category-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.category-stat-label {
    font-size: 0.75rem;
    color: #666;
    text-transform: uppercase;
}

.category-latest {
    min-width: 200px;
    text-align: right;
}

.latest-thread {
    font-size: 0.9rem;
    color: #ccc;
    margin-bottom: 0.25rem;
    display: block;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-thread:hover {
    color: #ff4400;
}

.latest-user {
    font-size: 0.8rem;
    color: #666;
}

.latest-user a {
    color: #ff4400;
    text-decoration: none;
}

.latest-user a:hover {
    text-decoration: underline;
}

.latest-time {
    font-size: 0.75rem;
    color: #555;
    margin-top: 0.25rem;
}

.no-posts {
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

/* ========================================
   CATEGORY VIEW
   ======================================== */

.category-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.category-header {
    background: linear-gradient(135deg, rgba(255, 68, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ff4400;
    margin-bottom: 0.5rem;
}

.category-info p {
    color: #999;
    font-size: 1.1rem;
}

.btn-new-thread {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff4400, #ff6600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-new-thread:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 0, 0.4);
}

/* Thread List */
.thread-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.thread-item {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 0, 0.2);
    border-radius: 8px;
    padding: 1.25rem;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1.25rem;
    align-items: center;
    transition: all 0.3s;
}

.thread-item:hover {
    border-color: #ff4400;
    transform: translateX(4px);
}

.thread-item.pinned {
    border-color: rgba(255, 196, 0, 0.5);
    background: rgba(255, 196, 0, 0.05);
}

.thread-icon {
    font-size: 2rem;
    opacity: 0.6;
}

.thread-item.pinned .thread-icon {
    opacity: 1;
}

.thread-info {
    flex: 1;
}

.thread-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.thread-title:hover {
    color: #ff4400;
}

.thread-badge {
    padding: 0.25rem 0.5rem;
    background: rgba(255, 196, 0, 0.2);
    border: 1px solid rgba(255, 196, 0, 0.5);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffc400;
    text-transform: uppercase;
}

.thread-badge.locked {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

.thread-meta {
    margin-top: 0.5rem;
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: #666;
}

.thread-meta a {
    color: #ff4400;
    text-decoration: none;
}

.thread-meta a:hover {
    text-decoration: underline;
}

.thread-stats {
    display: flex;
    gap: 1.5rem;
    text-align: center;
}

.thread-stat {
    display: flex;
    flex-direction: column;
}

.thread-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.thread-stat-label {
    font-size: 0.7rem;
    color: #666;
    text-transform: uppercase;
}

.thread-latest {
    min-width: 180px;
    text-align: right;
}

.no-threads {
    text-align: center;
    padding: 4rem 2rem;
    color: #666;
}

.no-threads-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ========================================
   THREAD VIEW
   ======================================== */

.thread-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.thread-header {
    background: linear-gradient(135deg, rgba(255, 68, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.thread-header h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ff4400;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Posts */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.post {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 0, 0.2);
    border-radius: 12px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 200px 1fr;
}

.post:target {
    border-color: #ff4400;
    box-shadow: 0 0 20px rgba(255, 68, 0, 0.3);
}

.post-author {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    text-align: center;
    border-right: 1px solid rgba(255, 68, 0, 0.2);
}

.post-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(255, 68, 0, 0.3);
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, #ff4400, #ff6600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.post-username {
    font-weight: 700;
    color: #ff4400;
    margin-bottom: 0.5rem;
}

.post-stats {
    font-size: 0.75rem;
    color: #666;
    margin-top: 1rem;
}

.post-stats div {
    margin-bottom: 0.25rem;
}

.post-content-wrapper {
    padding: 1.5rem;
}

.post-date {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 1rem;
}

.post-content {
    color: #ccc;
    line-height: 1.8;
    word-wrap: break-word;
    white-space: pre-wrap;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 68, 0, 0.2);
    display: flex;
    gap: 1rem;
}

.post-actions a {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.875rem;
}

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

.post-actions button {
    background: none;
    border: none;
    color: #ef4444;
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0;
}

.post-actions button:hover {
    text-decoration: underline;
}

/* Reply Section */
.reply-section {
    margin-top: 2rem;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 2rem;
}

.reply-section h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #ff4400;
    margin-bottom: 1.5rem;
}

/* ========================================
   NEW THREAD & EDIT POST
   ======================================== */

.new-thread-container,
.edit-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.new-thread-card,
.edit-card {
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 68, 0, 0.3);
    border-radius: 12px;
    padding: 2.5rem;
}

.new-thread-card h1,
.edit-card h1 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.5rem;
    color: #ff4400;
    margin-bottom: 0.5rem;
}

.new-thread-card p {
    color: #999;
    margin-bottom: 2rem;
}

/* ========================================
   BREADCRUMB
   ======================================== */

.breadcrumb {
    margin-bottom: 1.5rem;
    color: #666;
}

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

.breadcrumb a:hover {
    text-decoration: underline;
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

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

.form-group label {
    display: block;
    color: #ccc;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem;
    background: rgba(30, 30, 30, 0.8);
    border: 1px solid rgba(255, 68, 0, 0.2);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #ff4400;
    box-shadow: 0 0 0 3px rgba(255, 68, 0, 0.1);
}

select.form-control {
    cursor: pointer;
}

textarea.form-control {
    resize: vertical;
    min-height: 200px;
}

.form-help {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ff4400, #ff6600);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    font-family: 'Bebas Neue', sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 0, 0.4);
}

.btn-cancel {
    padding: 1rem 2rem;
    background: rgba(100, 100, 100, 0.3);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
    transition: all 0.3s;
}

.btn-cancel:hover {
    background: rgba(100, 100, 100, 0.5);
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.locked-notice {
    text-align: center;
    padding: 2rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    color: #ef4444;
}

.login-notice {
    text-align: center;
    padding: 2rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 12px;
    color: #3b82f6;
}

.login-notice a {
    color: #3b82f6;
    text-decoration: underline;
}

/* ========================================
   ADMIN TOOLS
   ======================================== */

.admin-tools {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 68, 0, 0.3);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-tools button {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .category-card {
        grid-template-columns: auto 1fr;
        gap: 1rem;
    }
    
    .category-stats,
    .category-latest {
        display: none;
    }
    
    .thread-item {
        grid-template-columns: auto 1fr;
    }
    
    .thread-stats,
    .thread-latest {
        display: none;
    }
    
    .post {
        grid-template-columns: 1fr;
    }
    
    .post-author {
        border-right: none;
        border-bottom: 1px solid rgba(255, 68, 0, 0.2);
    }
    
    .forums-stats {
        gap: 1.5rem;
    }
}
