
/* YearAway Legacy Site Styles - Responsive Design */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #CD853F;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #444;
    --white: #ffffff;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    --border-radius: 20px;
    --border-radius-small: 10px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Container and Layout */
.container {
    max-width: 1400px;
    margin: 20px auto;
    background: rgba(255, 255, 255, 0.98);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: 0 20px 40px var(--shadow-heavy);
}

/* Header Styles */
.header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--secondary-color);
}

.header h1 {
    color: var(--primary-color);
    font-size: 3rem;
    margin: 0;
    text-shadow: 2px 2px 4px var(--shadow-light);
    font-weight: 700;
    line-height: 1.2;
}

.header p {
    color: var(--text-medium);
    font-size: 1.2rem;
    margin: 15px 0 0 0;
    font-weight: 400;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    background: rgba(210, 105, 30, 0.1);
    transition: var(--transition);
    font-weight: 500;
    white-space: nowrap;
    border: 2px solid transparent;
}

.nav a:hover,
.nav a:focus {
    background: rgba(210, 105, 30, 0.2);
    transform: translateY(-2px);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Entries List */
.entries-list {
    display: grid;
    gap: 25px;
    grid-template-columns: 1fr;
}

.entry-summary {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
    cursor: pointer;
}

.entry-summary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.entry-summary h3 {
    margin: 0 0 12px 0;
    color: var(--primary-color);
    font-size: 1.3rem;
    line-height: 1.3;
}

.entry-summary h3 a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.entry-summary h3 a:hover {
    color: var(--secondary-color);
}

.entry-summary .meta {
    color: var(--text-medium);
    font-size: 0.95rem;
    margin-bottom: 12px;
    font-weight: 500;
}

.entry-summary .excerpt {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1rem;
}

/* Diary Entry Styles */
.diary-entry {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px var(--shadow-light);
    border-left: 5px solid var(--secondary-color);
}

.diary-meta {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.2rem;
    padding: 15px;
    background: rgba(210, 105, 30, 0.05);
    border-radius: var(--border-radius-small);
}

.diary-title {
    color: var(--text-dark);
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.diary-location {
    color: var(--text-medium);
    font-style: italic;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.diary-content {
    line-height: 1.7;
    color: var(--text-light);
    font-size: 1.1rem;
}

.diary-content p {
    margin-bottom: 20px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 35px;
}

.photo-item {
    text-align: center;
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 20px;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
}

.photo-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.photo-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.02);
}

.photo-caption {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.4;
}

/* Back Link */
.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 25px;
    color: var(--primary-color);
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 50px;
    background: rgba(210, 105, 30, 0.1);
    transition: var(--transition);
    font-weight: 500;
    border: 2px solid transparent;
}

.back-link:hover,
.back-link:focus {
    background: rgba(210, 105, 30, 0.2);
    transform: translateX(-3px);
    border-color: var(--secondary-color);
    box-shadow: 0 5px 15px var(--shadow-medium);
}

/* Mobile Navigation Styles */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1000;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Responsive Design - Mobile */
@media (max-width: 767px) {
    .container {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav a {
        width: 100%;
        text-align: center;
        padding: 15px 20px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .photo-gallery {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .entry-summary {
        padding: 20px;
    }
    
    .diary-entry {
        padding: 25px;
    }
    
    .diary-title {
        font-size: 1.6rem;
    }
    
    .diary-content {
        font-size: 1rem;
    }
    
    /* Mobile navigation toggle */
    .nav-toggle {
        display: block;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    
    /* Mobile navigation menu */
    .mobile-nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.98);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
    }
    
    .mobile-nav.nav-open {
        transform: translateX(0);
    }
    
    .mobile-nav a {
        font-size: 1.2rem;
        padding: 20px 30px;
        border-radius: 25px;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        transition: var(--transition);
        min-width: 200px;
        text-align: center;
    }
    
    .mobile-nav a:hover,
    .mobile-nav a:focus {
        background: var(--secondary-color);
        transform: scale(1.05);
    }
}

/* Responsive Design - Small Mobile */
@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 15px;
        border-radius: 10px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .header p {
        font-size: 1rem;
    }
    
    .diary-title {
        font-size: 1.4rem;
    }
    
    .photo-gallery {
        gap: 15px;
    }
    
    .photo-item {
        padding: 15px;
    }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
        padding: 60px;
    }
    
    .entries-list {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 30px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 30px;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .entry-summary:hover,
    .photo-item:hover,
    .nav a:hover,
    .back-link:hover {
        transform: none;
        box-shadow: 0 5px 20px var(--shadow-light);
    }
    
    .entry-summary:active,
    .photo-item:active,
    .nav a:active,
    .back-link:active {
        transform: scale(0.98);
        transition: transform 0.1s ease;
    }
}

/* Build info footer */
.build-info {
    text-align: center;
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #ddd;
    font-size: 0.8rem;
    font-style: italic;
    color: #888;
}

/* Countries page styles */
.countries-summary {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
}

.countries-summary p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin: 0;
}

.countries-grid {
    display: grid;
    gap: 25px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.country-card {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 25px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    transition: var(--transition);
}

.country-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-medium);
}

.country-name {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.entry-count {
    background: var(--secondary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.country-entries h4 {
    color: var(--text-dark);
    font-size: 1rem;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.country-entries ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.country-entries li {
    margin-bottom: 8px;
}

.country-entries a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.country-entries a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.country-entries em {
    color: var(--text-medium);
    font-size: 0.85rem;
}

/* Country filter header */
.country-filter-header {
    background: var(--white);
    border-radius: var(--border-radius-small);
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px var(--shadow-light);
    border-left: 4px solid var(--secondary-color);
    text-align: center;
}

.filter-info h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    font-weight: 700;
}

.clear-filter {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 25px;
    transition: var(--transition);
    display: inline-block;
}

.clear-filter:hover {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
}

/* More link styling */
.more-link {
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    font-style: italic;
}

.more-link:hover {
    color: var(--primary-color) !important;
    text-decoration: underline !important;
}
