/* Minecraft-style Collections Page Styles */

.collections-section {
    padding: 2rem 0;
}

.collections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.collection-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 600px;
}

.collection-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.collection-image {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.collection-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.collection-image i {
    font-size: 3rem;
    color: var(--text-muted);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.collection-code {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Courier New', monospace;
    z-index: 10;
}

.collection-size,
.collection-mod-count {
    position: absolute;
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 10;
}

.collection-size {
    top: 1rem;
    left: 1rem;
}

.collection-mod-count {
    top: 3rem;
    left: 1rem;
}

.collection-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.collection-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.collection-description {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.collection-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.collection-version {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.collection-type {
    background: var(--secondary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.collection-mods {
    margin-bottom: 1rem;
}

.collection-mods h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.collection-mods h4::before {
    content: '📦';
    position: absolute;
    left: 0;
    top: 0;
}

.mod-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mod-item {
    background: var(--bg-secondary);
    color: var(--text-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.mod-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.collection-requirements {
    margin-bottom: 1rem;
}

.collection-requirements h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.collection-requirements h4::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.requirement-item i {
    color: var(--primary-color);
    font-size: 0.8rem;
}

.requirement-item:last-child {
    margin-bottom: 0;
}

.collection-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1rem;
}

.download-btn,
.info-btn {
    flex: 1;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 44px;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn:hover::before {
    left: 100%;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.info-btn {
    flex: 0 0 auto;
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.info-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.empty-state p {
    font-size: 1rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .collections-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1rem;
    }

    .collection-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .collection-card {
        min-height: 550px;
        padding: 1rem;
    }

    .collection-content {
        padding: 0;
    }

    .collection-title {
        font-size: 1.1rem;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 3px 8px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 3px 12px rgba(99, 102, 241, 0.6);
    }
}

.info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.info-modal.active {
    opacity: 1;
    visibility: visible;
}

.info-content {
    background: var(--card-bg);
    border-radius: 12px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.info-modal.active .info-content {
    transform: scale(1);
}

.info-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.info-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.info-title-section {
    flex-grow: 1;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.info-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.info-close:hover {
    background: var(--bg-secondary);
    color: var(--text-color);
}

.info-body {
    padding: 1.5rem;
}

.info-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.info-image {
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.info-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-value {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 600;
}

.info-description {
    margin-bottom: 2rem;
}

.info-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-description h4::before {
    content: '📝';
    position: absolute;
    left: 0;
    top: 0;
}

.info-description p {
    color: var(--text-muted);
    line-height: 1.6;
}

.info-mods {
    margin-bottom: 2rem;
}

.info-mods h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-mods h4::before {
    content: '📦';
    position: absolute;
    left: 0;
    top: 0;
}

.mods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.mod-item-detailed {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.mod-item-detailed:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.mod-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.mod-info {
    flex-grow: 1;
}

.mod-name {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.mod-status {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.info-requirements {
    margin-bottom: 2rem;
}

.info-requirements h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-requirements h4::before {
    content: '⚡';
    position: absolute;
    left: 0;
    top: 0;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.requirement-item-detailed {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.requirement-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.requirement-text {
    color: var(--text-color);
    font-weight: 500;
}

.info-installation {
    margin-bottom: 2rem;
}

.info-installation h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
}

.info-installation h4::before {
    content: '🔧';
    position: absolute;
    left: 0;
    top: 0;
}

.installation-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.installation-step {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transition: all 0.3s ease;
}

.installation-step:hover {
    border-color: var(--primary-color);
}

.step-number {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.step-content {
    flex-grow: 1;
}

.step-text {
    color: var(--text-color);
    line-height: 1.5;
}

.info-actions {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.download-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 50px;
}

.download-btn.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.download-btn.primary:hover::before {
    left: 100%;
}

.download-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.download-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.download-btn.secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

@media (max-width: 768px) {
    .info-content {
        width: 95%;
        margin: 1rem;
    }

    .info-header {
        flex-direction: column;
        gap: 1rem;
    }

    .info-header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .info-title {
        font-size: 1.3rem;
    }

    .info-body {
        padding: 1rem;
    }

    .info-hero {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .mods-grid {
        grid-template-columns: 1fr;
    }

    .requirements-grid {
        grid-template-columns: 1fr;
    }

    .info-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .installation-step {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .info-content {
        width: 98%;
        margin: 0.5rem;
    }

    .info-header {
        padding: 1rem;
    }

    .info-body {
        padding: 1rem;
    }

    .info-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 0.75rem;
    }

    .mod-item-detailed {
        flex-direction: column;
        text-align: center;
    }

    .requirement-item-detailed {
        flex-direction: column;
        text-align: center;
    }

    .installation-step {
        flex-direction: column;
        text-align: center;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
