/* Shop Page Styles */

/* Shop Content */
.shop-content {
    padding: 120px 0 4rem;
    min-height: 60vh;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FFFFFF 0%, #93C5FD 50%, #60A5FA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #94A3B8;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem;
    color: #93C5FD;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.loading-spinner i {
    font-size: 2rem;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    max-width: 600px;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #60A5FA;
    box-shadow: 0 20px 40px rgba(96, 165, 250, 0.2);
}

.product-card.owned {
    border-color: #22C55E;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1) 0%, rgba(15, 23, 42, 0.95) 100%);
}

.product-card.coming-soon {
    opacity: 0.85;
    border-color: rgba(251, 191, 36, 0.3);
}

.product-card.coming-soon:hover {
    border-color: #FBBF24;
    box-shadow: 0 20px 40px rgba(251, 191, 36, 0.2);
}

/* Product Header with Icon */
.product-header {
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1) 0%, rgba(147, 197, 253, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.product-icon {
    font-size: 4rem;
    color: #60A5FA;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: rgba(96, 165, 250, 0.1);
    border-radius: 20px;
    border: 2px solid rgba(96, 165, 250, 0.2);
    transition: all 0.3s ease;
}

.product-card:hover .product-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
    box-shadow: 0 10px 30px rgba(96, 165, 250, 0.2);
}

.product-card.owned .product-icon {
    color: #22C55E;
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.2);
}

.product-card.owned:hover .product-icon {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.2);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-badge.owned {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
}

.product-badge.coming-soon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
}

.product-badge i {
    font-size: 0.9rem;
}

.product-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.product-description {
    color: #94A3B8;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.product-description-image {
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.product-description-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-feature {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93C5FD;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.product-feature i {
    font-size: 0.8rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
}

.product-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.85rem;
    color: #94A3B8;
    margin-bottom: 0.2rem;
}

.price-value {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #60A5FA 0%, #93C5FD 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-value.free {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-value.owned {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-value.owned i {
    font-size: 1.2rem;
}

.price-value.coming-soon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-value.coming-soon i {
    font-size: 1.2rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-product {
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    text-align: center;
}

.btn-purchase {
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    color: white;
}

.btn-purchase:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(96, 165, 250, 0.4);
}

.btn-manage {
    background: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    color: white;
}

.btn-manage:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(34, 197, 94, 0.4);
}

.btn-polymart {
    background: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    color: white;
}

.btn-polymart:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.4);
}

.btn-license {
    background: linear-gradient(135deg, #6366F1 0%, #818CF8 100%);
    color: white;
}

.btn-license:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.4);
}

.btn-coming-soon {
    background: linear-gradient(135deg, #F59E0B 0%, #FBBF24 100%);
    color: white;
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-coming-soon:hover {
    transform: none;
    box-shadow: none;
}

.btn-external {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93C5FD;
}

.btn-external:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60A5FA;
    color: #FFFFFF;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
}

.modal.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.98) 0%, rgba(15, 23, 42, 0.98) 100%);
    border: 1px solid rgba(96, 165, 250, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E5E7EB;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #EF4444;
    transform: rotate(90deg);
}

.modal-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.modal-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #FFFFFF;
}

.modal-body {
    padding: 2rem;
}

.purchase-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.purchase-product {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.purchase-icon {
    width: 80px;
    height: 80px;
    background: rgba(96, 165, 250, 0.1);
    border: 2px solid rgba(96, 165, 250, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #60A5FA;
    flex-shrink: 0;
}

.purchase-icon i {
    color: #60A5FA;
}

.purchase-details h3 {
    font-size: 1.3rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

.purchase-details p {
    color: #94A3B8;
    line-height: 1.5;
}

.purchase-steps {
    background: rgba(96, 165, 250, 0.05);
    border: 1px solid rgba(96, 165, 250, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
}

.purchase-steps h4 {
    color: #60A5FA;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purchase-steps ol {
    list-style: none;
    counter-reset: step;
    padding: 0;
}

.purchase-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    color: #CBD5E1;
    line-height: 1.6;
}

.purchase-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.8rem;
    height: 1.8rem;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

.purchase-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-discord-large {
    background: #5865F2;
    color: white;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-discord-large:hover {
    background: #4752C4;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(88, 101, 242, 0.4);
}

.btn-discord-large i {
    font-size: 1.3rem;
}

/* License Display */
.license-display {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.license-key-box {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.license-key-label {
    color: #22C55E;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.license-key-value {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFFFFF;
    background: rgba(15, 23, 42, 0.8);
    padding: 1rem;
    border-radius: 8px;
    word-break: break-all;
    user-select: all;
}

.license-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-copy {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #93C5FD;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-copy:hover {
    background: rgba(96, 165, 250, 0.2);
    border-color: #60A5FA;
    color: #FFFFFF;
}

.btn-copy.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: #22C55E;
    color: #22C55E;
}


/* Responsive Design */
@media (max-width: 768px) {
    .shop-content {
        padding-top: 80px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .products-grid {
        padding: 0 1rem;
    }
    
    .product-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .shop-content {
        padding-top: 70px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .product-features {
        gap: 0.3rem;
    }
    
    .product-feature {
        font-size: 0.8rem;
        padding: 0.25rem 0.6rem;
    }
}