/*
 * RecipeLM Main Stylesheet
 * A clean, modular CSS structure for the RecipeLM application
 */

/* Variables and Base Styles */
:root {
    /* Primary Colors */
    --color-primary: #003D29;      /* Deep forest green - main brand color */
    --color-primary-dark: #004d33; /* Darker green for hover states */
    --color-primary-light: #4CAF50;/* Lighter green for accents */
    --color-primary-rgb: 0, 61, 41;/* RGB values for opacity */
    
    /* Background Colors */
    --color-white: #ffffff;
    --color-gray-50: #f8f9fa;
    --color-gray-100: #f1f1f1;
    --color-gray-200: #e9ecef;
    --color-gray-300: #dee2e6;
    --color-gray-400: #ced4da;
    --color-gray-500: #adb5bd;
    --color-gray-600: #6c757d;
    --color-gray-700: #495057;
    --color-gray-800: #343a40;
    --color-gray-900: #212529;
    
    /* Text Colors */
    --color-text-dark: #333333;
    --color-text-medium: #666666;
    --color-text-light: #ffffff;
    
    /* Status Colors */
    --color-success: #4CAF50;
    --color-error: #d32f2f;
    --color-error-dark: #b71c1c;
    --color-warning: #ffc107;
    --color-info: #0d6efd;
    
    /* Shadow */
    --color-shadow: rgba(0, 61, 41, 0.1);
    
    /* Legacy Variables (for backward compatibility) */
    --primary-green: var(--color-primary);
    --secondary-green: var(--color-primary-dark);
    --accent-green: #e8f5e9;  /* Light green background */
    --text-dark: var(--color-text-dark);
    --text-medium: var(--color-text-medium);
    --text-light: var(--color-text-light);
    --success: var(--color-success);
    --error: var(--color-error);
    --shadow: var(--color-shadow);
}

/* Credit Display Styles */
.credit-display {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    margin-top: 1.5rem;
    color: white;
}

.credit-icon {
    color: #ffc107;
    margin-right: 0.5rem;
}

.credit-note {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: white;
}

/* Base Layout */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--accent-green);
    color: var(--text-dark);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Base Navigation */
.base-navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 4px var(--color-shadow);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 70px;
    display: flex !important;
}

.base-navbar-content {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    width: 100%;
}

.base-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.base-logo img {
    height: 90px;
    margin-right: 10px;
}

.logo-text {
    display: flex;
    align-items: center;
    font-size: 1.8em;
}

.logo-recipe {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.logo-lm {
    font-weight: 700;
}

.base-nav-links {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    margin: 0 0 0 2rem;
}

.base-main-nav {
    display: flex !important;
    align-items: center;
    gap: 0.40rem;
    margin: 0;
}

.menu-group {
    display: flex !important;
    gap: 0.50rem;
    margin-left: auto;
}

.base-main-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.1rem 0.5rem;
    transition: color 0.3s ease;
}

.base-main-nav a:hover {
    color: var(--color-primary);
}

.base-user-nav {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.base-user-nav a {
    color: var(--color-text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.base-user-nav a:hover {
    color: var(--color-primary);
}

.base-try-free-button {
    background-color: var(--color-primary);
    color: var(--color-text-light) !important;
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.base-try-free-button:hover {
    background-color: var(--color-primary-dark);
    color: var(--color-text-light) !important;
}

/* Base Dropdown */
.base-dropdown {
    position: relative;
}

.base-dropdown-toggle {
    cursor: pointer;
    padding: 0.5rem 1rem;
}

/* Updated dropdown menu styling for both menus */
.base-dropdown-menu {
    min-width: 120px;
    position: absolute;
    left: 0;  /* Align to the left edge of the parent */
    right: auto;  /* Remove right positioning */
    transform: none;  /* Remove transform */
    display: none;
    top: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 10px var(--color-shadow);
    border-radius: 4px;
    padding: 0.2rem 0;
}

/* User account dropdown - same positioning as regular dropdown */
.base-dropdown-menu-user {
    min-width: 120px;
    position: absolute;
    left: 0;  /* Align to the left edge of the parent */
    right: auto;  /* Remove right positioning */
    transform: none;  /* Remove transform */
    display: none;
    top: 100%;
    background: var(--color-white);
    box-shadow: 0 2px 10px var(--color-shadow);
    border-radius: 4px;
    padding: 0.2rem 0;
}

.base-dropdown:hover .base-dropdown-menu,
.base-dropdown:hover .base-dropdown-menu-user {
    display: block;
}

.base-dropdown-menu a,
.base-dropdown-menu-user a {
    display: block;
    padding: 0.5rem 0.5rem;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.base-dropdown-menu a:hover,
.base-dropdown-menu-user a:hover {
    background-color: var(--color-gray-50);
}

/* Base Main Content */
.base-main-content {
    flex: 1;
    margin-top: 70px; /* Height of navbar */
    margin-bottom: 60px; /* Height of footer */
}

/* Base Footer */
.base-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    padding: 1rem 0;
    margin-top: auto;
    display: block;
    width: 100%;
}

.base-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.base-footer p {
    margin: 0.5rem 0;
}

.base-footer a {
    color: var(--color-text-light);
    text-decoration: none;
    margin: 0 0.5rem;
}

.base-footer a:hover {
    text-decoration: underline;
}

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

/* Button styles */
button {
    background-color: var(--primary-green);
    color: var(--text-light);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    width: auto;
    margin-bottom: 1rem;
    min-width: 120px;
}

button:hover {
    background-color: var(--secondary-green);
}

/* Form styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select {
    width: 100%;
    padding: 0.8rem;
    box-sizing: border-box;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-green);
    outline: none;
}

/* Authentication Forms Styling */
.auth-form-container {
    max-width: 360px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 8px 24px var(--color-shadow);
}

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

.auth-form-header h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.auth-form-header p {
    color: var(--color-gray-600);
    font-size: 1rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.auth-form-group {
    position: relative;
}

.auth-form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-gray-700);
    font-weight: 500;
    font-size: 0.95rem;
}

.auth-form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: var(--color-white);
    box-sizing: border-box;
}

.auth-form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
    outline: none;
}

.auth-form-input::placeholder {
    color: var(--color-gray-400);
}

.auth-form-button {
    width: 100%;
    padding: 1rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 0.5rem;
    box-sizing: border-box;
}

.auth-form-button:hover {
    background-color: var(--color-primary-dark);
}

.auth-form-button:disabled {
    background-color: var(--color-gray-400);
    cursor: not-allowed;
}

.auth-form-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-gray-200);
}

.auth-form-links a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-form-links a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.auth-form-error {
    color: var(--color-error);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-form-flash {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.auth-form-flash.info {
    background-color: rgba(var(--color-primary-rgb), 0.1);
    color: var(--color-primary);
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
}

.auth-form-flash.error {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(211, 47, 47, 0.2);
}

.auth-form-flash.success {
    background-color: rgba(76, 175, 80, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(76, 175, 80, 0.2);
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem 0;
    margin-bottom: 1rem;
}

.hero-content {
    flex: 1;
    text-align: center;
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--primary-green);
    line-height: 1.1;
}

.hero .subtitle {
    text-align: center;
    font-size: 1.4rem;
    line-height: 1.5;
    color: var(--text-medium);
    margin: 0 auto;
    max-width: 100%;
}

.hero .subtitle strong {
    color: #333;
    font-weight: 600;
}

.hero .subtitle-main {
    display: block;
    font-size: 1.8rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.hero-image {
    flex: 1;
    min-height: 300px;
}

.hero-image img {
    max-width: 100%;
    transform: rotate(-2deg);
    border: 10px solid white;
    border-radius: 25px;
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.15),
        0 10px 20px rgba(0,0,0,0.1);
}

/* How it works section */
.how-it-works {
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-bottom: 1rem;
    text-align: center;
}

.how-it-works h2 {
    color: #333;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.steps {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    max-width: 1000px;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0.5rem;
    max-width: 220px;
}

.step-number {
    text-decoration: none;
    color: var(--primary-light);
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 5px 15px var(--shadow);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-size: 2.2rem;
    font-weight: bold;
    position: relative;
    overflow: hidden;
}

.step-number:hover {
    transform: scale(1.1) rotate(5deg);
    background: var(--color-primary-dark);
    color: var(--text-light);
    box-shadow: 0 8px 20px var(--shadow);
}

.step-number::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    transition: transform 0.3s ease-out;
}

.step-number:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.step-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.step-link:hover {
    color: var(--primary-green);
}

.step h3 {
    color: #333;
    margin: 0.8rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.step p {
    color: #666;
    line-height: 1.6;
    font-size: 1rem;
    margin: 0;
}

/* Recipe cards and grid */
.recipe-row-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 0;
}

.recipe-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 250px;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: #003D29 #ddd;
}

.recipe-row::-webkit-scrollbar {
    height: 8px;
}

.recipe-row::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.recipe-row::-webkit-scrollbar-thumb {
    background: #003D29;
    border-radius: 4px;
}

.recipe-card {
    width: 250px;
    height: 260px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

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

.recipe-image-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
}

.recipe-info {
    padding: 8px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.recipe-title {
    margin: 0;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
}

.scroll-button {
    background: white;
    color: #003D29;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 50px;
    height: 50px;
    font-size: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.scroll-button:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.scroll-button.scroll-left::before {
    content: "‹";
    position: relative;
    top: -2px;
}

.scroll-button.scroll-right::before {
    content: "›";
    position: relative;
    top: -2px;
}

/* Category headers */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.category-header h2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
}

/* Empty content states */
.empty-cookbook {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 10px;
    margin-top: 2rem;
}

.empty-cookbook h2 {
    color: var(--primary-green);
    margin-bottom: 1rem;
}

.empty-cookbook a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
}

.empty-cookbook a:hover {
    text-decoration: underline;
}

/* Header container */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 30px 0 40px 0;
    height: 60px;
}

/* Search */
.search-container {
    display: flex;
    align-items: stretch;
    background: white;
    border: 1px solid var(--color-gray-300);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.search-container:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 61, 41, 0.1);
}

.search-input {
    border: none;
    outline: none;
    padding: 0 16px;
    width: 260px;
    font-size: 14px;
    height: 42px;
    line-height: 42px;
}

.search-buttons {
    display: flex;
    height: 42px;
    margin: 0;
    padding: 0;
    gap: 0;
}

.search-button,
.clear-button {
    padding: 0;
    width: 80px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    background-color: #003D29 !important;
    color: white;
    margin: 0;
    border-radius: 0;
}

.search-container .search-button:hover,
.search-container .clear-button:hover {
    background-color: #004d33 !important;
}

/* Utility classes */
.nowrap {
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        flex-direction: column;
    }

    .steps {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .step {
        margin-bottom: 2rem;
        max-width: 300px;
    }

    .recipe-row {
        grid-auto-columns: 85%;
    }

    .recipe-card {
        width: 100%;
    }
}

/* Recipe Detail Page Styles */
.recipe-detail-container {
    padding: 1rem 2rem 2rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.recipe-detail-section {
    margin-top: 0.4rem;
}

.recipe-detail-header {
    margin-bottom: 2rem;
}

.recipe-detail-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.recipe-detail-title-section {
    flex: 1;
    margin-right: 20px;
}

.recipe-detail-title {
    margin: 0;
    padding: 0;
    font-size: 2rem;
    color: var(--color-primary);
}

.recipe-detail-ingredients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.recipe-detail-action-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

.recipe-detail-action-button {
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    min-width: unset;
}

.recipe-detail-action-button.modify-button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    order: 1; /* First item */
}

.recipe-detail-action-button.modify-button:hover {
    background-color: var(--secondary-green);
}

.recipe-detail-action-button.save-button {
    background-color: var(--primary-green);
    color: white;
    border: none;
    order: 2; /* Second item */
}

.recipe-detail-action-button.save-button:hover {
    background-color: var(--secondary-green);
}

/* Instacart Button Styling */
.instacart-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0 16px;
    height: 36px;
    text-decoration: none;
    font-size: 14px;
    font-weight: normal;
    transition: all 0.2s ease;
    margin-left: auto; /* Push to the far right */
    order: 3; /* Higher order to ensure it's the last item */
}

.instacart-button:hover {
    background-color: var(--secondary-green);
}

.instacart-logo {
    height: 20px;
    width: auto;
}

.instacart-unavailable {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    margin-left: auto; /* Push to the far right */
    order: 3; /* Higher order to ensure it's the last item */
}

.recipe-detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.recipe-detail-modal-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 50%;
    position: relative;
    border-radius: 8px;
}

.recipe-detail-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.recipe-detail-modal-close:hover,
.recipe-detail-modal-close:focus {
    color: black;
    text-decoration: none;
}

.recipe-detail-textarea {
    width: 100%;
    height: 100px;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

.recipe-detail-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: recipe-detail-spin 2s linear infinite;
    margin: 10px auto;
    display: none;
}

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

.recipe-detail-icon-button {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.2s ease;
    min-width: unset;
    margin: 0;
}

.recipe-detail-icon-button:hover {
    color: var(--primary-green);
}

.recipe-detail-icon-button i {
    font-size: 20px;
}

.recipe-image-container {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 2rem;
}

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

.ingredients-list {
    list-style-type: none;
    padding: 0;
}

.ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.instructions-list {
    padding-left: 1.5rem;
}

.instructions-list li {
    margin-bottom: 1rem;
}

/* Cookbook Styles */
.cookbook-heading {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.cookbook-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.cookbook-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: normal;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s ease;
    width: 140px;
    margin: 0;
    white-space: nowrap;
}

.cookbook-button.delete {
    background-color: #dc3545;
    color: white;
}

.cookbook-button.delete:hover {
    background-color: #c82333;
}

.cookbook-button.add {
    background-color: #28a745;
    color: white;
}

.cookbook-button.add:hover {
    background-color: #218838;
}

.cookbook-recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 5px 0;
}

.cookbook-recipe-card-wrapper {
    position: relative;
}

.recipe-checkbox-wrapper {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.recipe-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.cookbook-recipe-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    height: 185px;
    display: flex;
    flex-direction: column;
}

.cookbook-recipe-image-container {
    height: 140px;
    overflow: hidden;
}

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

.cookbook-placeholder-image {
    width: 100%;
    height: 100%;
    background-color: #f8f9fa;
}

.cookbook-recipe-info {
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.cookbook-recipe-title {
    padding: 10px 8px;
    margin: 0;
    font-size: 14px;
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 600;
    text-align: center;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Create Recipe Form Specific Styles */
.create-recipe-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.create-recipe-form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-section-title {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.create-recipe-form-subtitle {
    color: var(--color-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.create-recipe-form-instructions {
    background-color: var(--color-gray-50);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 2rem;
}

.create-recipe-instruction-text {
    font-weight: 600;
    margin-bottom: 1rem;
}

.create-recipe-instruction-list {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
    text-align: left;
}

.create-recipe-instruction-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.create-recipe-instruction-note {
    font-style: italic;
    color: #6c757d;
    margin-top: 15px;
    text-align: center;
}

.create-recipe-form-section {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.create-recipe-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.create-recipe-form-label {
    font-weight: 500;
    color: var(--color-gray-700);
}

.create-recipe-form-input,
.create-recipe-form-select,
.create-recipe-form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--color-gray-300);
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
    transition: border-color 0.2s;
}

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

.create-recipe-form-input:focus,
.create-recipe-form-select:focus,
.create-recipe-form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.1);
}

.create-recipe-form-helper-text {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.create-recipe-form-actions {
    display: flex;
    justify-content: center;
}

.create-recipe-form-submit-btn {
    background-color: var(--color-primary);
    color: white;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.create-recipe-form-submit-btn:hover {
    background-color: var(--color-primary-dark);
}

.create-recipe-form-submit-btn:disabled {
    background-color: var(--color-gray-400);
    cursor: not-allowed;
}

.create-recipe-validation-message {
    color: var(--color-error);
    text-align: center;
    margin-top: 1rem;
    font-weight: 500;
}

.create-recipe-spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.create-recipe-spinner-container {
    text-align: center;
}

.create-recipe-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--color-gray-200);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.create-recipe-spinner-text {
    color: var(--color-gray-700);
    font-weight: 500;
}

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

/* Features Page Styles */
.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--accent-green);
}

.features-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.features-hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-hero p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    max-width: 800px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    font-size: 1rem;
    color: var(--color-text-medium);
    line-height: 1.5;
}

.features-cta {
    text-align: center;
    margin-top: 2rem;
}

.features-cta h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.features-cta p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    margin-bottom: 2rem;
}

.features-cta-button {
    display: inline-block;
    background-color: var(--color-primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.features-cta-button:hover {
    background-color: var(--color-primary-dark);
}

@media (max-width: 768px) {
    .features-container {
        padding: 2rem 1rem;
    }
    
    .features-hero h1 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Pricing Page Styles */
.pricing-page-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.pricing-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.pricing-hero {
    text-align: center;
    margin-bottom: 3rem;
    width: 100%;
}

.pricing-hero h1 {
    font-size: 2.5rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.pricing-hero p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
}

.pricing-card {
    background-color: var(--color-white);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.featured-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    background-color: var(--color-primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

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

.pricing-header h3 {
    font-size: 1.75rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.price {
    margin-bottom: 1rem;
}

.amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
}

.period {
    font-size: 1rem;
    color: var(--color-text-medium);
}

.pricing-header p {
    color: var(--color-text-medium);
    font-size: 1rem;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    color: var(--color-text-dark);
}

.pricing-features li.disabled {
    color: var(--color-gray-500);
}

.pricing-features li i {
    margin-right: 0.75rem;
    color: var(--color-primary);
}

.pricing-features li.disabled i {
    color: var(--color-gray-500);
}

.pricing-cta {
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--color-primary-dark);
}

.cta-button.premium {
    background-color: var(--color-primary);
    color: white;
}

.cta-button.premium:hover {
    background-color: var(--color-primary-dark);
}

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

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--color-gray-200);
    color: var(--color-gray-700);
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.current {
    background-color: var(--color-primary-light);
    color: white;
}

.pending-cancel-notice {
    font-size: 0.75rem;
    color: var(--color-error);
    margin-top: 0.25rem;
}

.subscription-notice {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.subscription-notice.warning {
    background-color: var(--color-warning);
    color: var(--color-text-dark);
}

/* Modal styles for upgrade */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
}

.cta-button.secondary {
    background-color: var(--color-gray-300);
    color: var(--color-text-dark);
}

.cta-button.secondary:hover {
    background-color: var(--color-gray-400);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-5px);
    }
}

/* FAQ Page Styles */
.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background-color: var(--accent-green);
}

.faq-hero {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-hero h1 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.faq-hero p {
    font-size: 1.2rem;
    color: var(--color-text-medium);
    max-width: 600px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.faq-section {
    background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.faq-section h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--color-gray-200);
}

.faq-item {
    border-bottom: 1px solid var(--color-gray-200);
    margin-bottom: 1rem;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question h3 {
    color: var(--color-text-dark);
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.faq-question i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    color: var(--color-text-medium);
    line-height: 1.6;
    padding: 0 0 1rem 0;
    margin: 0;
}

.faq-item.active .faq-question {
    color: var(--color-primary);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer a:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .faq-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Featured Recipes Grid */
.featured-recipes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 0;
}

.featured-recipe-card {
    width: 100%;
    height: 220px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px var(--shadow);
    transition: transform 0.3s ease;
}

.featured-recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow);
}

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

.featured-recipes-section {
    background-color: white;
    padding: 1rem 2rem 1rem 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    margin-top: 2rem;
    margin-bottom: 0;
}

.featured-recipes-section h2 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

/* Responsive adjustments for featured recipes grid */
@media (max-width: 768px) {
    .featured-recipes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .featured-recipes-grid {
        grid-template-columns: 1fr;
    }
}

/* Stripe Subscription Page Styles */
.stripe-pricing-table-container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Custom styling for Stripe pricing table */
stripe-pricing-table {
    --stripe-pricing-table-primary-color: var(--color-primary);
    --stripe-pricing-table-primary-text-color: white;
    --stripe-pricing-table-secondary-color: var(--color-secondary);
    --stripe-pricing-table-secondary-text-color: white;
    --stripe-pricing-table-accent-color: var(--color-accent);
    font-family: var(--font-family-base);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pricing-additional-info {
    max-width: 1000px;
    margin: 3rem auto;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

.benefits-list li i {
    color: var(--color-primary);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.subscription-faq {
    margin-top: 3rem;
}

.faq-item {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1.5rem;
}

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

.faq-item h4 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: #555;
    line-height: 1.6;
}

/* Responsive adjustments for Stripe pricing table */
@media (max-width: 768px) {
    .benefits-list {
        grid-template-columns: 1fr;
    }
    
    .stripe-pricing-table-container {
        padding: 0 0.5rem;
    }
    
    .pricing-additional-info {
        padding: 1.5rem;
        margin: 2rem auto;
    }
}

/* Stripe Pricing Banner */
.stripe-pricing-banner {
    background: linear-gradient(135deg, #6772e5, #9b59b6);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stripe-pricing-banner p {
    font-size: 1.1rem;
    margin: 0;
    flex: 1;
}

.stripe-pricing-button {
    background-color: white;
    color: #6772e5;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.stripe-pricing-button:hover {
    background-color: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stripe-pricing-button i {
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .stripe-pricing-banner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    
    .stripe-pricing-banner p {
        margin-bottom: 1rem;
    }
}

/* Policy Pages (Privacy Policy & Terms of Service) */
.policy-container {
    max-width: 900px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.policy-container h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.last-updated {
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.policy-section {
    margin-bottom: 2.5rem;
}

.policy-section h2 {
    color: #2980b9;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.policy-section h3 {
    color: #3498db;
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.policy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #333;
}

.policy-section ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .policy-container {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .policy-container h1 {
        font-size: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.2rem;
    }
}

/* Recipe Scraper Styles */
.scraper-container {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 61, 41, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.scraper-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 61, 41, 0.12);
}

.scraper-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.scraper-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
}

.scraper-icon {
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: transform 0.3s ease;
}

.scraper-icon i {
    font-size: 2.5rem;
    color: white;
}

.scraper-container:hover .scraper-icon {
    transform: rotate(15deg);
}

.scraper-header h2 {
    color: white;
    font-size: 2.2rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
}

.scraper-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin: 0;
}

.scraper-content {
    padding: 2.5rem;
}

.scraper-instructions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.instruction-step {
    flex: 1;
    text-align: center;
    position: relative;
}

.instruction-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2rem;
    right: -1rem;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 2px solid var(--color-primary);
    border-right: 2px solid var(--color-primary);
    transform: rotate(45deg);
}

.step-number {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
    position: relative;
    transition: transform 0.3s ease;
}

.step-number::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    opacity: 0.3;
    z-index: -1;
}

.instruction-step:hover .step-number {
    transform: scale(1.1);
}

.instruction-step p {
    color: var(--color-text-medium);
    font-size: 1rem;
    margin: 0;
    line-height: 1.4;
}

.url-input-container {
    position: relative;
    margin-top: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.2rem;
    opacity: 0.8;
}

.url-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.url-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
    outline: none;
}

.url-input::placeholder {
    color: var(--color-gray-400);
}

.btn-import {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-import:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.btn-import:active {
    transform: translateY(0);
}

.btn-import i {
    transition: transform 0.3s ease;
}

.btn-import:hover i {
    transform: translateX(5px);
}

/* Alert Styling */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.processing-indicator,
.success-content,
.error-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.processing-text,
.success-text,
.error-text {
    flex: 1;
}

.success-icon,
.error-icon {
    font-size: 2rem;
}

.success-icon {
    color: var(--color-success);
}

.error-icon {
    color: var(--color-error);
}

/* Premium Modal Styling */
.recipe-detail-premium-popup {
    backdrop-filter: blur(8px);
}

.recipe-detail-premium-popup-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    position: relative;
}

.premium-modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.premium-modal-icon i {
    font-size: 2.5rem;
    color: white;
}

.recipe-detail-premium-popup-content h3 {
    color: var(--color-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.recipe-detail-premium-list {
    list-style-type: none;
    padding: 0;
}

.recipe-detail-premium-popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.recipe-detail-premium-cta-button,
.recipe-detail-premium-cancel-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.recipe-detail-premium-cta-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
}

.recipe-detail-premium-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(var(--color-primary-rgb), 0.3);
}

.recipe-detail-premium-cancel-button {
    background: var(--color-gray-100);
    color: var(--color-gray-700);
}

.recipe-detail-premium-cancel-button:hover {
    background: var(--color-gray-200);
    transform: translateY(-2px);
}

.recipe-detail-close-popup {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--color-gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.recipe-detail-close-popup:hover {
    background: var(--color-gray-200);
    transform: rotate(90deg);
}

/* Input Tabs */
.input-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.tab-button {
    background: var(--color-gray-100);
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tab-button i {
    font-size: 1.2rem;
}

.tab-button:hover {
    background: var(--color-gray-200);
    transform: translateY(-2px);
}

.tab-button.active {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.tab-button.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.3);
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.tab-pane.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Text Input Styling */
.text-input-container {
    position: relative;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.text-input-container:focus-within {
    box-shadow: 0 6px 16px rgba(var(--color-primary-rgb), 0.1);
}

.text-input {
    width: 100%;
    min-height: 200px;
    padding: 1rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.3s ease;
    resize: vertical;
}

.text-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
    outline: none;
}

.text-input::placeholder {
    color: var(--color-gray-400);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .scraper-instructions {
        flex-direction: column;
        gap: 2rem;
    }

    .instruction-step:not(:last-child)::after {
        display: none;
    }

    .tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .tab-button {
        width: 100%;
        justify-content: center;
    }

    .text-input {
        min-height: 150px;
    }
}

/* Recipe Navigation Styles */
.recipe-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.recipe-detail-nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    background-color: var(--color-primary-dark);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.2s;
    margin-bottom: 15px;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1;
}

.recipe-detail-nav-button:hover {
    background-color: var(--color-primary);
    text-decoration: none;
    color: white;
}

.back-button {
    margin-right: auto;
}

.cookbook-button {
    margin-left: auto;
}

/* Share dropdown styles */
.recipe-detail-share-dropdown {
    position: relative;
    display: inline-block;
}

.recipe-detail-share-dropdown-content {
    display: none;
    position: absolute;
    right: 0px;
    top: 100%;
    background-color: white;
    min-width: 40px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
    padding: 8px 0;
    text-align: center;
}

.recipe-detail-share-dropdown:hover .recipe-detail-share-dropdown-content {
    display: block;
}

.recipe-detail-share-dropdown-content a {
    color: #333;
    padding: 8px 12px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
    text-align: center;
}

.recipe-detail-share-dropdown-content a i {
    display: inline-block;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.recipe-detail-share-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.recipe-detail-icon-button {
    background-color: transparent;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: var(--color-primary);
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.recipe-detail-icon-button:hover {
    background-color: rgba(var(--color-primary-rgb), 0.1);
}

.recipe-detail-pinterest-button {
    margin-right: 8px;
}

/* Pinterest Share Modal Styles */
.pinterest-share-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.pinterest-image-container {
    width: 100%;
    max-width: 300px;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pinterest-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.pinterest-content {
    text-align: center;
    width: 100%;
}

.pinterest-content h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
}

.pinterest-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.pinterest-share-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pinterest-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #e60023;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.pinterest-share-button:hover {
    background-color: #d50c22;
    color: white;
}

.pinterest-share-button i {
    margin-right: 8px;
    font-size: 18px;
}

/* Base Premium Popup */
.base-premium-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.base-premium-popup-content {
    background-color: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
}

.base-premium-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #666;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.base-premium-close:hover {
    color: #003D29;
}

.base-premium-popup-content h3 {
    color: #003D29;
    font-size: 24px;
    margin-bottom: 15px;
}

.base-premium-popup-content p {
    color: #495057;
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.5;
}

.base-premium-popup-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.base-premium-cta-button {
    background-color: #003D29;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.base-premium-cta-button:hover {
    background-color: #002a1d;
}

.base-premium-cancel-button {
    background-color: #f1f3f5;
    color: #495057;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.base-premium-cancel-button:hover {
    background-color: #e9ecef;
}

.base-premium-list {
    list-style-type: none;
    padding: 0;
}

/* Feedback for Copy Link */
.copy-link-feedback {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Debug Info */
.debug-info {
    display: none;
}

/* Create Recipe Page - New Styles */
.create-recipe-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.create-recipe-hero {
    text-align: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 3rem 2rem;
    border-radius: 15px;
    color: white;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.create-recipe-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    transform: rotate(30deg);
}

.create-recipe-hero-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.create-recipe-hero-icon i {
    font-size: 2.5rem;
    color: white;
}

.create-recipe-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.create-recipe-hero-text {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.create-recipe-instructions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.instruction-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.instruction-card-icon {
    width: 50px;
    height: 50px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.instruction-card-icon i {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.instruction-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.instruction-card p {
    color: var(--color-text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.create-recipe-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.create-recipe-form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.create-recipe-form-group label i {
    color: var(--color-primary);
}

.create-recipe-input,
.create-recipe-select,
.create-recipe-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid var(--color-gray-200);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.create-recipe-textarea {
    min-height: 120px;
    resize: vertical;
}

.create-recipe-input:focus,
.create-recipe-select:focus,
.create-recipe-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(var(--color-primary-rgb), 0.1);
    outline: none;
}

.create-recipe-helper {
    display: block;
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 0.25rem;
}

.create-recipe-actions {
    text-align: center;
    margin-top: 2rem;
}

.create-recipe-submit {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.create-recipe-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(var(--color-primary-rgb), 0.2);
}

.create-recipe-submit:disabled {
    background: var(--color-gray-400);
    cursor: not-allowed;
    transform: none;
}

.create-recipe-error {
    background: rgba(211, 47, 47, 0.1);
    color: var(--color-error);
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.create-recipe-error i {
    font-size: 1.2rem;
}

.create-recipe-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.create-recipe-loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.create-recipe-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid var(--color-gray-200);
    border-top: 4px solid var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

.create-recipe-loading-content h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.create-recipe-loading-content p {
    color: var(--color-text-medium);
    margin: 0;
}

.create-recipe-loading-time {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    margin-top: 1rem !important;
}

.create-recipe-validation-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: none;
    align-items: center;
    gap: 0.75rem;
    z-index: 1001;
}

.create-recipe-validation-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.create-recipe-validation-content i {
    color: var(--color-error);
    font-size: 1.2rem;
}

.create-recipe-validation-content p {
    margin: 0;
    color: var(--color-text-dark);
}

@media (max-width: 768px) {
    .create-recipe-container {
        padding: 1rem;
    }

    .create-recipe-hero {
        padding: 2rem 1rem;
    }

    .create-recipe-hero h1 {
        font-size: 2rem;
    }

    .create-recipe-instructions-grid {
        grid-template-columns: 1fr;
    }

    .create-recipe-form {
        padding: 1.5rem;
    }
}

/* Recipe Ideas Link in Hero Section */
.create-recipe-hero .recipe-ideas-link {
    margin-top: 1.5rem;
}

.create-recipe-hero .recipe-ideas-link a {
    color: white;
    font-weight: 700;
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.create-recipe-hero .recipe-ideas-link a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.create-recipe-hero .recipe-ideas-link a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: white;
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.create-recipe-hero .recipe-ideas-link a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}