/* ============================================
   aeromodul Forum CSS
   ============================================ */

/* Container */
.forum-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 120px 20px 60px;
    min-height: 70vh;
}

/* Forum Header */
.forum-header {
    text-align: center;
    margin-bottom: 40px;
}

.forum-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #00aaff, #00ddff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-header p {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Actions Bar */
.forum-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.forum-stats {
    font-size: 0.9rem;
    opacity: 0.6;
}

/* Topic Cards */
.topics-feed {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.topic-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.topic-card:hover {
    background: rgba(0, 170, 255, 0.06);
    border-color: rgba(0, 170, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 170, 255, 0.1);
}

.topic-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(0, 170, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.topic-card-body {
    flex: 1;
    min-width: 0;
}

.topic-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.4;
}

.topic-meta {
    font-size: 0.82rem;
    opacity: 0.55;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.topic-dot {
    opacity: 0.4;
}

.topic-comments {
    color: #00aaff;
}

.solved-badge, .solved-badge-large {
    display: inline-block;
    background: rgba(0, 200, 80, 0.15);
    color: #00c850;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-left: 8px;
    vertical-align: middle;
}

.solved-badge-large {
    font-size: 0.9rem;
    padding: 4px 14px;
}

/* Topic Detail */
.topic-detail {
    margin-bottom: 30px;
}

.topic-detail-header {
    margin-bottom: 25px;
}

.topic-detail-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
}

.topic-detail-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    opacity: 0.6;
}

.topic-author-badge {
    background: rgba(0, 170, 255, 0.1);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
}

.topic-detail-body {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 25px;
    font-size: 1rem;
    line-height: 1.8;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.solve-btn {
    margin-top: 15px;
    padding: 10px 22px;
    background: rgba(0, 200, 80, 0.15);
    border: 1px solid rgba(0, 200, 80, 0.3);
    color: #00c850;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.solve-btn:hover {
    background: rgba(0, 200, 80, 0.25);
}

/* Comments */
.comments-header {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.comment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 18px;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.comment-author {
    font-weight: 700;
    color: #00aaff;
}

.comment-date {
    opacity: 0.5;
    font-size: 0.8rem;
}

.comment-body {
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Reply Form */
.reply-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 25px;
    margin-top: 20px;
}

.reply-form-container h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    margin-bottom: 30px;
}

.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.2), rgba(0, 100, 200, 0.3));
    border: 3px solid rgba(0, 170, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.profile-country {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 1.8rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.profile-rank-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 170, 255, 0.12), rgba(0, 100, 200, 0.18));
    border: 1px solid rgba(0, 170, 255, 0.3);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.profile-join-date, .profile-email {
    font-size: 0.85rem;
    opacity: 0.55;
    margin-top: 4px;
}

/* Profile Sections */
.profile-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 30px;
    margin-bottom: 20px;
}

.profile-section h2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.setting-group {
    margin-bottom: 22px;
}

.setting-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 8px;
    opacity: 0.8;
}

.forum-select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300aaff' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.forum-select:focus {
    outline: none;
    border-color: rgba(0, 170, 255, 0.5);
    box-shadow: 0 0 0 3px rgba(0, 170, 255, 0.1);
}

/* Aircraft Grid */
.aircraft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.aircraft-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.aircraft-option:hover {
    background: rgba(0, 170, 255, 0.08);
    border-color: rgba(0, 170, 255, 0.3);
    transform: translateY(-2px);
}

.aircraft-option.selected {
    background: rgba(0, 170, 255, 0.15);
    border-color: #00aaff;
    box-shadow: 0 0 20px rgba(0, 170, 255, 0.25);
    transform: translateY(-3px);
}

.aircraft-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.aircraft-img {
    width: 80px;
    height: 60px;
    object-fit: contain;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.aircraft-option:hover .aircraft-img {
    transform: scale(1.1);
}

.aircraft-silhouette {
    font-size: 1.6rem;
}

.aircraft-name {
    font-size: 0.72rem;
    font-weight: 700;
    opacity: 0.8;
    text-align: center;
    line-height: 1.2;
}

/* Activity */
.activity-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.activity-tab {
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.88rem;
}

.activity-tab:hover {
    background: rgba(0, 170, 255, 0.08);
}

.activity-tab.active {
    background: rgba(0, 170, 255, 0.15);
    border-color: rgba(0, 170, 255, 0.4);
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: block;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: rgba(0, 170, 255, 0.06);
    border-color: rgba(0, 170, 255, 0.2);
}

.activity-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.activity-meta {
    font-size: 0.8rem;
    opacity: 0.5;
}

/* Auth Guard */
.auth-guard {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 50vh;
}

.auth-guard-card {
    text-align: center;
    padding: 50px 40px;
    border-radius: 18px;
    max-width: 400px;
}

.auth-guard-card h2 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.auth-guard-card p {
    opacity: 0.7;
    margin-bottom: 25px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 30px;
    opacity: 0.6;
    font-size: 0.95rem;
}

.empty-state a {
    color: #00aaff;
    text-decoration: none;
    font-weight: 600;
}

.empty-state-card {
    text-align: center;
    padding: 60px 30px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
}

.empty-state-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.empty-state-card p {
    opacity: 0.6;
}

.empty-state-card a {
    color: #00aaff;
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 60px 0;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #00aaff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Forum Nav */
.forum-nav-active {
    color: #00aaff !important;
    font-weight: 700;
}

/* Breadcrumb (reuse from module pages) */
.breadcrumb {
    padding: 15px 0;
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 20px;
}

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

/* Responsive */
@media (max-width: 768px) {
    .forum-container {
        padding: 100px 15px 40px;
    }

    .forum-header h1 {
        font-size: 1.5rem;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .profile-info h1 {
        font-size: 1.4rem;
    }

    .topic-detail-title {
        font-size: 1.3rem;
    }

    .aircraft-grid {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .forum-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .forum-stats {
        text-align: center;
    }
}
