/*-------------------------------------------------------+
| KrazzFM Forum Panel - Modern Card Design
| Version: 2.0.0
+--------------------------------------------------------*/

/* Panel Wrapper */
.krazzfm-forum-panel-modern {
    margin: 30px 0;
    background: #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2a2a;
}

/* Panel Header */
.forum-panel-header {
    background: linear-gradient(135deg, #000 0%, #111 100%);
    padding: 25px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid limegreen;
    flex-wrap: wrap;
    gap: 15px;
}

.header-content {
    flex: 1;
}

.panel-title {
    color: #ffffff;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 5px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(50, 205, 50, 0.6));
}

.title-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.panel-subtitle {
    color: #999;
    font-size: 13px;
    margin: 0;
    font-weight: 400;
}

.header-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(50, 205, 50, 0.1);
    padding: 12px 20px;
    border-radius: 8px;
    border: 2px solid rgba(50, 205, 50, 0.3);
}

.thread-count-badge {
    font-size: 28px;
    font-weight: 700;
    color: limegreen;
    line-height: 1;
}

.badge-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

/* Panel Body */
.forum-panel-body {
    padding: 25px;
    background: rgb(2, 2, 2, 0.8);
}

/* Thread Grid */
.forum-threads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 20px;
}

/* Thread Card */
.thread-card {
    background: #111;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
    display: flex;
    flex-direction: column;
    position: relative;
}

.thread-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #3a3a3a;
    transition: all 0.3s ease;
}

.thread-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border-color: #4a4a4a;
}

.thread-card:hover::before {
    background: limegreen;
    box-shadow: 0 0 15px rgba(50, 205, 50, 0.5);
}

/* New Thread Highlight */
.thread-card.thread-new::before {
    background: limegreen;
    animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Hot Thread */
.thread-card.thread-hot {
    border-color: rgba(255, 165, 0, 0.3);
}

.thread-card.thread-hot::before {
    background: linear-gradient(90deg, #ff4500, #ff8c00);
}

/* Card Header */
.card-header {
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.thread-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid limegreen;
    object-fit: cover;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-name {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.author-name a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name a:hover {
    color: limegreen;
}

.thread-time {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.thread-time i {
    margin-right: 4px;
    color: limegreen;
}

/* Thread Badges */
.thread-badges {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.thread-badges span {
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 4px;
}

.badge-new {
    background: limegreen;
    color: #1a1a1a;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.4);
}

.badge-hot {
    background: linear-gradient(135deg, #ff4500, #ff8c00);
    color: white;
}

.badge-poll {
    background: #3498db;
    color: white;
}

/* Card Body */
.card-body {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.thread-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.thread-title a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
}

.thread-title a:hover {
    color: limegreen;
    transform: translateX(3px);
}

.thread-forum {
    font-size: 13px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 6px;
}

.thread-forum i {
    color: limegreen;
}

.thread-forum a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s ease;
}

.thread-forum a:hover {
    color: limegreen;
}

/* Card Footer */
.card-footer {
    padding: 12px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #3a3a3a;
}

.thread-stats {
    display: flex;
    justify-content: space-around;
    gap: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.stat-item i {
    color: limegreen;
    font-size: 16px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Panel Footer */
.forum-panel-footer {
    background: #0a0a0a;
    padding: 20px;
    border-top: 1px solid #2a2a2a;
}

.forum-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2a2a2a;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #3a3a3a;
}

.action-btn:hover {
    background: limegreen;
    color: #1a1a1a;
    border-color: limegreen;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 205, 50, 0.3);
    text-decoration: none;
}

.action-btn i {
    font-size: 14px;
}

.view-all-wrapper {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid #2a2a2a;
}

.view-all-threads {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: limegreen;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 25px;
    border: 2px solid #2a2a2a;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-all-threads:hover {
    background: #2a2a2a;
    border-color: limegreen;
    color: limegreen;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 205, 50, 0.2);
}

.view-all-threads i {
    transition: transform 0.3s ease;
}

.view-all-threads:hover i {
    transform: translateX(5px);
}

/* Empty State */
.forum-empty {
    text-align: center;
    padding: 80px 20px;
    background: #1a1a1a;
    color: #999;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.forum-empty p {
    font-size: 18px;
    margin: 0;
    color: #666;
}

/* Responsive */
@media (max-width: 767px) {
    .forum-threads-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-panel-header {
        padding: 20px;
    }
    
    .panel-title {
        font-size: 20px;
    }
    
    .forum-panel-body {
        padding: 15px;
    }
    
    .thread-card {
        margin-bottom: 0;
    }
    
    .forum-actions {
        justify-content: center;
    }
    
    .action-btn {
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .forum-threads-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1400px) {
    .forum-threads-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Animation für Card-Entrance */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.thread-card {
    animation: cardSlideIn 0.4s ease-out both;
}

.thread-card:nth-child(1) { animation-delay: 0.05s; }
.thread-card:nth-child(2) { animation-delay: 0.1s; }
.thread-card:nth-child(3) { animation-delay: 0.15s; }
.thread-card:nth-child(4) { animation-delay: 0.2s; }
.thread-card:nth-child(5) { animation-delay: 0.25s; }
.thread-card:nth-child(6) { animation-delay: 0.3s; }