/* Mods.css - Community Mods Page */

:root {
    --primary-color: #66BB6A;
    --secondary-color: #1a1a1a;
    --accent-color: #ff6b00;
    --status-online: #00ff00;
    --status-dev: #ffaa00;
    --status-paused: #6666ff;
    --status-offline: #ff3333;
    --glass-bg: rgba(40, 40, 40, 0.08);
    --glass-border: rgba(100, 200, 100, 0.18);
    --text-primary: #e0e0e0;
    --text-secondary: #b0b0b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    background-color: var(--secondary-color);
    overflow-x: hidden;
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* Hero Section */
.hero-section {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 60px 30px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(102, 187, 106, 0.4);
    font-weight: 700;
}

.hero-section .hero-tagline {
    color: var(--text-secondary);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
}

/* Mods Grid Layout */
.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
    margin-top: 20px;
}

/* Mod Card Styling */
.mod-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.mod-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 30px rgba(102, 187, 106, 0.4);
    transform: translateY(-8px);
    background: rgba(40, 40, 40, 0.12);
}

.mod-card.hover-active {
    background: rgba(102, 187, 106, 0.08);
}

/* Status Badge */
.mod-status {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.status-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85em;
    font-weight: 600;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.status-online .status-badge {
    background: rgba(0, 255, 0, 0.15);
    color: #00ff00;
    border-color: rgba(0, 255, 0, 0.3);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.status-dev .status-badge {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
    border-color: rgba(255, 170, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 170, 0, 0.3);
}

.status-paused .status-badge {
    background: rgba(102, 102, 255, 0.15);
    color: #6666ff;
    border-color: rgba(102, 102, 255, 0.3);
    box-shadow: 0 0 15px rgba(102, 102, 255, 0.3);
}

.status-offline .status-badge {
    background: rgba(255, 51, 51, 0.15);
    color: #ff3333;
    border-color: rgba(255, 51, 51, 0.3);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.3);
}

/* Mod Image Container */
.mod-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.1) 0%, rgba(102, 187, 106, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.mod-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(102, 187, 106, 0.05) 100%);
    pointer-events: none;
}

.mod-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mod-card:hover .mod-image img {
    transform: scale(1.08);
}

/* Mod Content */
.mod-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.mod-content h3 {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(102, 187, 106, 0.2);
}

.mod-description {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* Mod Info */
.mod-info {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mod-version {
    font-size: 0.85em;
    color: var(--primary-color);
    font-weight: 600;
}

.mod-date {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-style: italic;
}

/* Mod Links */
.mod-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 40px;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #66BB6A, #81C784);
    color: #ffffff;
    border-color: #66BB6A;
    box-shadow: 0 4px 15px rgba(102, 187, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 187, 106, 0.5);
    background: linear-gradient(135deg, #81C784, #A5D6A7);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(102, 187, 106, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-disabled {
    background: rgba(100, 100, 100, 0.2);
    color: #888888;
    border-color: rgba(100, 100, 100, 0.3);
    cursor: not-allowed;
}

.btn-disabled:hover {
    transform: none;
    background: rgba(100, 100, 100, 0.2);
}

/* Footer */
.footer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    text-align: center;
    margin-top: 60px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.version-info {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.version-info span {
    font-size: 0.9em;
}

/* Animation Effects */
@keyframes fadeInMod {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mod-card {
    animation: fadeInMod 0.6s ease forwards;
}

.mod-card:nth-child(1) { animation-delay: 0.1s; }
.mod-card:nth-child(2) { animation-delay: 0.15s; }
.mod-card:nth-child(3) { animation-delay: 0.2s; }
.mod-card:nth-child(4) { animation-delay: 0.25s; }
.mod-card:nth-child(5) { animation-delay: 0.3s; }
.mod-card:nth-child(6) { animation-delay: 0.35s; }

/* Shine Effect */
.mod-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 187, 106, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.mod-card:hover::after {
    left: 100%;
}

/* Glass Effect Enhancement */
.glass {
    background: rgba(40, 40, 40, 0.08);
    border: 1px solid rgba(100, 200, 100, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.glass:hover {
    background: rgba(40, 40, 40, 0.12);
    border-color: rgba(102, 187, 106, 0.3);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .mods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .mod-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .mods-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
        gap: 20px;
    }

    .hero-section {
        padding: 40px 20px;
    }

    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section .hero-tagline {
        font-size: 1em;
    }

    .mod-content {
        padding: 15px;
    }

    .mod-content h3 {
        font-size: 1.1em;
    }

    .mod-description {
        font-size: 0.85em;
    }

    .mod-info {
        flex-direction: column;
        gap: 5px;
    }

    .mod-version,
    .mod-date {
        font-size: 0.8em;
    }

    .btn {
        padding: 8px 12px;
        font-size: 0.85em;
        min-height: 36px;
    }

    .content {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .mods-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .hero-section h1 {
        font-size: 1.5em;
    }

    .hero-section .hero-tagline {
        font-size: 0.9em;
    }

    .mod-image {
        height: 180px;
    }

    .mod-content {
        padding: 12px;
    }

    .mod-content h3 {
        font-size: 1em;
    }

    .mod-description {
        font-size: 0.8em;
        line-height: 1.4;
    }

    .mod-links {
        gap: 8px;
    }

    .btn {
        padding: 8px 10px;
        font-size: 0.8em;
        flex: 1;
    }

    .status-badge {
        padding: 6px 12px;
        font-size: 0.75em;
    }
}
