/* Server Banner 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;
}

.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: 20px;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.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;
}

/* Discord Server Preview Styles - Extracted from Server Banner Editor */
.discord-sidebar {
    width: 240px;
    background: #2f3136;
    border-radius: 8px;
    border: 1px solid #202225;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0 auto;
}

/* Server Header */
.server-header {
    position: relative;
}

.server-banner {
    width: 100%;
    height: 120px;
    background: linear-gradient(135deg, #5865f2, #4752c4);
    position: relative;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent);
}

.server-name-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-icon-small {
    width: 20px;
    height: 20px;
    background: #5865f2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.server-icon-small svg {
    width: 10px;
    height: 10px;
}

.banner-overlay .server-name {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: calc(100% - 28px);
}

.server-actions {
    padding: 12px 15px;
    border-bottom: 1px solid #202225;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #b9bbbe;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin: 2px 0;
}

.action-item:hover {
    background: #40444b;
    color: #ffffff;
}

.action-item svg {
    flex-shrink: 0;
    color: #72767d;
    width: 16px;
    height: 16px;
}

.sidebar-content {
    padding: 15px;
}

.channel-section {
    margin-bottom: 20px;
}

.channel-header {
    margin-bottom: 8px;
}

.channel-header h4 {
    font-size: 0.75rem;
    color: #72767d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.channel-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.channel-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #b9bbbe;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.channel-item:hover {
    background: #40444b;
    color: #ffffff;
}

.channel-icon {
    color: #72767d;
    font-weight: 600;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.channel-name {
    flex: 1;
}

.voice-section {
    margin-bottom: 20px;
}

.voice-header {
    margin-bottom: 8px;
}

.voice-header h4 {
    font-size: 0.75rem;
    color: #72767d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.voice-list {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.voice-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px;
    border-radius: 4px;
    color: #b9bbbe;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.voice-item:hover {
    background: #40444b;
    color: #ffffff;
}

.voice-icon {
    color: #72767d;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
}

.voice-name {
    flex: 1;
}

/* Hover Effects */
.discord-sidebar:hover {
    transform: translateY(-2px);
    transition: transform 0.3s ease;
}

/* 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; }

/* 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%;
    }
    
    .discord-sidebar {
        width: 200px;
    }
    
    .server-banner {
        height: 100px;
    }
    
    .banner-overlay {
        padding: 12px;
    }
    
    .server-icon-small {
        width: 18px;
        height: 18px;
    }
    
    .server-icon-small svg {
        width: 10px;
        height: 10px;
    }
    
    .banner-overlay .server-name {
        font-size: 1rem;
    }
    
    .server-actions {
        padding: 6px 0;
    }
    
    .action-item {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .sidebar-content {
        padding: 12px;
    }
    
    .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%;
    }
    
    .discord-sidebar {
        width: 180px;
    }
    
    .server-banner {
        height: 80px;
    }
    
    .banner-overlay {
        padding: 8px;
    }
    
    .server-icon-small {
        width: 16px;
        height: 16px;
    }
    
    .server-icon-small svg {
        width: 9px;
        height: 9px;
    }
    
    .banner-overlay .server-name {
        font-size: 0.9rem;
    }
    
    .server-actions {
        padding: 4px 0;
    }
    
    .action-item {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
    
    .sidebar-content {
        padding: 10px;
    }
    
    .channel-item, .voice-item {
        font-size: 0.8rem;
        padding: 3px 6px;
    }
    
    .product-info h3 {
        font-size: 1.1rem;
    }
    
    .product-price {
        font-size: 1.2rem;
    }
    
    .buy-button {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}
