/* Header 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 Profile Preview Styles - Extracted from Profile Editor */
.discord-profile-preview {
    background: #2f3136;
    border-radius: 10px;
    overflow: hidden;
    border: 4px solid #40444b;
    min-width: 330px;
    max-width: 330px;
    margin: 0 auto;
    box-sizing: border-box;
    font-family: 'Whitney', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.5;
}

.profile-header {
    height: 120px;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.header-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.profile-content {
    padding: 20px;
    position: relative;
}

.avatar-section {
    position: absolute;
    top: -60px; /* Hälfte des Avatars über den Header */
    left: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-container {
    position: relative;
    display: inline-block;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid #2f3136;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.status-indicator {
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 6px solid #2f3136;
}

.status-indicator.online { background: #43b581; }
.status-indicator.idle { background: #faa61a; }
.status-indicator.dnd { background: #f04747; }
.status-indicator.offline { background: #747f8d; }

.profile-info {
    margin-top: 40px; /* Platz für den Avatar */
    padding-left: 0px; /* Platz für den Avatar */
}

.username {
    font-size: 1.3rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.discriminator {
    font-size: 1rem;
    color: #72767d;
    margin-bottom: 8px;
}

.nitro-indicator {
    display: none;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 8px;
    width: 100%;
}

.nitro-indicator.active {
    display: flex;
}

.nitro-indicator img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.status-message {
    display: none;
    background: #40444b;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    max-width: 180px;
    min-width: auto;
    word-wrap: break-word;
    position: relative;
    border: 1px solid #2f3136;
    line-height: 1.2;
    box-sizing: border-box;
    white-space: pre-wrap;
    overflow-wrap: break-word;
}

.status-message.active {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
}

.about-me {
    font-size: 0.9rem;
    color: #b9bbbe;
    margin-bottom: 8px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: pre-wrap;
}

/* Hover Effects */
.discord-profile-preview: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-profile-preview {
        min-width: 280px;
        max-width: 280px;
    }
    
    .avatar {
        width: 80px;
        height: 80px;
    }
    
    .avatar-section {
        top: -50px;
    }
    
    .profile-info {
        margin-top: 30px;
    }
    
    .username {
        font-size: 1.1rem;
    }
    
    .discriminator {
        font-size: 0.9rem;
    }
    
    .about-me {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 12px;
    }
    
    .product-preview {
        padding: 12px;
        width: 100%;
        max-width: 100%;
    }
    
    .discord-profile-preview {
        min-width: 250px;
        max-width: 250px;
    }
    
    .avatar {
        width: 70px;
        height: 70px;
    }
    
    .avatar-section {
        top: -45px;
    }
    
    .profile-info {
        margin-top: 25px;
    }
    
    .product-info h3 {
        font-size: 1.2rem;
    }
    
    .product-price {
        font-size: 1.3rem;
    }
    
    .buy-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
