/* Portal Gastronomic - Stiluri personalizate */

/* Fonturi și stiluri generale */
body {
    font-family: 'Roboto', sans-serif;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

a {
    color: #e74c3c;
    text-decoration: none;
}

a:hover {
    color: #c0392b;
    text-decoration: none;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-family: 'Playfair Display', serif;
    font-weight: bold;
}

/* Dropdown Menu pentru Logo */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
    display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
    display: block;
}

.dropdown-submenu > a:after {
    display: block;
    content: " ";
    float: right;
    width: 0;
    height: 0;
    border-color: transparent;
    border-style: solid;
    border-width: 5px 0 5px 5px;
    border-left-color: #ccc;
    margin-top: 5px;
    margin-right: -10px;
}

.dropdown-submenu:hover > a:after {
    border-left-color: #fff;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    margin-bottom: 30px;
}

/* Card Styles */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 150px;
    object-fit: cover;
}

.card-body {
    padding: 0.75rem;
}

.card-footer {
    padding: 0.5rem 0.75rem;
}

/* Product Image Specifics */
.product-image {
    height: 80px;
    object-fit: cover;
}

.product-img {
    height: 80px;
    object-fit: cover;
}

/* Recipe Cards */
.recipe-card .card-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.recipe-card .badge {
    font-size: 0.8rem;
    padding: 5px 10px;
    margin-right: 5px;
}

/* Recipe Detail Page */
.recipe-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.recipe-info-item {
    text-align: center;
}

.recipe-info-item i {
    font-size: 24px;
    margin-bottom: 5px;
    color: #e74c3c;
}

.ingredients-list {
    list-style-type: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.preparation-steps {
    counter-reset: step-counter;
    list-style-type: none;
    padding-left: 0;
}

.preparation-steps li {
    position: relative;
    padding: 15px 0 15px 40px;
    border-bottom: 1px solid #eee;
}

.preparation-steps li:last-child {
    border-bottom: none;
}

.preparation-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 15px;
    width: 30px;
    height: 30px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
}

/* Comments Section */
.comment {
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f8f9fa;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.comment-author {
    font-weight: bold;
}

.comment-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Rating Stars */
.rating {
    color: #ffc107;
}

/* Forms */
.form-control:focus {
    border-color: #e74c3c;
    box-shadow: 0 0 0 0.25rem rgba(231, 76, 60, 0.25);
}

.btn-primary {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-outline-primary {
    color: #e74c3c;
    border-color: #e74c3c;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    background-color: #e74c3c;
    border-color: #e74c3c;
}

/* Footer */
footer {
    background-color: #2c3e50;
}

.social-icons a {
    display: inline-block;
    width: 36px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 10px;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .product-image, .product-img {
        height: 120px;
    }
    
    .recipe-info {
        flex-direction: column;
    }
    
    .recipe-info-item {
        margin-bottom: 15px;
    }
    
    .card-title {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }
    
    .product-image, .product-img {
        height: 140px;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .hide-on-mobile {
        display: none;
    }
    
    .mobile-full-width {
        width: 100%;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1.display-5 {
        font-size: 1.8rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    .product-image, .product-img {
        height: 160px;
    }
}

/* Shopping List Styles */
.shopping-list-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.shopping-list-item:last-child {
    border-bottom: none;
}

.shopping-list-item .form-check-input:checked + .form-check-label {
    text-decoration: line-through;
    color: #6c757d;
}

/* Menu Planner Styles */
.menu-day {
    margin-bottom: 30px;
}

.menu-day-header {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid #e74c3c;
}

.menu-meals {
    padding: 15px;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

.meal-type {
    font-weight: bold;
    margin-bottom: 10px;
    color: #e74c3c;
}

.meal-recipe {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.meal-recipe:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Stiluri pentru optiunile de metoda de plata */
.payment-method-option {
    transition: all 0.3s ease;
    cursor: pointer;
    border-width: 1px !important;
    position: relative;
}

.payment-method-option:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-color: #ced4da !important;
}

.payment-method-option .form-check-input {
    margin-top: 0.25rem;
}

/* Stilizare pentru optiunea selectata */
.payment-method-option input[type="radio"]:checked + label {
    font-weight: 500;
}

.payment-method-option input[type="radio"]:checked + label::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #0d6efd;
    border-radius: 0.25rem;
    pointer-events: none;
}

/* Stiluri pentru imaginile cardurilor */
.payment-method-option img {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.payment-method-option:hover img,
.payment-method-option input[type="radio"]:checked + label img {
    opacity: 1;
} 