/* Store Page Specific Styles */

/* Store Hero Section */
.store-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    background: linear-gradient(135deg, rgba(110, 68, 255, 0.1), rgba(0, 217, 255, 0.05));
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--light);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--gray);
    line-height: 1.7;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.store-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 3rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat p {
    color: var(--gray);
    font-size: 1rem;
    font-weight: 500;
}

/* Navigation Auth Button */
.nav-auth {
    display: flex;
    align-items: center;
}

.auth-btn {
    background: var(--gradient);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.auth-btn.logout {
    background: transparent;
    border: 2px solid var(--accent);
}

/* Category Section */
.category-section {
    padding: 40px 0;
    background: var(--darker);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.category-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.category-btn {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    padding: 15px 25px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.category-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.category-btn.active {
    background: var(--gradient);
    border-color: transparent;
    box-shadow: var(--neon-glow);
}

.category-btn i {
    font-size: 1.2rem;
}

/* Search Section */
.search-section {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(110, 68, 255, 0.05), rgba(0, 217, 255, 0.02));
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-box {
    position: relative;
    margin-bottom: 20px;
}

.search-box i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
    font-size: 1.2rem;
}

.search-box input {
    width: 100%;
    padding: 18px 60px 18px 50px;
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: var(--light);
    font-size: 1.1rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(110, 68, 255, 0.3);
}

.search-box input::placeholder {
    color: var(--gray);
}

.search-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: var(--neon-glow);
}

.search-filters {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-filters select {
    background: var(--card-bg);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--light);
    padding: 12px 15px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-filters select:focus {
    outline: none;
    border-color: var(--primary);
}

.search-filters option {
    background: var(--darker);
    color: var(--light);
}

/* Products Section */
.products-section {
    padding: 60px 0;
    background: var(--darker);
    min-height: 60vh;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--neon-glow);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient);
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 2;
}

.product-badge.free {
    background: #00ff88;
    color: var(--dark);
}

.product-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-image i {
    font-size: 3rem;
    color: white;
    opacity: 0.8;
}

.product-content {
    padding: 25px;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--light);
    margin-bottom: 10px;
    line-height: 1.4;
}

.product-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.product-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    text-align: center;
}

.product-price.free {
    color: #00ff88;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-demo,
.btn-download,
.btn-buy {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-demo {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-demo:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-download {
    background: #00ff88;
    color: var(--dark);
    font-weight: 600;
}

.btn-download:hover {
    background: #00e67a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.btn-buy {
    background: var(--gradient);
    color: white;
    font-weight: 600;
}

.btn-buy:hover {
    transform: translateY(-2px);
    box-shadow: var(--neon-glow);
}

.btn-buy:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left: 4px solid var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-spinner p {
    color: var(--gray);
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray);
}

.no-products i {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-products h3 {
    margin-bottom: 10px;
    color: var(--light);
}

/* Warning Section */
.warning-section {
    padding: 40px 0;
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(255, 215, 0, 0.05));
}

.warning-card {
    background: rgba(255, 46, 99, 0.1);
    border: 1px solid var(--accent);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.warning-card i {
    font-size: 2rem;
    color: var(--accent);
    margin-top: 5px;
}

.warning-content h3 {
    color: var(--accent);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.warning-content p {
    color: var(--light);
    line-height: 1.6;
    margin: 0;
}

/* Auth Modal */
.auth-modal,
.demo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    padding: 20px;
}

.auth-modal .modal-content,
.demo-modal .modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 450px;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--neon-glow);
    position: relative;
}

.demo-modal .modal-content {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    font-size: 1.5rem;
    color: var(--light);
    font-weight: 600;
    margin: 0;
}

.close-modal {
    font-size: 1.5rem;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 25px;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--light);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: var(--light);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(110, 68, 255, 0.3);
}

.form-help {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 5px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light);
    font-size: 0.9rem;
    cursor: pointer;
}

.remember-me input {
    margin: 0;
}

.forgot-password {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary);
}

.auth-submit {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
}

.auth-switch {
    text-align: center;
}

.auth-switch p {
    color: var(--gray);
    margin: 0;
}

.auth-switch a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-switch a:hover {
    color: var(--primary);
}

/* Demo Modal */
.demo-video {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 20px;
}

.demo-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.demo-info h4 {
    color: var(--light);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.demo-info p {
    color: var(--gray);
    line-height: 1.6;
    margin: 0;
}

/* Mobile Auth */
.mobile-auth {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-auth-btn {
    width: 100%;
    justify-content: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3rem;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .store-hero {
        padding-top: 100px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .store-stats {
        gap: 30px;
    }

    .stat h3 {
        font-size: 2.5rem;
    }

    .nav-auth {
        display: none;
    }

    .category-buttons {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .search-filters {
        flex-direction: column;
    }

    .search-filters select {
        width: 100%;
    }

    .warning-card {
        flex-direction: column;
        text-align: center;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .store-stats {
        flex-direction: column;
        gap: 20px;
    }

    .product-actions {
        flex-direction: column;
    }

    .auth-modal .modal-content {
        margin: 10px;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-body {
        padding: 20px;
    }
}

/* Add these to store.css */

/* Video Container Styles */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    margin-bottom: 20px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-bg);
    border-radius: 10px;
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.fallback-content i {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 15px;
}

.fallback-content h4 {
    color: var(--light);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.fallback-content p {
    color: var(--gray);
    margin-bottom: 15px;
    line-height: 1.5;
}

.alternative-demo {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.demo-placeholder i {
    font-size: 4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.demo-placeholder h4 {
    color: var(--light);
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.demo-placeholder p {
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.5;
}