/* =========================
   Index
   ========================= */
body {
    background: #FEFDFB;
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.page-header {
    padding: 3rem 0 2rem;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.page-subtitle {
    color: #6B6B6B;
    font-size: 1.1rem;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary-modern {
    background: #2C2C2C;
    color: white;
}

.btn-primary-modern:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.2);
    color: white;
}

.btn-secondary-modern {
    background: white;
    color: #2C2C2C;
    border: 2px solid #E8E8E8;
}

.btn-secondary-modern:hover {
    border-color: #2C2C2C;
    transform: translateY(-2px);
}

.category-filter {
    margin-bottom: 3rem;
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: white;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
}

.category-btn {
    border-radius: 50px;
    padding: 0.65rem 1.5rem;
    transition: all 0.3s ease;
    border: 2px solid #E8E8E8;
    background: #FEFDFB;
    color: #6B6B6B;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #D0D0D0;
}

.category-btn.active {
    border-color: #2C2C2C;
    background-color: #2C2C2C;
    color: white;
    box-shadow: 0 4px 12px rgba(44, 44, 44, 0.15);
}

.recipe-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #F0F0F0;
    background: white;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
    border-color: #E0E0E0;
}

.recipe-image-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #FFE8D6 0%, #E8F3FF 100%);
    overflow: hidden;
}

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

.recipe-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.recipe-card .card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.recipe-card .card-title {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2C2C2C;
    font-size: 1.35rem;
    line-height: 1.3;
}

.recipe-card .card-footer {
    padding: 1.25rem 1.75rem;
    border-top: 1px solid #F0F0F0;
    background: #FEFDFB;
}

.recipe-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #F0F0F0;
}

.recipe-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.recipe-info-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2C2C2C;
}

.recipe-info-label {
    font-size: 0.8rem;
    color: #8B8B8B;
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.difficulty-stars {
    color: #FFB84D;
}

.card-text {
    color: #6B6B6B;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 0;
}

.btn-view-recipe {
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: white;
    color: #2C2C2C;
    border: 2px solid #E8E8E8;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-view-recipe:hover {
    background: #2C2C2C;
    color: white;
    border-color: #2C2C2C;
    transform: translateY(-2px);
}

.no-recipes-alert {
    padding: 3rem;
    text-align: center;
    background: white;
    border-radius: 16px;
    border: 1px solid #F0F0F0;
}

.no-recipes-alert i {
    font-size: 3rem;
    color: #D97757;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1.5rem;
    }

    .page-title {
        font-size: 2rem;
    }

    .action-buttons {
        width: 100%;
    }

    .btn-modern {
        flex: 1;
        justify-content: center;
    }
}

/* =========================
   Edit
   ========================= */

   body {
    background: linear-gradient(180deg, #FEFDFB 0%, #FFF8F3 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.recipe-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.page-header p {
    color: #6B6B6B;
    font-size: 1.1rem;
}

.edit-badge {
    display: inline-block;
    background: linear-gradient(135deg, #E8F3FF 0%, #C3E0FF 100%);
    color: #4A90E2;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F0F0F0;
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F0F0F0;
}

.form-label {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2C2C2C;
    box-shadow: 0 0 0 4px rgba(44, 44, 44, 0.1);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.input-group-text {
    background: #F8F8F8;
    border: 2px solid #E8E8E8;
    border-left: none;
    color: #6B6B6B;
    font-weight: 600;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #2C2C2C;
}

.info-card {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D6 100%);
    border-radius: 16px;
    border: 1px solid #FFE8D6;
    height: 100%;
}

.info-card .card-body {
    padding: 1.75rem;
}

.info-card .card-title {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.image-preview-section {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.image-preview-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.current-image {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.current-image img {
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    height: auto;
}

.delete-image-option {
    background: #FFF5F5;
    border: 2px solid #FFE8E8;
    border-radius: 12px;
    padding: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.delete-image-option:hover {
    background: #FFE8E8;
    border-color: #FFD0D0;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
}

.form-check-label {
    font-weight: 600;
    color: #E74C3C;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.ingredients-wrapper, .steps-wrapper {
    margin-top: 2rem;
}

/* GRID POUR LES INGRÉDIENTS */
.ingredient-item {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.ingredient-item:hover {
    border-color: #E0E0E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ingredient-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.ingredient-field {
    display: flex;
    flex-direction: column;
}

.ingredient-field label {
    font-weight: 600;
    color: #6B6B6B;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.step-item {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #E0E0E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-number {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-add {
    background: white;
    color: #2C2C2C;
    border: 2px dashed #D0D0D0;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add:hover {
    border-color: #2C2C2C;
    border-style: solid;
    background: #2C2C2C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 44, 44, 0.15);
}

.btn-save {
    background: #2C2C2C;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.25);
    color: white;
}

.btn-cancel {
    background: white;
    color: #6B6B6B;
    border: 2px solid #E8E8E8;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    border-color: #2C2C2C;
    color: #2C2C2C;
    transform: translateY(-2px);
}

.btn-danger, .btn-remove {
    background: #E74C3C;
    border: none;
    color: white;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover, .btn-remove:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.form-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #F0F0F0;
}

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

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

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .ingredient-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-save, .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}   

/* =========================
   New
   ========================= */

   body {
    background: linear-gradient(180deg, #FEFDFB 0%, #FFF8F3 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.recipe-form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.6s ease-out;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.page-header p {
    color: #6B6B6B;
    font-size: 1.1rem;
}

.template-card {
    background: linear-gradient(135deg, #FFE8D6 0%, #FFD4B8 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #FFD4B8;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.template-card h3 {
    color: #2C2C2C;
    font-weight: 700;
    font-size: 1.5rem;
}

.template-card p {
    color: #6B6B6B;
    margin-bottom: 0;
}

.template-btn {
    background: #2C2C2C;
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.template-btn:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.2);
    color: white;
}

.form-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.form-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #F0F0F0;
}

.form-header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #F0F0F0;
}

.form-label {
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #E8E8E8;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-control:focus, .form-select:focus {
    border-color: #2C2C2C;
    box-shadow: 0 0 0 4px rgba(44, 44, 44, 0.1);
}

.form-control-lg {
    padding: 1rem 1.25rem;
    font-size: 1.15rem;
    font-weight: 600;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.input-group-text {
    background: #F8F8F8;
    border: 2px solid #E8E8E8;
    border-left: none;
    color: #6B6B6B;
    font-weight: 600;
}

.input-group .form-control {
    border-right: none;
}

.input-group .form-control:focus + .input-group-text {
    border-color: #2C2C2C;
}

.info-card {
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D6 100%);
    border-radius: 16px;
    border: 1px solid #FFE8D6;
    height: 100%;
}

.info-card .card-body {
    padding: 1.75rem;
}

.info-card .card-title {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.ingredients-wrapper, .steps-wrapper {
    margin-top: 2rem;
}

.ingredient-item {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.ingredient-item:hover {
    border-color: #E0E0E0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.ingredient-item .card-body {
    padding: 1.5rem;
}

.ingredient-item .card-footer {
    padding: 1rem 1.5rem;
    background: #FEFDFB;
}

.step-item {
    background: white;
    border: 2px solid #F0F0F0;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #E0E0E0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.step-number {
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.btn-add {
    background: white;
    color: #2C2C2C;
    border: 2px dashed #D0D0D0;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-add:hover {
    border-color: #2C2C2C;
    border-style: solid;
    background: #2C2C2C;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(44, 44, 44, 0.15);
}

.btn-save {
    background: #2C2C2C;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-save:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.25);
    color: white;
}

.btn-cancel {
    background: white;
    color: #6B6B6B;
    border: 2px solid #E8E8E8;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-cancel:hover {
    border-color: #2C2C2C;
    color: #2C2C2C;
    transform: translateY(-2px);
}

.btn-outline-danger {
    border: 2px solid #FFE8E8;
    color: #E74C3C;
    background: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background: #E74C3C;
    border-color: #E74C3C;
    color: white;
    transform: translateY(-2px);
}

.btn-danger {
    background: #E74C3C;
    border: none;
    color: white;
}

.btn-danger:hover {
    background: #C0392B;
}

.btn-remove {
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.rounded-pill {
    border-radius: 50px !important;
}

.form-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #F0F0F0;
}

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

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

.invalid-feedback {
    color: #E74C3C;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .form-card {
        padding: 2rem 1.5rem;
    }

    .template-card {
        padding: 1.5rem;
    }

    .template-card .d-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .template-btn {
        width: 100%;
        justify-content: center;
    }

    .form-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-save, .btn-cancel {
        width: 100%;
        justify-content: center;
    }
}

/* =========================
   Show
   ========================= */

   body {
    background: linear-gradient(180deg, #FEFDFB 0%, #FFF8F3 100%);
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.recipe-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.recipe-header {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    margin-bottom: 2rem;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInDown 0.6s ease-out;
}

.recipe-title-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.recipe-title-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #2C2C2C;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    line-height: 1.1;
}

.recipe-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #FFE8D6 0%, #FFD4B8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.meta-content {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.85rem;
    color: #8B8B8B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2C2C2C;
}

.category-badge {
    background: linear-gradient(135deg, #E8F3FF 0%, #C3E0FF 100%);
    color: #4A90E2;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1rem;
}

.difficulty-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D6 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
}

.difficulty-stars {
    color: #FFB84D;
    font-size: 1.2rem;
}

.difficulty-label {
    font-weight: 600;
    color: #2C2C2C;
}

.action-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn-modern {
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary-modern {
    background: #2C2C2C;
    color: white;
}

.btn-primary-modern:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(44, 44, 44, 0.2);
    color: white;
}

.btn-secondary-modern {
    background: white;
    color: #6B6B6B;
    border: 2px solid #E8E8E8;
}

.btn-secondary-modern:hover {
    border-color: #2C2C2C;
    color: #2C2C2C;
    transform: translateY(-2px);
}

.btn-danger-modern {
    background: #E74C3C;
    color: white;
}

.btn-danger-modern:hover {
    background: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
    color: white;
}

.recipe-image-section {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.recipe-image-section img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.recipe-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #FFE8D6 0%, #E8F3FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 6rem;
}

.content-section {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    border: 1px solid #F0F0F0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    animation: fadeInUp 0.6s ease-out both;
}

.content-section:nth-child(2) { animation-delay: 0.2s; }
.content-section:nth-child(3) { animation-delay: 0.3s; }
.content-section:nth-child(4) { animation-delay: 0.4s; }

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #F0F0F0;
}

.section-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

.description-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #6B6B6B;
}

.info-grid {
    display: grid;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #FEFDFB;
    border-radius: 12px;
    border: 1px solid #F0F0F0;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.info-label {
    font-weight: 600;
    color: #6B6B6B;
    font-size: 1rem;
}

.info-value {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1.15rem;
}

.ingredients-list {
    display: grid;
    gap: 1rem;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: linear-gradient(135deg, #FFF8F3 0%, #FFE8D6 100%);
    border-radius: 12px;
    border: 1px solid #FFE8D6;
    transition: all 0.3s ease;
}

.ingredient-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ingredient-name {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 1.05rem;
}

.ingredient-quantity {
    font-weight: 700;
    color: #D97757;
    font-size: 1rem;
}

.steps-list {
    display: grid;
    gap: 1.5rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: #FEFDFB;
    border-radius: 16px;
    border: 2px solid #F0F0F0;
    transition: all 0.3s ease;
}

.step-item:hover {
    border-color: #E0E0E0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.step-number-display {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #2C2C2C 0%, #1a1a1a 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
}

.step-content {
    flex: 1;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #2C2C2C;
}

.delete-section {
    background: #FFF5F5;
    border: 2px solid #FFE8E8;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.delete-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.delete-warning i {
    font-size: 2.5rem;
    color: #E74C3C;
}

.delete-warning h3 {
    color: #2C2C2C;
    font-weight: 700;
    margin: 0;
}

.delete-warning p {
    color: #6B6B6B;
    margin: 0;
}

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

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

@media (max-width: 768px) {
    .recipe-header {
        padding: 2rem 1.5rem;
    }

    .recipe-title-content h1 {
        font-size: 2rem;
    }

    .recipe-title-section {
        flex-direction: column;
    }

    .action-buttons {
        width: 100%;
    }

    .btn-modern {
        flex: 1;
        justify-content: center;
    }

    .content-section {
        padding: 1.5rem;
    }

    .step-item {
        flex-direction: column;
        padding: 1.5rem;
    }
}