/* Custom styles for The Mama Spot */

:root {
    --primary-color: #6366f1;
    --primary-light: #a5b4fc;
    --primary-dark: #4f46e5;
    --secondary-color: #8b5cf6;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --warm-white: #ffffff;
    --soft-gradient: #f1f5f9;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    line-height: 1.7;
    color: var(--dark-color);
    font-weight: 400;
}

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

.brand-text {
    font-size: 1.3rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.4);
    color: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 50%, rgba(255,255,255,0.1) 100%);
    pointer-events: none;
}

.hero-title {
    font-weight: 700;
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.5;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-icon {
    font-size: 6rem;
    opacity: 0.8;
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .brand-text {
        font-size: 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.5rem !important;
        line-height: 1.4;
    }
    
    .hero-buttons {
        justify-content: center;
        text-align: center;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 200px;
        font-size: 0.9rem;
    }
    
    .hero-section {
        padding: 2rem 1rem !important;
        margin-bottom: 2rem !important;
    }
    
    .card-body {
        padding: 1.5rem 1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(90, 74, 58, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: var(--warm-white);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(90, 74, 58, 0.15);
}

.card-header {
    background-color: var(--accent-color);
    border-bottom: 1px solid var(--primary-light);
    border-radius: 15px 15px 0 0 !important;
    font-weight: 600;
    color: var(--dark-color);
}

/* Buttons */
.btn {
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--warm-white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--warm-white);
}

.btn-light {
    background-color: var(--warm-white);
    border-color: var(--warm-white);
    color: var(--dark-color);
}

.btn-light:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--dark-color);
}

.btn-outline-light {
    border-color: var(--warm-white);
    color: var(--warm-white);
}

.btn-outline-light:hover {
    background-color: var(--warm-white);
    border-color: var(--warm-white);
    color: var(--dark-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Step numbers */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

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

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    color: var(--dark-color);
}

/* Rating stars */
.rating-stars {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-input {
    display: flex;
    gap: 0.25rem;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input label {
    cursor: pointer;
    color: #ddd;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input label.active {
    color: #ffc107;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom utilities */
.text-muted {
    color: #6c757d !important;
}

.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

.shadow {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.shadow-lg {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    .footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #dee2e6 !important;
        box-shadow: none !important;
    }
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
    font-weight: 500;
    border-radius: 12px;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-success {
    background: linear-gradient(45deg, var(--success-color), #22c55e);
    border: none;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
    font-weight: 500;
    border-radius: 12px;
}

.btn-success:hover {
    background: linear-gradient(45deg, #22c55e, var(--success-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

/* Step Numbers */
.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--warm-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

/* Statistics */
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Ratings */
.rating {
    color: var(--warning-color);
}

.rating .fas.fa-star {
    font-size: 1rem;
    margin-right: 2px;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: center;
    gap: 5px;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.3s ease;
}

.rating-input label:hover,
.rating-input label:hover ~ label,
.rating-input input:checked ~ label {
    color: var(--warning-color);
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

.form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
}

.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Badges */
.badge {
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

/* Progress Bar */
.progress {
    height: 8px;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    border-radius: 10px;
    transition: width 0.6s ease;
}

/* Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table th {
    background-color: var(--light-color);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--dark-color);
}

.table-hover tbody tr:hover {
    background-color: rgba(230, 184, 162, 0.05);
}

/* Checklist */
.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.25);
    outline: none;
}

/* Alerts */
.alert {
    border-radius: 10px;
    border: none;
    padding: 1rem 1.5rem;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.alert-info {
    background-color: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

/* Modals */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 15px 15px;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: rgba(230, 184, 162, 0.1);
}

/* Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer {
    background-color: var(--light-color);
    border-top: 1px solid #dee2e6;
}

footer h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color);
}

/* Stripe Elements */
.StripeElement {
    background-color: white;
    height: 40px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    box-shadow: 0 1px 3px 0 #e6ebf1;
    transition: box-shadow 150ms ease;
}

.StripeElement--focus {
    box-shadow: 0 1px 3px 0 #cfd7df;
    border-color: var(--primary-color);
}

.StripeElement--invalid {
    border-color: var(--danger-color);
}

.StripeElement--webkit-autofill {
    background-color: #fefde5 !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
    }
}

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

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading * {
    cursor: wait !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Additional warm color scheme overrides */
.alert-success {
    background-color: rgba(168, 213, 163, 0.15);
    border-color: var(--success-color);
    color: var(--dark-color);
}

.alert-danger {
    background-color: rgba(232, 165, 165, 0.15);
    border-color: var(--danger-color);
    color: var(--dark-color);
}

.alert-warning {
    background-color: rgba(242, 208, 149, 0.15);
    border-color: var(--warning-color);
    color: var(--dark-color);
}

.alert-info {
    background-color: rgba(184, 212, 227, 0.15);
    border-color: var(--info-color);
    color: var(--dark-color);
}

/* Navigation styling */
.warm-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* Bootstrap override for navbar background */
.navbar-dark.warm-nav {
    background-color: var(--primary-color) !important;
    background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark)) !important;
}

/* Override any Bootstrap bg-primary class */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--warm-white) !important;
    font-weight: 500;
}

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

.navbar-dark .navbar-brand {
    color: var(--warm-white) !important;
    font-weight: 600;
}

/* Footer styling */
footer {
    background-color: var(--accent-color);
    border-top: 1px solid var(--primary-light);
    color: var(--dark-color);
}

/* Make footer brand name clearly visible */
footer h5 {
    color: white !important;
    font-weight: 600;
}

/* Ensure footer brand icon is visible */
footer h5 i {
    color: white !important;
}

/* Footer copyright and tagline visibility */
footer .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Dropdown menu styling */
.dropdown-menu {
    background-color: var(--warm-white);
    border: 1px solid var(--primary-light);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(90, 74, 58, 0.1);
}

.dropdown-item {
    color: var(--dark-color);
    padding: 0.5rem 1rem;
    transition: background-color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* Text colors */
.text-primary {
    color: var(--primary-color) !important;
}

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

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