/* Server Icon Shop specific styles */

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 450px);
    gap: 30px;
    margin-bottom: 60px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.product-card {
    background: #2f3136;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid #202225;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #5865f2;
}

.product-card:hover {
    background: #36393f;
    border-color: #5865f2;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(88, 101, 242, 0.3);
}

.product-preview {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px;
    width: 100%;
    max-width: 400px;
    background: #36393f;
    border-radius: 8px;
    border: 1px solid #202225;
    margin-left: auto;
    margin-right: auto;
}

/* Icons Grid */
.icons-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 400px;
    padding: 5px;
    box-sizing: border-box;
}

.icon-item {
    width: 60px;
    height: 60px;
    background: #2f3136;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 2px solid #40444b;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.icon-item:hover {
    background: #40444b;
    border-color: #5865f2;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.icon-item:active {
    transform: scale(0.95);
}

/* Icon selection effect */
.icon-item.selected {
    background: #5865f2;
    border-color: #5865f2;
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.product-info {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-info h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #ffffff;
    font-weight: 600;
}

.product-info p {
    color: #b9bbbe;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.icon-count {
    display: inline-block;
    background: #5865f2;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
    align-self: flex-start;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #43b581;
    margin-bottom: 15px;
}

.buy-button {
    display: inline-block;
    background: #43b581;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 1rem;
    align-self: flex-start;
    margin-top: auto;
    border: none;
    cursor: pointer;
    font-family: 'Inter', 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.buy-button:hover {
    background: #3ca374;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(67, 181, 129, 0.3);
}

.buy-button:active {
    background: #2d7d46;
    transform: translateY(0);
}

/* Back to Shop Button */
.back-to-shop {
    text-align: center;
    margin-top: 40px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #5865f2;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 1rem;
    font-family: 'Inter', 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.back-button:hover {
    background: #4752c4;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.back-button:active {
    background: #3c45a5;
    transform: translateY(0);
}

.back-button svg {
    flex-shrink: 0;
}

/* Hover Effects */
.icons-grid:hover .icon-item {
    opacity: 0.8;
}

.icons-grid:hover .icon-item:hover {
    opacity: 1;
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeInUp 0.6s ease forwards;
}

.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }

/* Icon item animation */
.icon-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.icon-item:nth-child(1) { animation-delay: 0.1s; }
.icon-item:nth-child(2) { animation-delay: 0.15s; }
.icon-item:nth-child(3) { animation-delay: 0.2s; }
.icon-item:nth-child(4) { animation-delay: 0.25s; }
.icon-item:nth-child(5) { animation-delay: 0.3s; }
.icon-item:nth-child(6) { animation-delay: 0.35s; }
.icon-item:nth-child(7) { animation-delay: 0.4s; }
.icon-item:nth-child(8) { animation-delay: 0.45s; }
.icon-item:nth-child(9) { animation-delay: 0.5s; }
.icon-item:nth-child(10) { animation-delay: 0.55s; }
.icon-item:nth-child(11) { animation-delay: 0.6s; }
.icon-item:nth-child(12) { animation-delay: 0.65s; }
.icon-item:nth-child(13) { animation-delay: 0.7s; }
.icon-item:nth-child(14) { animation-delay: 0.75s; }
.icon-item:nth-child(15) { animation-delay: 0.8s; }
.icon-item:nth-child(16) { animation-delay: 0.85s; }
.icon-item:nth-child(17) { animation-delay: 0.9s; }
.icon-item:nth-child(18) { animation-delay: 0.95s; }
.icon-item:nth-child(19) { animation-delay: 1.0s; }
.icon-item:nth-child(20) { animation-delay: 1.05s; }
.icon-item:nth-child(21) { animation-delay: 1.1s; }
.icon-item:nth-child(22) { animation-delay: 1.15s; }
.icon-item:nth-child(23) { animation-delay: 1.2s; }
.icon-item:nth-child(24) { animation-delay: 1.25s; }

/* Mobile responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(2, 450px);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 450px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-preview {
        padding: 15px;
        width: 100%;
        max-width: 100%;
    }
    
    .icons-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
        padding: 3px;
    }
    
    .icon-item {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .buy-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 12px;
    }
    
    .product-preview {
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .icons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
        padding: 2px;
    }
    
    .icon-item {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .buy-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
    
    .icon-count {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
