/*
 Theme Name:   Lunch with Joel
 Theme URI:    https://example.com/lunch-with-joel
 Description:  A photo diary child theme based on Twenty Twenty-Five for documenting lunch meetings with friends.
 Author:       Joel
 Author URI:   https://example.com
 Template:     twentytwentyfive
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  lunch-with-joel
*/

/* ==========================================================================
   Lunch Diary Custom Styles
   ========================================================================== */

/* Diary Entry Card */
.lunch-diary-entry {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lunch-diary-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Diary Photo */
.lunch-diary-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.lunch-diary-photo-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

/* Diary Entry Details */
.lunch-diary-details {
    padding: 1.5rem;
    text-align: center;
}

.lunch-diary-caption {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.lunch-diary-caption a {
    color: inherit;
    text-decoration: none;
}

.lunch-diary-caption a:hover {
    color: #666;
}

.lunch-diary-restaurant {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.25rem 0;
}

.lunch-diary-city {
    font-size: 0.95rem;
    color: #555;
    margin: 0 0 0.25rem 0;
}

.lunch-diary-date {
    font-size: 0.9rem;
    color: #888;
    margin: 0.5rem 0 0 0;
}

/* Archive Grid Layout */
.lunch-diary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Single Entry Layout */
.single-lunch-diary-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.single-lunch-diary-figure {
    margin: 0 0 1.5rem 0;
    text-align: center;
}

.single-lunch-diary-photo {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.single-lunch-diary-caption {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 1rem;
    padding: 0;
    text-align: center;
}

.single-lunch-diary-info {
    text-align: center;
    margin-bottom: 2rem;
}

.single-lunch-diary-restaurant {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 0.25rem 0;
}

.single-lunch-diary-city {
    font-size: 1.1rem;
    color: #555;
    margin: 0 0 0.25rem 0;
}

.single-lunch-diary-date {
    font-size: 1rem;
    color: #888;
    margin: 0.75rem 0 0 0;
}

/* Page Header */
.lunch-diary-page-header {
    text-align: center;
    padding: 3rem 1rem;
    background: linear-gradient(135deg, #fef9f3 0%, #fff5eb 100%);
    margin-bottom: 2rem;
}

.lunch-diary-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
}

.lunch-diary-page-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Featured Entries Layout (Homepage) */
.lunch-diary-featured {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.lunch-diary-featured-entry {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lunch-diary-featured-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.lunch-diary-featured-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.lunch-diary-featured-figure {
    margin: 0;
    position: relative;
}

.lunch-diary-featured-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.lunch-diary-featured-caption {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    text-align: center;
}

.caption-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

.caption-restaurant {
    font-size: 0.95rem;
    color: #555;
}

.caption-city {
    font-size: 0.95rem;
    color: #555;
}

.caption-date {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.25rem;
}

.lunch-diary-featured-placeholder {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #999;
}

/* View All Link */
.lunch-diary-view-all {
    text-align: center;
    padding: 2rem 1rem 3rem;
}

.view-all-link {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #1a1a1a;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s ease;
}

.view-all-link:hover {
    background: #333;
    color: #fff;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .lunch-diary-featured {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem 1rem;
    }
    
    .caption-names {
        font-size: 1.2rem;
    }
}

@media (max-width: 600px) {
    .lunch-diary-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .lunch-diary-page-title {
        font-size: 1.75rem;
    }
    
    .single-lunch-diary-title {
        font-size: 1.5rem;
    }
    
    .single-lunch-diary-info {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Navigation between entries */
.lunch-diary-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.lunch-diary-navigation a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.lunch-diary-navigation a:hover {
    color: #666;
}

/* Admin Meta Box Styling */
.lunch-diary-meta-field {
    margin-bottom: 1rem;
}

.lunch-diary-meta-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.lunch-diary-meta-field input {
    width: 100%;
    padding: 0.5rem;
}
