/* My Recipe Box Page Styles - Billy Parisi Style */

/* Recipe Box Message */
.recipe-box-message {
    text-align: center;
    padding: 80px 40px;
    max-width: 600px;
    margin: 0 auto;
}

.message-icon {
    margin-bottom: 30px;
}

.message-icon i {
    font-size: 4em;
    color: #007cba;
    opacity: 0.8;
}

.recipe-box-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 20px;
    font-weight: 600;
}

.recipe-box-message p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2em;
    color: #666;
    line-height: 1.6;
    margin-bottom: 40px;
}

.recipe-box-message .sign-in-btn {
    background: #007cba;
    color: #fff;
    padding: 15px 40px;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.recipe-box-message .sign-in-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

/* Main Content Area */
.recipe-box-main {
    background: #fff;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-btn {
    background: #007cba;
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
}

.page-title {
    color: #333;
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    font-weight: 600;
    margin: 0;
}

.main-content-box {
    background: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
}

/* SlickStream Message */
.slickstream-message {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.slickstream-message p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.3em;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.sign-in-link {
    color: #007cba;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s ease;
}

.sign-in-link:hover {
    color: #005a8b;
    text-decoration: none;
}

/* Authentication Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.auth-overlay.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

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

.auth-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

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

/* Authentication Section */
.auth-section {
    max-width: 500px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.auth-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #999;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-close:hover {
    background: #f0f0f0;
    color: #333;
}

.auth-tab {
    flex: 1;
    padding: 20px 25px;
    background: none;
    border: none;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
}

.auth-tab.active {
    color: #007cba;
    background: #fff;
    border-bottom-color: #007cba;
}

.auth-tab:hover {
    color: #007cba;
    background: #fff;
}

.auth-content {
    padding: 40px 35px;
}

.auth-form {
    display: none;
}

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

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    transform: translateY(-1px);
}

.checkbox-label {
    display: flex !important;
    align-items: center;
    font-weight: 400 !important;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.auth-submit-btn {
    width: 100%;
    padding: 16px;
    background: #007cba;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-submit-btn:hover {
    background: #005a8b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 124, 186, 0.3);
}

.auth-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    text-align: center;
    display: none;
}

.auth-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.auth-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* Saved Recipes Section */
.recipe-box-content {
    max-width: 1200px;
    margin: 0 auto;
}

.saved-recipes-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5em;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.saved-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
}

.loading-message i {
    font-size: 2em;
    margin-bottom: 15px;
    display: block;
    color: #007cba;
}

.saved-recipe-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

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

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

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

.saved-recipe-content {
    padding: 20px;
}

.saved-recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.4em;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.saved-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.9em;
    color: #666;
}

.saved-recipe-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.view-recipe-btn {
    background: #007cba;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.view-recipe-btn:hover {
    background: #005a8b;
    color: #fff;
    text-decoration: none;
}

.remove-recipe-btn {
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.remove-recipe-btn:hover {
    background: #f8d7da;
}

.no-saved-recipes {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-saved-recipes i {
    font-size: 4em;
    color: #ddd;
    margin-bottom: 20px;
    display: block;
}

.no-saved-recipes h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 15px;
}

.no-saved-recipes p {
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.browse-recipes-btn {
    display: inline-block;
    background: #007cba;
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.browse-recipes-btn:hover {
    background: #005a8b;
    color: #fff;
    text-decoration: none;
}

/* Saved Recipes Modal Styles */
.saved-recipes-modal {
    max-width: 800px;
    width: 95%;
}

.saved-recipes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 35px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.saved-recipes-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8em;
    color: #333;
    margin: 0;
    font-weight: 600;
}

.saved-recipes-content {
    padding: 30px 35px;
    max-height: 70vh;
    overflow-y: auto;
}

.saved-recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.saved-recipe-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.saved-recipe-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.saved-recipe-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.saved-recipe-image {
    width: 100%;
    height: 150px;
    overflow: hidden;
}

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

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

.saved-recipe-content {
    padding: 15px;
}

.saved-recipe-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2em;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
}

.saved-recipe-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-family: 'Roboto', sans-serif;
    font-size: 0.8em;
    color: #666;
}

.saved-recipe-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.saved-recipe-meta .meta-item i {
    color: #007cba;
    font-size: 0.9em;
}

.remove-recipe-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
    color: #dc3545;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    z-index: 5;
}

.remove-recipe-btn:hover {
    background: #dc3545;
    color: #fff;
    transform: scale(1.1);
}

.no-recipes-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-recipes-message i {
    font-size: 3em;
    color: #007cba;
    margin-bottom: 20px;
    opacity: 0.7;
}

.no-recipes-message h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5em;
    color: #333;
    margin-bottom: 10px;
}

.no-recipes-message p {
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
    line-height: 1.5;
}

.error-message {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.error-message i {
    font-size: 2em;
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .recipe-box-header {
        padding: 40px 15px 30px;
        margin: 0 -15px 30px -15px;
    }
    
    .recipe-box-title {
        font-size: 2.2em;
    }
    
    .recipe-box-subtitle {
        font-size: 1em;
    }
    
    .auth-content {
        padding: 30px 20px;
    }
    
    .auth-form h2 {
        font-size: 1.6em;
    }
    
    .saved-recipes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .saved-recipes-section h2 {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .recipe-box-title {
        font-size: 1.8em;
    }
    
    .auth-tabs {
        flex-direction: column;
    }
    
    .auth-tab {
        padding: 15px;
    }
    
    .auth-content {
        padding: 20px 15px;
    }
}