/*
 Theme Name:   Twenty Fourteen Child
 Template:     twentyfourteen
 Version:      1.0
 Description:  Child theme for fromnorthcapetoathens.com with timeline support
*/

/* Hide top primary nav on desktop — sidebar already shows it */
@media screen and (min-width: 783px) {
    .primary-navigation {
        display: none !important;
    }
}

/* Sort toggle on reiseupdates archive */
.sort-toggle {
    margin-bottom: 25px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-left: 4px solid #2b2b2b;
    font-size: 14px;
}

.sort-label {
    font-weight: 700;
    color: #2b2b2b;
}

.sort-btn {
    text-decoration: none;
    color: #767676;
    font-weight: 400;
}

.sort-btn.active {
    color: #24890d;
    font-weight: 700;
}

.sort-btn:hover {
    color: #24890d;
}

/* Wider content for all pages — sidebar stays */
.hentry {
    max-width: 100% !important;
}

.site-content .entry-header,
.site-content .entry-content,
.site-content .entry-summary,
.site-content .entry-meta,
.page-content {
    max-width: 100% !important;
    padding: 0 30px;
}

/* Timeline styles — shared by country pages and chronologie */
.reiseupdates-timeline {
    margin-top: 30px;
    border-top: 2px solid #2b2b2b;
    padding-top: 20px;
}

.reiseupdates-timeline h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.timeline-entry {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e1e1e1;
}

.timeline-entry:last-child {
    border-bottom: none;
}

.timeline-date-header {
    font-size: 15px;
    font-weight: 700;
    color: #2b2b2b;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #2b2b2b;
}

.timeline-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.timeline-title a {
    color: #2b2b2b;
    text-decoration: none;
}

.timeline-title a:hover {
    color: #24890d;
}

.timeline-excerpt {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.timeline-excerpt p {
    margin-bottom: 1em;
}

.timeline-excerpt img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 4px;
}

.timeline-count {
    font-size: 13px;
    color: #767676;
    margin-bottom: 15px;
}

/* Chronologie page — TOC + country sections */
.chronologie-toc {
    background: #f5f5f5;
    padding: 20px 25px;
    margin-bottom: 30px;
    border-left: 4px solid #2b2b2b;
}

.chronologie-toc h2 {
    font-size: 18px;
    margin: 0 0 12px 0;
}

.toc-country {
    margin-bottom: 2px;
}

.toc-country summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #2b2b2b;
    padding: 8px 0;
    border-bottom: 1px solid #e1e1e1;
    list-style: none;
}

.toc-country summary::-webkit-details-marker {
    display: none;
}

.toc-country summary::before {
    content: '\25B6';
    display: inline-block;
    margin-right: 8px;
    font-size: 11px;
    transition: transform 0.2s;
}

.toc-country[open] summary::before {
    transform: rotate(90deg);
}

.toc-country summary:hover {
    color: #24890d;
}

.toc-count {
    color: #767676;
    font-weight: 400;
    font-size: 13px;
}

.toc-posts {
    list-style: none;
    margin: 0;
    padding: 5px 0 10px 24px;
}

.toc-posts li {
    margin-bottom: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.toc-posts a {
    color: #4d4d4d;
    text-decoration: none;
}

.toc-posts a:hover {
    color: #24890d;
}

.chronologie-land {
    margin-bottom: 40px;
    padding-top: 15px;
}

.land-header {
    font-size: 26px;
    border-bottom: 3px solid #2b2b2b;
    padding-bottom: 10px;
    margin-bottom: 5px;
}

.land-count {
    font-size: 14px;
    font-weight: 400;
    color: #767676;
}

.back-to-top {
    display: inline-block;
    font-size: 12px;
    color: #767676;
    text-decoration: none;
    margin-bottom: 20px;
}

.back-to-top:hover {
    color: #24890d;
}

/* Back to timeline link on single posts */
.timeline-back-link {
    margin: 15px 0;
    padding: 10px 0;
    border-top: 1px solid #e1e1e1;
}

.timeline-back-link a {
    color: #24890d;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
}

.timeline-back-link a:hover {
    text-decoration: underline;
}

.timeline-back-link:first-child {
    border-top: none;
    border-bottom: 1px solid #e1e1e1;
}
