/* Modern Forum Styles with Dark/Light Mode */

/* Forum Hero Section */
.forum-hero-modern {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.forum-hero-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.forum-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.forum-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: white;
    backdrop-filter: blur(10px);
}

.forum-hero-modern h2 {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.forum-hero-modern p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.6;
}

.forum-search-modern {
    max-width: 600px;
    margin: 0 auto 32px;
    position: relative;
}

.forum-search-modern input {
    width: 100%;
    padding: 16px 56px 16px 24px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.forum-search-modern input:focus {
    outline: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.forum-search-modern button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    padding: 10px 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forum-search-modern button:hover {
    transform: translateY(-50%) scale(1.05);
}

.forum-actions-modern {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.forum-btn-modern {
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.forum-btn-primary {
    background: white;
    color: #7c3aed;
}

.forum-btn-primary:hover {
    background: transparent;
    color: white;
    transform: translateY(-2px);
}

.forum-btn-secondary {
    background: transparent;
    color: white;
}

.forum-btn-secondary:hover {
    background: white;
    color: #7c3aed;
    transform: translateY(-2px);
}

/* Forum Stats Section */
.forum-stats-modern {
    background: var(--bg-secondary);
    padding: 60px 0;
}

.forum-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.forum-stat-card {
    background: var(--card-bg);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.forum-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.forum-stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 1.5rem;
}

.forum-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.forum-stat-label {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Forum List Section */
.forum-list-modern {
    background: var(--bg-primary);
    padding: 60px 0;
}

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

.forum-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.forum-header-modern h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.forum-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.forum-filter-btn {
    padding: 10px 20px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forum-filter-btn.active,
.forum-filter-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.forums-grid {
    display: grid;
    gap: 24px;
}

.forum-card-modern {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 32px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px;
    align-items: center;
}

.forum-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.forum-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    flex-shrink: 0;
}

.forum-card-content {
    flex: 1;
}

.forum-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.forum-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.forum-card-badge {
    padding: 4px 12px;
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.forum-card-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.forum-card-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.forum-card-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.forum-card-meta-item i {
    color: var(--primary-color);
}

.forum-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forum-card-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    text-decoration: none;
    text-align: center;
}

.forum-card-btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
}

.forum-card-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.forum-card-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.forum-card-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

/* Posts List */
.posts-list-modern {
    display: grid;
    gap: 20px;
}

.post-card-modern {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.post-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.post-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.post-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
}

.post-author-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.post-author-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px;
}

.post-author-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0;
}

.post-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.post-card-stats {
    display: flex;
    gap: 20px;
}

.post-card-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-card-stat i {
    color: var(--primary-color);
}

/* Create/Edit Form Styles */
.form-modern {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
}

.form-card-modern {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
}

.form-header-modern {
    margin-bottom: 32px;
    text-align: center;
}

.form-header-modern h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header-modern p {
    font-size: 1rem;
    color: var(--text-muted);
}

.form-group-modern {
    margin-bottom: 24px;
}

.form-group-modern label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-group-modern label .required {
    color: #ef4444;
}

.form-control-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.form-control-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-control-modern::placeholder {
    color: var(--text-muted);
}

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

.form-select-modern {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-light);
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-select-modern:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-actions-modern {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border-light);
}

.form-btn-modern {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-btn-primary {
    background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%);
    color: white;
}

.form-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

.form-btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 2px solid var(--border-light);
}

.form-btn-secondary:hover {
    background: var(--hover-bg);
    border-color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .forum-hero-modern h2 {
        font-size: 2rem;
    }
    
    .forum-hero-modern p {
        font-size: 1rem;
    }
    
    .forum-card-modern {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .forum-card-icon {
        margin: 0 auto;
    }
    
    .forum-card-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .form-card-modern {
        padding: 24px;
    }
    
    .form-actions-modern {
        flex-direction: column;
    }
    
    .form-btn-modern {
        width: 100%;
        justify-content: center;
    }
}
