/* OyunPa Light Theme Styles */

:root {
    --primary-color: #6366f1;
    --primary-hover: #4f46e5;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --text-color: #1e293b;
    --text-muted: #64748b;
    --navbar-bg: #ffffff;
    --footer-bg: #f8fafc;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

.navbar {
    background-color: var(--navbar-bg) !important;
    border-bottom: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm);
}

.navbar-light .navbar-nav .nav-link {
    color: var(--text-color) !important;
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    font-weight: 700;
}

.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

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

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control, .form-select {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background-color: var(--card-bg);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
    outline: none;
}

.table-dark {
    background-color: var(--card-bg);
    color: var(--text-color);
}


.text-muted {
    color: var(--text-muted) !important;
}

footer {
    background-color: var(--footer-bg) !important;
    border-top: 1px solid var(--border-color) !important;
    color: var(--text-color);
    margin-top: auto;
}

footer .text-muted {
    color: var(--text-muted) !important;
}


.badge {
    font-size: 0.75rem;
}

.product-card {
    cursor: pointer;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success-color);
}

.alert {
    border-radius: 8px;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

/* Additional Light Theme Styles */
.alert {
    border: none;
    box-shadow: var(--shadow-sm);
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.navbar-toggler {
    border-color: var(--border-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

main {
    background-color: var(--bg-light);
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

main > .container {
    background-color: transparent;
    padding: 2rem 15px;
    box-shadow: none;
}

/* Page Title */
h1.display-4, h1.display-5 {
    color: var(--text-color);
    font-weight: 700;
}

/* Input Group */
.input-group .form-control {
    border-right: none;
}

.input-group .btn {
    border-left: none;
    border-color: var(--border-color);
}

/* Table Styles */
.table {
    background-color: var(--card-bg);
}

.table thead th {
    background-color: var(--bg-light);
    color: var(--text-color);
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Header Slider Styles */
#headerSlider {
    margin-bottom: 0;
}

.header-slide {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.header-slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.85) 0%, rgba(139, 92, 246, 0.75) 100%);
    z-index: 1;
}

.header-slide .container {
    position: relative;
    z-index: 2;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-md);
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-indicators .active {
    background-color: white;
    border-color: white;
    width: 14px;
    height: 14px;
}

/* Categories Section Styles */
.categories-section {
    margin-top: 0;
    padding: 4rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.category-circle {
    display: block;
    width: 100%;
    padding-bottom: 100%;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
    text-decoration: none;
}

.category-circle-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-md);
    background: var(--card-bg);
}

.category-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
    z-index: 1;
    position: relative;
}

.category-circle:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.3) 0%, rgba(139, 92, 246, 0.3) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease, background 0.3s ease;
    opacity: 0;
}

.category-circle:hover .category-overlay {
    opacity: 1;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.7) 0%, rgba(139, 92, 246, 0.7) 100%);
}

.category-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4), transparent);
    color: white;
    padding: 1.2rem 0.5rem 0.7rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    line-height: 1.2;
}

@media (max-width: 768px) {
    .category-name {
        font-size: 0.75rem;
        padding: 0.75rem 0.25rem 0.25rem;
    }
    
    .header-slide {
        min-height: 350px;
    }
    
    .header-slide .display-4 {
        font-size: 2rem;
    }
}

/* Smooth transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

