/* Mod Detail Page Styles */
.mod-detail {
    max-width: 1200px;
    margin: 0 auto;
}

.mod-header {
    margin-bottom: 2rem;
}

.mod-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.mod-title {
    font-size: 2.5rem;
    margin: 0;
}

.mod-actions {
    display: flex;
    gap: 10px;
}

.mod-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0.8;
    font-size: 0.9rem;
}

.mod-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Image Carousel */
.mod-carousel {
    background-color: #111;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 2rem;
}

.light-mode .mod-carousel {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
}

.carousel-main {
    position: relative;
    margin-bottom: 1rem;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    aspect-ratio: 16/9;
}

.carousel-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 20px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.carousel-nav:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

.carousel-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}

.carousel-thumbnail {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
    aspect-ratio: 16/9;
    background-color: #333;
}

.carousel-thumbnail.active {
    opacity: 1;
    box-shadow: 0 0 0 3px #ffd700;
}

.light-mode .carousel-thumbnail.active {
    box-shadow: 0 0 0 3px #ff6600;
}

.carousel-thumbnail:hover {
    opacity: 1;
}

.carousel-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-images-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background-color: #222;
    border-radius: 20px;
    color: #666;
    font-size: 1.2rem;
}

.light-mode .no-images-placeholder {
    background-color: #f0f0f0;
}

/* Content Grid */
.mod-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.mod-main-content {
    background-color: #111;
    border-radius: 8px;
    padding: 2rem;
}

.light-mode .mod-main-content {
    background-color: #fff;
    border: 1px solid #ddd;
}

.mod-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background-color: #111;
    border-radius: 8px;
    padding: 1.5rem;
}

.light-mode .sidebar-card {
    background-color: #fff;
    border: 1px solid #ddd;
}

.sidebar-card h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

.light-mode .sidebar-card h3 {
    color: #ff6600;
}

/* Description */
.mod-description {
    white-space: pre-wrap;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Download Button */
.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #218838;
    color: white;
}

.download-icon {
    font-size: 1.3rem;
}

/* Info Lists */
.info-list {
    list-style: none;
    padding: 0;
}

.info-list li {
    padding: 8px 0;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
}

.light-mode .info-list li {
    border-bottom-color: #eee;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    opacity: 0.8;
}

.info-value {
    text-align: right;
}

/* Authors */
.authors-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background-color: #222;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.author-link:hover {
    background-color: #333;
}

.light-mode .author-link {
    background-color: #f8f9fa;
}

.light-mode .author-link:hover {
    background-color: #e9ecef;
}

.author-role {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-left: auto;
}

/* Categories */
.categories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #ffd700;
    color: #000;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.category-badge:hover {
    transform: translateY(-2px);
}

.light-mode .category-badge {
    background-color: #ff6600;
    color: #fff;
}

/* Dependencies */
.dependencies-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dependency-link {
    padding: 10px;
    background-color: #222;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dependency-link:hover {
    background-color: #333;
}

.light-mode .dependency-link {
    background-color: #f8f9fa;
}

.light-mode .dependency-link:hover {
    background-color: #e9ecef;
}

.dependency-arrow {
    opacity: 0.5;
}

/* Status Badge */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.status-indicator.pending {
    background-color: #ffc107;
    color: #000;
}

.status-indicator.approved {
    background-color: #28a745;
    color: #fff;
}

.status-indicator.rejected {
    background-color: #dc3545;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .mod-content-grid {
        grid-template-columns: 1fr;
    }
    
    .mod-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .carousel-thumbnails {
        grid-template-columns: repeat(3, 1fr);
    }
}