/* Recipe Builder - Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    min-height: 100vh;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    color: #819E52;
}

h2 {
    font-size: 2rem;
    color: #819E52;
}

h3 {
    font-size: 1.5rem;
    color: #000;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    color: #e0e0e0;
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-bottom: 3px solid #819E52;
}

.why-built-site p{
    color: white!important;
}

.logo-container {
    text-align: left;
    margin-bottom: 0;
    animation: logoEntrance 0.8s ease-out;
    flex-shrink: 0;
}

.header-logo {
    max-height: 100px;
    width: auto;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);

}

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

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
}

.header-content h1 {
    font-size: 2.5rem;
    color: #819E52;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.header-content p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}



/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #819E52;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    order: 3;
    margin-left: auto;
}

.mobile-menu-toggle:hover {
    background: rgba(129, 158, 82, 0.1);
    color: #ffffff;
}

/* Navigation Styles */
.nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: #d4d4d4;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(129, 158, 82, 0.1);
    border: 1px solid rgba(129, 158, 82, 0.3);
    font-weight: 600;
}

.nav-link:hover {
    background: rgba(129, 158, 82, 0.3);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 158, 82, 0.4);
}

.nav-link.active {
    background: #819E52;
    color: #ffffff;
    border-color: #819E52;
}

.nav-link i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.nav-link:hover i {
    transform: scale(1.1);
}

.nav-link.active i {
    transform: scale(1.1);
}

/* Cards */
.card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4a4a;
    border-top: 3px solid #819E52;
}

/* Form Styles */
.recipe-form {
    max-width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d4d4d4;
    font-weight: 600;
    font-size: 1rem;
}

input[type="text"],
input[type="url"],
input[type="number"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #4a4a4a;
    border-radius: 8px;
    background: #2a2a2a;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #819E52;
    background: #3a3a3a;
    box-shadow: 0 0 0 3px rgba(129, 158, 82, 0.2);
}

input[type="text"]::placeholder,
input[type="url"]::placeholder,
input[type="number"]::placeholder,
input[type="tel"]::placeholder,
textarea::placeholder {
    color: #888;
}

/* Form Help Text */
.form-help {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #888;
    font-style: italic;
}

/* Auth Form Specific Styles */
.auth-form .form-group {
    margin-bottom: 2rem;
}

.auth-form input {
    font-size: 1.1rem;
    padding: 1rem 1.25rem;
}

.auth-form .btn {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.auth-form .btn:last-child {
    margin-bottom: 0;
}

/* Resend SMS Button */
#resendSms {
    background: transparent;
    color: #819E52;
    border: 2px solid #819E52;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

#resendSms:hover {
    background: #819E52;
    color: #ffffff;
}

/* Auth Container Styles */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 0;
}

.auth-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4a4a;
    border-top: 3px solid #819E52;
}

.auth-card h2 {
    color: #819E52;
    text-align: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.auth-card p {
    color: #b8b8b8;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #4a4a4a;
}

.auth-footer p {
    color: #b8b8b8;
    margin-bottom: 1.5rem;
}

/* Auth Steps */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

#recipeIngredients {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

#recipeIngredients:focus {
    line-height: 1.6;
}

/* URL Input Group */
.url-input-group {
    display: flex;
    gap: 1rem;
    align-items: stretch;
}

.url-input-group input {
    flex: 1;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-content: center;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #819E52 0%, #6B8E3F 100%);
    color: #ffffff;
    border: 2px solid #819E52;
    box-shadow: 0 4px 12px rgba(129, 158, 82, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #6B8E3F 0%, #5A7A35 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(129, 158, 82, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #2d5a2d 0%, #4a7c4a 100%);
    color: #ffffff;
    border: 2px solid #2d5a2d;
}

.btn-success:hover {
    background: linear-gradient(135deg, #3d6a3d 0%, #5a8c5a 100%);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    border: 2px solid #6c757d;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.btn-outline {
    background: transparent;
    color: #d4d4d4;
    border: 2px solid #819E52;
}

.btn-outline:hover {
    background: #819E52;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 158, 82, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
    min-width: auto;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: #2a2a2a;
    border: 1px solid #4a4a4a;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-checkbox:hover {
    background: #3a3a3a;
    border-color: #819E52;
}

.category-checkbox input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-label {
    color: #d4d4d4;
    font-weight: 500;
}

.category-checkbox input[type="checkbox"]:checked + .checkbox-label {
    color: #819E52;
    font-weight: 600;
}

/* Recipe Data Section */
.recipe-data {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #4a4a4a;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #819E52;
}

.section-header h2 {
    color: #819E52;
    font-size: 2rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Recipes Grid */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Search and Filter Form */
.search-filter-form {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.filter-form .form-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.filter-form .form-row:last-child {
    margin-bottom: 0;
    justify-content: center;
}

.filter-form .form-group {
    flex: 1;
    min-width: 180px;
}

.search-input,
.filter-select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    transform: translateY(-1px);
}

.search-input:hover,
.filter-select:hover {
    border-color: #667eea;
}

/* Mobile responsiveness for filters */
@media (max-width: 768px) {
    .filter-form .form-group {
        min-width: 100%;
        flex: none;
    }
    
    .filter-form .form-row {
        flex-direction: column;
        align-items: stretch;
    }
}

.recipe-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid #4a4a4a;
    transition: all 0.3s ease;
    position: relative;
}

.recipe-card::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: url('../theCacheRecipeLogo.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.recipe-card:hover::before {
    opacity: 0.2;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: #819E52;
}

.recipe-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .recipe-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #4a4a4a 0%, #5a5a5a 100%);
    color: #819E52;
    font-size: 3rem;
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-content h3 {
    color: #819E52;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.recipe-title-link {
    color: #819E52!important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.recipe-title-link:hover {
    color: #a0c063!important;
    text-decoration: underline;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.recipe-description {
    color: #b8b8b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #888;
    font-size: 0.9rem;
    background: rgba(139, 69, 19, 0.1);
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.2);
}

.meta-item i {
    color: #819E52;
}

.meta-item:hover {
    background: rgba(129, 158, 82, 0.2);
    border-color: #819E52;
}

/* Difficulty Colors */
.difficulty-easy {
    color: #4a7c4a !important;
}

.difficulty-medium {
    color: #d4a017 !important;
}

.difficulty-hard {
    color: #a0522d !important;
}

.recipe-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-start;
}

/* No Recipes State */
.no-recipes,
.no-favorites {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    border: 2px dashed #4a4a4a;
}

.no-recipes i,
.no-favorites i {
    font-size: 4rem;
    color: #819E52;
    margin-bottom: 1rem;
}

.no-recipes h3,
.no-favorites h3 {
    color: #D2691E;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-recipes p,
.no-favorites p {
    color: #b8b8b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    margin: 15% auto;
    padding: 2rem;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid #819E52;
    position: relative;
}

.loading-spinner {
    border: 4px solid #4a4a4a;
    border-top: 4px solid #819E52;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.success-icon {
    font-size: 3rem;
    color: #819E52;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    color: #b8b8b8;
    text-align: center;
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 3px solid #819E52;
}

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

.footer-logo {
    max-height: 40px;
    width: auto;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* Authentication Styles */
.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 2rem 0;
}

.auth-card {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.auth-card h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
}

.auth-form {
    margin-top: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.auth-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: #1C1C1C;
    border-radius: 10px;
}

.auth-footer-logo {
    margin-bottom: 1rem;
}

.auth-logo {
    max-height: 40px;
    width: auto;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.auth-logo:hover {
    opacity: 1;
}

.auth-footer p {
    margin-bottom: 1rem;
    color: #6c757d;
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alert Styles */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert-error {
    background: rgba(139, 0, 0, 0.1);
    color: #ff6b6b;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.alert-success {
    background: rgba(0, 139, 0, 0.1);
    color: #6bff6b;
    border: 1px solid rgba(0, 139, 0, 0.3);
}

.alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
    flex-shrink: 0;
    order: 2;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d4d4d4;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.user-actions .btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* Recipe Rating Styles */
.recipe-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(139, 69, 19, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.recipe-card .recipe-rating {
    margin: 0.75rem 0;
    padding: 0.5rem;
    background: rgba(139, 69, 19, 0.03);
    border: 1px solid rgba(139, 69, 19, 0.08);
}

.rating-stars {
    display: flex;
    gap: 0.2rem;
}

.rating-stars .star {
    font-size: 0.9rem;
    color: #4a4a4a;
    transition: color 0.2s ease;
}

.rating-stars .star.filled {
    color: #D2691E;
}

.rating-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
}

.rating-score {
    font-weight: bold;
    color: #D2691E;
    font-size: 0.9rem;
}

.rating-count {
    font-size: 0.75rem;
    color: #b8b8b8;
}

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

.star {
    cursor: pointer;
    font-size: 1.2rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.star.filled {
    color: #ffd700;
}

.star:hover {
    color: #ffd700;
}

.rating-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-stat {
    text-align: center;
}


.rating-stat .value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.rating-stat .label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Favorite Button */
.favorite-btn {
    background: none;
    border: 2px solid #819E52;
    color: #819E52;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.favorite-btn:hover {
    background: #819E52;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 158, 82, 0.3);
}

.favorite-btn.favorited {
    background: #819E52;
    color: #ffffff;
}

.favorite-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header {
        padding: 1rem 0;
    }
    
    .header-content {
        flex-direction: row;
        gap: 0.5rem;
        justify-content: space-between;
        align-items: center;
    }
    
    .header-logo {
        max-height: 60px;
    }
    
    .footer-logo {
        max-height: 35px;
    }
    
    .auth-logo {
        max-height: 35px;
    }
    
    .recipe-card::before {
        width: 25px;
        height: 25px;
        top: 8px;
        right: 8px;
    }
    
    .logo-container {
        order: 1;
        text-align: left;
        flex-shrink: 0;
    }
    
    .user-menu {
        order: 2;
        margin-left: auto;
        flex-shrink: 0;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .mobile-menu-toggle {
        display: block !important;
        order: 3;
        margin-left: auto;
        background: rgba(129, 158, 82, 0.2);
        border: 2px solid #819E52;
        color: #819E52;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.75rem;
        border-radius: 8px;
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
        flex-direction: column;
        gap: 0.5rem;
        border-radius: 0 0 15px 15px;
        padding: 1rem;
        margin: 0;
        order: 4;
        z-index: 9999;
        border-top: 1px solid #4a4a4a;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .nav.show {
        display: flex !important;
        animation: slideDown 0.3s ease-out;
        border: 3px solid #819E52;
        box-shadow: 0 8px 32px rgba(129, 158, 82, 0.6);
    }
    
    /* Add a background overlay when menu is open */
    .nav.show::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .nav-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .url-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
    .recipes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .pagination {
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .page-link {
        padding: 0.75rem 1rem;
        min-width: 44px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header-logo {
        max-height: 50px;
    }
    
    .footer-logo {
        max-height: 30px;
    }
    
    .auth-logo {
        max-height: 30px;
    }
    
    .recipe-card::before {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
    
    .header-content h1 {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .recipe-card::before {
        width: 20px;
        height: 20px;
        top: 5px;
        right: 5px;
    }
    
    .pagination {
        gap: 0.25rem;
        padding: 0.75rem;
    }
    
    .page-link {
        padding: 0.5rem 0.75rem;
        min-width: 40px;
        font-size: 0.85rem;
    }
    
    .header-logo {
        max-height: 50px;
    }
    
    .user-menu .user-name {
        display: none;
    }
    
    .user-menu .user-actions {
        gap: 0.25rem;
    }
    
    .user-menu .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

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

.recipe-data {
    animation: fadeIn 0.5s ease-out;
}

.recipe-card {
    animation: fadeIn 0.5s ease-out;
}

/* Recipe Count */
.recipe-count {
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(129, 158, 82, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(129, 158, 82, 0.3);
}

.recipe-count p {
    margin: 0;
    color: #819E52;
    font-weight: 600;
}

/* Show All Toggle */
.show-all-toggle {
    text-align: center;
    margin-top: 1rem;
    padding: 1rem;
    border-top: 1px solid #4a4a4a;
}

.show-all-toggle .btn {
    margin: 0 0.5rem;
}

/* Authentication Styles */
.auth-container {
    max-width: 500px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.auth-card {
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid #4a4a4a;
    border-top: 4px solid #819E52;
}

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

.auth-header h2 {
    color: #819E52;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.auth-header p {
    color: #b8b8b8;
    font-size: 1.1rem;
    margin: 0;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #d4d4d4;
    font-weight: 600;
    font-size: 1rem;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #4a4a4a;
    border-radius: 12px;
    background: #1e1e1e;
    color: #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-form input:focus {
    outline: none;
    border-color: #819E52;
    background: #2a2a2a;
    box-shadow: 0 0 0 3px rgba(129, 158, 82, 0.2);
}

.auth-form .form-help {
    display: block;
    margin-top: 0.5rem;
    color: #819E52;
    font-size: 0.85rem;
    font-style: italic;
}

.btn-full {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #4a4a4a;
}

.auth-footer p {
    color: #b8b8b8;
    margin: 0;
}

.auth-footer a {
    color: #819E52;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #6b8a3f;
    text-decoration: underline;
}

/* Alert Styles */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

/* Mobile Responsiveness for Auth */
@media (max-width: 768px) {
    .auth-container {
        margin: 1rem auto;
        padding: 0 0.5rem;
    }
    
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: 15px;
    }
    
    .auth-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-header h2 {
        font-size: 1.75rem;
    }
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    padding: 1.5rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    border: 1px solid #4a4a4a;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.page-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    color: #e0e0e0;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border: 2px solid #4a4a4a;
    font-weight: 600;
    min-width: 52px;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.page-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.page-link:hover::before {
    left: 100%;
}

.page-link:hover {
    background: linear-gradient(135deg, #819E52 0%, #6b8a3f 100%);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(129, 158, 82, 0.4);
    text-decoration: none;
    border-color: #819E52;
}

.page-link.active {
    background: linear-gradient(135deg, #819E52 0%, #6b8a3f 100%);
    color: #ffffff;
    border-color: #819E52;
    box-shadow: 0 6px 20px rgba(129, 158, 82, 0.5);
    transform: scale(1.05);
}

.page-link:active {
    transform: translateY(-1px);
}

.page-link i {
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.page-link:hover i {
    transform: scale(1.1);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-2 {
    margin-top: 2rem;
}

.hidden {
    display: none;
}

#recipeTags {
    width: 100%;
    min-height: 60px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    line-height: 1.4;
    resize: vertical;
    font-family: inherit;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: pre-wrap;
    box-sizing: border-box;
    max-width: 100%;
    overflow: hidden;
    background-color: #2A2A2A;
}

/* Favorites and Ratings Styles */
.favorite-btn {
    background: none;
    border: 2px solid #819E52;
    color: #819E52;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.favorite-btn:hover {
    background: #819E52;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(129, 158, 82, 0.3);
}

.favorite-btn.favorited {
    background: #819E52;
    color: #ffffff;
}

.favorite-btn i {
    font-size: 1rem;
}

/* Recipe Card Favorite Button */
.recipe-card .recipe-image {
    position: relative;
}

.recipe-card .favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(139, 69, 19, 0.9);
    color: white;
    border: none;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 10;
    min-width: auto;
    width: 40px;
    height: 40px;
    justify-content: center;
}

.recipe-card .favorite-btn:hover {
    background: #819E52;
    transform: scale(1.1);
}

.recipe-card .favorite-btn.favorited {
    background: #819E52;
}

/* Cooked Button Styles */
.recipe-card .cooked-btn {
    transition: all 0.3s ease;
}

.recipe-card .cooked-btn:hover {
    background: #28a745;
    transform: scale(1.1);
}

.recipe-card .cooked-btn.cooked {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.recipe-card .cooked-btn.cooked:hover {
    background: #218838;
    border-color: #218838;
}

/* Cooked Badge on Recipe Cards */
.cooked-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.cooked-badge i {
    font-size: 16px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    margin: 1rem 0;
}

.star {
    font-size: 1.5rem;
    color: #4a4a4a;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.star.filled {
    color: #D2691E;
}

.star:hover {
    color: #D2691E;
}

/* Rating Form */
.rating-form {
    margin-top: 1rem;
}

.rating-textarea {
    width: 100%;
    max-width: 300px;
    padding: 0.5rem;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    resize: vertical;
    font-family: inherit;
    background: #2a2a2a;
    color: #e0e0e0;
}

.submit-rating {
    background: #819E52;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.submit-rating:hover {
    background: #D2691E;
}

/* Recipe Interactions Section */
.recipe-interactions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #2a2a2a 0%, #3a3a3a 100%);
    border-radius: 15px;
    flex-wrap: wrap;
    border: 1px solid #4a4a4a;
}

.favorite-section,
.cooked-section,
.rating-section {
    text-align: center;
    min-width: 200px;
}

.favorite-section h3,
.cooked-section h3,
.rating-section h3 {
    margin-bottom: 1rem;
    color: #D2691E;
    font-size: 1.2rem;
}

.rating-info {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #b8b8b8;
}

/* Cooked Button in Recipe Interactions */
.cooked-section .cooked-btn {
    background: #6c757d;
    color: white;
    border: 2px solid #6c757d;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.cooked-section .cooked-btn.cooked {
    background: #28a745;
    border-color: #28a745;
}

.cooked-section .cooked-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* Login Required Section */
.login-required-section {
    text-align: center;
    padding: 3rem 2rem;
}

.login-required-content {
    max-width: 400px;
    margin: 0 auto;
}

.login-required-content i {
    font-size: 4rem;
    color: #819E52;
    margin-bottom: 1rem;
}

.login-required-content h2 {
    color: #819E52;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.login-required-content p {
    color: #b8b8b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* User Menu Styles */
.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

.user-actions {
    display: flex;
    gap: 0.5rem;
}

.auth-actions {
    display: flex;
    gap: 0.5rem;
}

/* Responsive Design for Favorites and Ratings */
@media (max-width: 768px) {
    .recipe-interactions {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .favorite-section,
    .rating-section {
        min-width: auto;
        width: 100%;
        max-width: 300px;
    }
    
    .rating-stars {
        gap: 0.5rem;
    }
    
    .star {
        font-size: 1.8rem;
    }
}

/* Ingredient Checkbox Styles */
.ingredient-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(129, 158, 82, 0.1);
}

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

.ingredient-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #819E52;
    cursor: pointer;
    flex-shrink: 0;
}

.ingredient-checkbox:checked + .ingredient-text {
    text-decoration: line-through;
    color: #819E52;
    opacity: 0.7;
}

.ingredient-text {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    color: #2c2c2c;
    transition: all 0.3s ease;
}

.ingredients-actions {
    margin-top: 1.5rem;
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(139, 69, 19, 0.2);
}

.ingredients-actions .btn {
    background: rgba(139, 69, 19, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.3);
    color: #819E52;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ingredients-actions .btn:hover {
    background: rgba(139, 69, 19, 0.2);
    border-color: rgba(139, 69, 19, 0.5);
        transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}



@media (max-width: 768px) {
    .user-menu {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-end;
    }
    
    .user-info {
        flex-direction: column;
        align-items: flex-end;
        gap: 0.5rem;
    }
}

.header-content {
    margin: 30px;
}
main.main-content {
    margin-top: 15px;
}

/* Social Sharing Styles */
.social-sharing {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

.social-sharing h4 {
    color: #819E52;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
    color: white;
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn.facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.social-btn.twitter {
    background: #1da1f2;
}

.social-btn.twitter:hover {
    background: #1a91da;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.3);
}

.social-btn.pinterest {
    background: #e60023;
}

.social-btn.pinterest:hover {
    background: #cc001f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(230, 0, 35, 0.3);
}

.social-btn.copy-link {
    background: #6c757d;
}

.social-btn.copy-link:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.social-btn.whatsapp {
    background: #25d366;
}

.social-btn.whatsapp:hover {
    background: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.social-btn.email {
    background: #ea4335;
}

.social-btn.email:hover {
    background: #d33426;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.social-btn i {
    font-size: 1rem;
}

/* Responsive Social Buttons */
@media (max-width: 768px) {
    .social-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .social-btn {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .social-sharing {
        padding: 1rem;
    }
    
    .social-sharing h4 {
        font-size: 1.1rem;
    }
    
    .social-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}