/* Reusable Components */

/* Buttons */
.btn-primary {
    background-color: #ff4444;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    font-family: 'Bricolage Grotesque', sans-serif;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #ff5555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 68, 68, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent, #ff4444);
    padding: 12px 24px;
    border: 2px solid var(--accent, #ff4444);
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: var(--accent, #ff4444);
    color: white;
}

.btn-neon {
    background: linear-gradient(45deg, #00ffff, #ff00ff);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: all 0.3s;
}

.btn-neon:hover {
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    transform: scale(1.05);
}

/* Cards */
.card {
    background-color: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333333);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-primary, #ffffff);
}

.card-body {
    color: var(--text-secondary, #cccccc);
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 12px 15px;
    background-color: var(--bg-tertiary, #2a2a2a);
    border: 1px solid var(--border, #333333);
    border-radius: 5px;
    color: var(--text-primary, #ffffff);
    font-size: 14px;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent, #ff4444);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-secondary, #1a1a1a);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border, #333333);
    border-radius: 15px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-close {
    color: var(--text-secondary, #cccccc);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: var(--accent, #ff4444);
}

/* Loading Spinner */
.spinner {
    border: 4px solid var(--border, #333333);
    border-top: 4px solid var(--accent, #ff4444);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

/* Product Card */
.product-card {
    background-color: var(--bg-secondary, #1a1a1a);
    border: 1px solid var(--border, #333333);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: var(--bg-tertiary, #2a2a2a);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary, #cccccc);
    background-color: var(--bg-tertiary, #2a2a2a);
}

/* Responsive */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 15px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

