/* TheLeo.info Store Custom Styles */

/* Custom Variables */
:root {
    --primary-color: #007bff;
    --secondary-color: #ffc107;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Global Styles */
body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--dark-color);
}

/* Navigation Enhancements */
.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.badge {
    font-size: 0.7rem;
    margin-left: 0.3rem;
}

/* Main Content */
.main {
    min-height: calc(100vh - 200px);
}

/* Card Styles for Products/Raffles */
.product-card, .raffle-card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card:hover, .raffle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image, .raffle-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

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

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    font-size: 0.9rem;
}

/* Buttons */
.btn-store {
    background: linear-gradient(45deg, var(--primary-color), var(--info-color));
    border: none;
    color: white;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    color: white;
}

.btn-raffle {
    background: linear-gradient(45deg, var(--warning-color), #fd7e14);
    border: none;
    color: var(--dark-color);
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-raffle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    color: var(--dark-color);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color), var(--info-color));
    color: white;
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 3rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Raffle Section */
.raffle-section {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 3rem 0;
    border-radius: 1rem;
    margin: 3rem 0;
}

.raffle-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 0.5rem;
    margin: 2rem 0;
}

.raffle-number {
    background: white;
    border: 2px solid var(--warning-color);
    border-radius: 0.5rem;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.raffle-number:hover {
    background: var(--warning-color);
    color: var(--dark-color);
    transform: scale(1.05);
}

.raffle-number.selected {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

.raffle-number.sold {
    background: #6c757d;
    border-color: #6c757d;
    color: white;
    cursor: not-allowed;
}

/* Footer Enhancements */
footer {
    background: var(--dark-color) !important;
}

footer a:hover {
    color: var(--warning-color) !important;
    text-decoration: none;
}

footer .fab:hover {
    transform: scale(1.2);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .raffle-numbers {
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    }
    
    .navbar-nav .nav-link {
        margin: 0.2rem 0;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in {
    animation: slideIn 0.8s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-color);
    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); }
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
}

/* Alert Enhancements */
.alert {
    border-radius: 0.5rem;
    border: none;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(45deg, #d4edda, #c3e6cb);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(45deg, #f8d7da, #f5c6cb);
    color: #721c24;
}

.alert-warning {
    background: linear-gradient(45deg, #fff3cd, #ffeaa7);
    color: #856404;
}

.alert-info {
    background: linear-gradient(45deg, #d1ecf1, #b8daff);
    color: #0c5460;
}
