/* 
 * Premium Meat Box - Custom Styles
 * Modern, clean design with focus on premium meat products
 */

:root {
    /* Color variables */
    --primary: #8B0000;
    --primary-light: #A52A2A;
    --primary-dark: #640000;
    --secondary: #8B4513;
    --secondary-light: #A0522D;
    --secondary-dark: #6B3000;
    --accent: #F4A460;
    --light: #FFF8F0;
    --dark: #1A1A1A;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-400: #CED4DA;
    --gray-500: #ADB5BD;
    --gray-600: #6C757D;
    --gray-700: #495057;
    --gray-800: #343A40;
    --gray-900: #212529;
    --success: #198754;
    --info: #0DCAF0;
    --warning: #FFC107;
    --danger: #DC3545;
}

/* Typography */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--gray-800);
    background-color: var(--light);
    line-height: 1.5;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.lead {
    font-weight: 400;
    line-height: 1.6;
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

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

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

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

/* Header & Navigation */
.navbar {
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-dark {
    background-color: var(--gray-900) !important;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
}

.brand-text {
    color: var(--light);
    position: relative;
}

.brand-text::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
}

.nav-link {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem !important;
}

.nav-link.active {
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 0;
    position: relative;
    color: var(--light);
}

/* Process Cards */
.process-card {
    padding: 2rem;
    background-color: var(--light);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.process-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
}

/* Subscription Cards */
.subscription-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.subscription-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.subscription-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.subscription-card .card-body {
    padding: 1.5rem;
}

.subscription-card .price {
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.badge {
    text-transform: uppercase;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    padding: 0.4rem 0.8rem;
}

/* Category Cards */
.category-card {
    display: block;
    text-decoration: none;
}

.category-card .card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../img/category-bg.jpg');
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.category-card:hover .card {
    transform: scale(1.03);
}

.category-card .card-title, .category-card .card-text {
    color: white;
}

/* Testimonial Cards */
.testimonial-card {
    border: none;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.stars {
    color: var(--warning);
}

.testimonial-author {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

/* Dashboard Cards */
.dashboard-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    height: 100%;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

/* Forms */
.form-container {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-active {
    background-color: rgba(25, 135, 84, 0.1);
    color: var(--success);
}

.status-paused {
    background-color: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.status-cancelled {
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--danger);
}

/* Footer */
.footer {
    background-color: var(--gray-900);
}

.footer h4, .footer h5 {
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer h4::after, .footer h5::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--accent);
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.social-icons a {
    display: inline-block;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.2s ease;
}

.social-icons a:hover {
    transform: translateY(-3px);
}

/* Admin styles */
.admin-sidebar {
    background-color: var(--gray-900);
    min-height: calc(100vh - 76px);
    padding-top: 2rem;
}

.admin-sidebar .nav-link {
    color: var(--gray-400);
    padding: 0.8rem 1.5rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
}

.admin-sidebar .nav-link i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.admin-sidebar .nav-link:hover, .admin-sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.admin-sidebar .nav-link.active {
    position: relative;
}

.admin-sidebar .nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--primary);
}

/* Dashboard stats */
.stat-card {
    border: none;
    border-radius: 8px;
    padding: 1.5rem;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-600);
}

/* Subscription details */
.subscription-details .image-container {
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.subscription-details .image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-list {
    list-style: none;
    padding-left: 0;
}

.item-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.item-list li:last-child {
    border-bottom: none;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 1s;
}

.slide-up {
    animation: slideUp 0.5s;
}

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

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

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .hero-section {
        padding: 5rem 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .process-card, .subscription-card, .dashboard-card {
        margin-bottom: 1.5rem;
    }
}

/* Custom image placeholder */
.placeholder-img {
    background: linear-gradient(45deg, #f3f3f3 25%, #e0e0e0 25%, #e0e0e0 50%, #f3f3f3 50%, #f3f3f3 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    font-size: 1.5rem;
}

/* Admin content area */
.admin-content {
    padding: 2rem;
}

.admin-content .card {
    margin-bottom: 2rem;
}

/* Login and registration forms */
.auth-wrapper {
    min-height: calc(100vh - 76px - 300px);
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.auth-form {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.auth-form .form-title {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form .btn-primary {
    width: 100%;
}

.auth-form .auth-links {
    margin-top: 1.5rem;
    text-align: center;
}