/* --- Γενικά Στυλ --- */
body {
    font-family: 'Segoe UI', Roboto, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    color: #333;
}
.update-recipe-btn { 
    display: block;
    width: 100%; 
    background: #e67e22; 
    color: #fff; 
    border: none; 
    padding: 18px; 
    border-radius: 15px; 
    font-weight: bold; 
    font-size: 1.1rem; 
    cursor: pointer; 
    margin-top: 30px; 
    opacity: 1 !important; /* This forces it to be visible */
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.2); 
}

/* --- Header & Navigation --- */
header {
    background: #fff;
    padding: 15px 5%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

h1 { color: #e67e22; margin: 0; font-size: 28px; }
h1 span { color: #333; font-weight: 300; }

.search-form {
    flex-grow: 1;
    max-width: 500px;
    margin: 0 20px;
    display: flex;
}

.search-form input {
    width: 100%;
    padding: 10px 20px;
    border: 1px solid #ddd;
    border-radius: 25px 0 0 25px;
    outline: none;
}

.search-form button {
    padding: 10px 20px;
    border: none;
    background: #e67e22;
    color: #fff;
    border-radius: 0 25px 25px 0;
    cursor: pointer;
}

nav a {
    color: #555;
    font-size: 22px;
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

nav a:hover { color: #e67e22; }

/* --- Μπάρα Κατηγοριών --- */
.category-bar {
    background: #fff;
    padding: 15px 5%;
    display: flex;
    justify-content: center;
    gap: 15px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
}

.category-bar a {
    text-decoration: none;
    color: #666;
    padding: 8px 18px;
    border-radius: 20px;
    background: #f0f0f0;
    white-space: nowrap;
    transition: 0.3s;
}

.category-bar a.active, .category-bar a:hover {
    background: #e67e22;
    color: #fff;
}

/* --- Pinterest Masonry Grid --- */
.recipe-grid {
    column-count: 4;
    column-gap: 20px;
    padding: 30px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

@media (max-width: 1200px) { .recipe-grid { column-count: 3; } }
@media (max-width: 800px) { .recipe-grid { column-count: 2; } }
@media (max-width: 500px) { .recipe-grid { column-count: 1; } }

.recipe-card {
    display: inline-block; /* Masonry fix */
    width: 100%;
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    position: relative;
}

.card-image img {
    width: 100%;
    display: block;
}

.admin-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(230, 126, 34, 0.9);
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 12px;
}

.save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    opacity: 0;
    transition: 0.3s;
}

.recipe-card:hover .save-btn { opacity: 1; }

.card-content { padding: 15px; }

.card-content h3 { margin: 0 0 10px 0; font-size: 18px; }

.card-meta { font-size: 13px; color: #888; margin-bottom: 15px; }

.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.like-btn {
    background: none;
    border: none;
    color: #e74c3c;
    cursor: pointer;
    font-size: 16px;
}

.view-btn {
    text-decoration: none;
    color: #e67e22;
    font-weight: bold;
    font-size: 14px;
}