/* Custom styles for Crownpixies Tech */

:root {
    --color-deep-blue: #0A192F;
    --color-bright-cyan: #00AEEF;
    --color-neon-purple: #7B61FF;
    --color-dark-grey: #1E1E1E;
}

/* Navigation Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-top: 0.25rem;
    border-bottom-width: 2px;
    font-size: 0.875rem;
    font-weight: 500;
    border-color: transparent;
    transition: all 0.2s ease-in-out;
}

.nav-link.active {
    border-bottom-color: var(--color-bright-cyan);
    color: var(--color-deep-blue);
}

.nav-link:not(.active) {
    color: var(--color-dark-grey);
}

.nav-link:not(.active):hover {
    border-bottom-color: var(--color-neon-purple);
    color: var(--color-deep-blue);
}

/* Mobile Navigation */
.mobile-nav-link {
    display: block;
    padding: 0.5rem 1rem;
    border-left-width: 4px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.mobile-nav-link.active {
    background-color: rgba(0, 174, 239, 0.1);
    border-left-color: var(--color-bright-cyan);
    color: var(--color-deep-blue);
}

.mobile-nav-link:not(.active) {
    border-color: transparent;
    color: var(--color-dark-grey);
}

/* Category Cards */
.category-card:hover {
    transform: translateY(-5px);
    transition: transform 0.2s ease-in-out;
}

/* Product Cards */
.product-card {
    transition: transform 0.2s ease-in-out;
}

.product-card:hover {
    transform: translateY(-5px);
}

/* Form Inputs */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--color-bright-cyan);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.1);
}

/* Buttons */
.btn {
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--color-bright-cyan);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-deep-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--color-neon-purple);
    color: white;
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-danger {
    background-color: #ef4444;
    color: white;
}

.btn-danger:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Alert Messages */
.alert {
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: 0.375rem;
    position: relative;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #34d399;
    color: #065f46;
}

.alert-error {
    background-color: #fef2f2;
    border-color: #f87171;
    color: #991b1b;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #fbbf24;
    color: #92400e;
}

/* Admin Panel */
.stat-card {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.2s ease-in-out;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Order Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background-color: #fffbeb;
    color: #92400e;
}

.status-completed {
    background-color: #ecfdf5;
    color: #065f46;
}

.status-cancelled {
    background-color: #fef2f2;
    color: #991b1b;
}

/* Product Image Upload */
.image-upload {
    border: 2px dashed #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.image-upload:hover {
    border-color: var(--color-bright-cyan);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

/* Payment method component styles (moved from includes/checkout/payment_methods.php) */
.payment-method-option {
    position: relative;
}

.payment-method-option .peer:checked + div {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.payment-method-option .peer:checked + div::after {
    content: '';
    display: block;
    width: 1.5rem;
    height: 1.5rem;
    background-color: #3b82f6;
    border: 2px solid #ffffff;
    border-radius: 50%;
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
}

/* Store locator styles (moved from includes/store_locator.php) */
.store-map-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.info-window { padding: 10px; max-width: 220px; }
.info-window h3 { margin: 0 0 6px 0; color: #2563eb; }
.store-list-item:hover { background: #f9fafb; }

/* Stripe payment form component styles removed */

.pagination-link {
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.25rem;
    transition: all 0.2s ease-in-out;
}

.pagination-link:hover {
    background-color: #f3f4f6;
}

.pagination-link.active {
    background-color: var(--color-bright-cyan);
    border-color: var(--color-bright-cyan);
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    max-width: 32rem;
    width: 100%;
    margin: 0 auto;
}

/* Table Styles */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.table-header {
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    color: #6b7280;
    letter-spacing: 0.05em;
}

.table-cell {
    padding: 0.75rem 1.5rem;
    white-space: nowrap;
}

/* Loading Spinner */
.spinner {
    animation: spin 1s linear infinite;
    border: 4px solid #e5e7eb;
    border-top-color: var(--color-bright-cyan);
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Tooltip */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    position: absolute;
    visibility: hidden;
    background-color: var(--color-deep-blue);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    bottom: -2rem;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 10;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
}

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Product Reviews */
.rating-stars {
    display: inline-flex;
    gap: 0.25rem;
    color: #fbbf24;
}

.review-card {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Wishlist */
.wishlist-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: white;
    border-radius: 50%;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease-in-out;
}

.wishlist-button:hover {
    transform: scale(1.1);
}

.wishlist-button.active {
    color: #ef4444;
}

/* Product Filter */
.filter-section {
    background: white;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-range {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    position: relative;
    margin: 2rem 0;
}

.price-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-bright-cyan);
    border-radius: 50%;
    position: absolute;
    top: -6px;
    cursor: pointer;
}

/* Newsletter */
.newsletter-section {
    background: var(--color-deep-blue);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

/* Blog */
.blog-card {
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: transform 0.2s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.chat-toggle {
    background: var(--color-bright-cyan);
    color: white;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
}

.chat-toggle:hover {
    transform: scale(1.1);
}