/*
Theme Name: Global Shops Newspaper
Description: Vintage newspaper theme for e-commerce news with breaking news ticker and timeline archives
Version: 1.0
Author: Global Shops
License: GPL v2 or later
Text Domain: global-shops
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Times New Roman', serif;
    background: #f5f5dc;
    color: #2c2c2c;
    line-height: 1.6;
}

.newspaper-container {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    border: 1px solid #ddd;
}

.header {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px;
    border-bottom: 3px solid #333;
}

.header h1 {
    font-size: 40px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.header h1 a {
    color: #fff;
    text-decoration: none;
}

.tagline {
    font-size: 1.2em;
    font-style: italic;
    color: #ccc;
    margin-bottom: 10px;
}

.date-weather {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9em;
    color: #aaa;
}

.nav-bar {
    background: #333;
    padding: 15px;
    text-align: center;
}

.nav-bar a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-bar a:hover {
    color: #ffd700;
}

.main-content {
    padding: 20px;
    background: #fff;
}

.top-stories {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 3px double #333;
    position: relative;
}

/* Main divider between lead story and sidebar */
.top-stories::after {
    content: '';
    position: absolute;
    left: calc(66.66% - 1px);
    top: 0;
    bottom: 30px;
    width: 2px;
    background: #333;
    z-index: 1;
}

.lead-story {
    padding-right: 25px;
    position: relative;
}

/* Ornamental divider after lead story title */
.lead-story h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: #333;
    margin: 15px 0;
    position: relative;
}

.lead-story h2::before {
    content: '◆ ◆ ◆';
    display: block;
    text-align: center;
    font-size: 0.5em;
    color: #666;
    margin-bottom: 10px;
    letter-spacing: 10px;
}

.lead-story h2 {
    font-size: 2.5em;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #1a1a1a;
    font-weight: bold;
}

.lead-story h2 a {
    color: #1a1a1a;
    text-decoration: none;
}

.lead-story h2 a:hover {
    color: #333;
}

.lead-story .byline {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.lead-story p {
    font-size: 1.1em;
    margin-bottom: 15px;
    text-align: justify;
}

.sidebar {
    padding-left: 25px;
}

.sidebar h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #1a1a1a;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    text-align: center;
    position: relative;
}

/* Decorative elements for sidebar header */
.sidebar h3::before,
.sidebar h3::after {
    content: '◆';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.7em;
    color: #666;
}

.sidebar h3::before {
    left: 0;
}

.sidebar h3::after {
    right: 0;
}

.sidebar-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.sidebar-item h4 {
    font-size: 1.2em;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.sidebar-item h4 a {
    color: #2c2c2c;
    text-decoration: none;
}

.sidebar-item h4 a:hover {
    color: #666;
}

.sidebar-item p {
    font-size: 0.95em;
    color: #555;
}

.categories-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-column {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    position: relative;
}

/* Newspaper-style vertical dividers */
.category-column:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #333;
    z-index: 1;
}

.category-column h3 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #1a1a1a;
    text-align: center;
    background: #333;
    color: #fff;
    padding: 10px;
    margin: -20px -20px 20px -20px;
    border-radius: 5px 5px 0 0;
}

.category-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    position: relative;
}

.category-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Newspaper-style horizontal dividers */
.category-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, #333 0%, #333 30%, transparent 30%, transparent 70%, #333 70%, #333 100%);
}

.category-item h4 {
    font-size: 1.3em;
    margin-bottom: 8px;
    color: #2c2c2c;
}

.category-item h4 a {
    color: #2c2c2c;
    text-decoration: none;
}

.category-item h4 a:hover {
    color: #666;
}

.category-item .meta {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 8px;
    font-style: italic;
}

.category-item p {
    font-size: 0.95em;
    color: #555;
    text-align: justify;
}

.wp-footer {
    background: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.wp-footer p {
    margin-bottom: 10px;
}

.breaking-news {
    background: #ff0000;
    color: #fff;
    text-align: center;
    padding: 10px;
    font-weight: bold;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.price-ticker {
    background: #000;
    color: #00ff41;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    border-top: 1px solid #333;
}

.price-ticker span {
    display: inline-block;
    animation: scroll 45s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* WordPress specifikus stílusok */
.post {
    margin-bottom: 30px;
}

.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.post-content img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.category-badge {
    background: #333;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.8em;
    border-radius: 3px;
    text-transform: uppercase;
    margin-right: 10px;
}

.read-more {
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #666;
}

/* Timeline Archive Stílusok */
.category-timeline-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 30px;
    text-align: center;
    border: 3px double #333;
    margin-bottom: 40px;
    position: relative;
}

.category-timeline-header::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid #333;
    pointer-events: none;
}

.timeline-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #1a1a1a;
    letter-spacing: 2px;
    font-weight: bold;
}

.category-icon {
    font-size: 1.2em;
    margin-right: 15px;
    display: inline-block;
}

.timeline-subtitle {
    font-size: 1.2em;
    color: #666;
    font-style: italic;
    margin-bottom: 20px;
}

.timeline-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 0.9em;
    color: #555;
}

.timeline-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.timeline-day {
    margin-bottom: 50px;
    position: relative;
}

.timeline-date-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    position: relative;
}

.timeline-date-icon {
    font-size: 1.5em;
    margin-right: 15px;
    color: #333;
}

.timeline-date {
    font-size: 1.8em;
    color: #1a1a1a;
    margin: 0;
    margin-right: 20px;
    font-weight: bold;
    white-space: nowrap;
}

.timeline-date-line {
    flex: 1;
    height: 2px;
    background: linear-gradient(to right, #333 0%, #333 50%, transparent 50%);
    background-size: 20px 2px;
}

.timeline-posts {
    border-left: 3px solid #ddd;
    padding-left: 30px;
    position: relative;
}

.timeline-post {
    background: #fff;
    border: 1px solid #ddd;
    border-left: 4px solid #333;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-post:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.timeline-post::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 15px;
    width: 12px;
    height: 12px;
    background: #333;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #333;
}

.timeline-time {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #666;
}

.time-icon {
    margin-right: 8px;
    font-size: 1.1em;
}

.time-text {
    font-size: 1.1em;
}

.timeline-post-title {
    font-size: 1.6em;
    margin-bottom: 12px;
    line-height: 1.3;
}

.timeline-post-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.timeline-post-title a:hover {
    color: #333;
    text-decoration: underline;
}

.timeline-post-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: #666;
}

.timeline-post-excerpt {
    font-size: 1.05em;
    line-height: 1.6;
    color: #444;
    margin-bottom: 20px;
    text-align: justify;
}

.timeline-post-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.read-more-timeline {
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.read-more-timeline:hover {
    color: #666;
}

.post-engagement {
    font-size: 0.9em;
    color: #666;
}

.timeline-empty {
    text-align: center;
    padding: 80px 20px;
    color: #666;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
    opacity: 0.5;
}

.timeline-pagination {
    margin: 60px 0 40px;
    text-align: center;
}

.timeline-pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.timeline-pagination a,
.timeline-pagination .current {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid #333;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    transition: all 0.3s ease;
}

.timeline-pagination a:hover,
.timeline-pagination .current {
    background: #333;
    color: #fff;
}

.category-stats {
    background: #f8f9fa;
    border: 2px solid #333;
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    text-align: center;
}

.category-stats h3 {
    font-size: 1.6em;
    margin-bottom: 25px;
    color: #333;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #333;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .top-stories {
        grid-template-columns: 1fr;
    }
    
    .top-stories::after {
        display: none;
    }
    
    .lead-story {
        padding-right: 0;
        border-bottom: 2px solid #ddd;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .sidebar {
        padding-left: 0;
        padding-top: 0;
    }
    
    .header h1 {
        font-size: 2.5em;
    }
    
    .categories-section {
        grid-template-columns: 1fr;
    }
    
    .category-column:not(:last-child)::after {
        display: none;
    }
    
    .category-timeline-header {
        padding: 25px 20px;
    }
    
    .timeline-title {
        font-size: 2em;
    }
    
    .timeline-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .timeline-date {
        font-size: 1.4em;
    }
    
    .timeline-posts {
        padding-left: 20px;
    }
    
    .timeline-post {
        padding: 20px;
    }
    
    .timeline-post::before {
        left: -28px;
    }
    
    .timeline-post-actions {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.stats-grid {
   grid-template-columns: repeat(2, 1fr);
}


.price-ticker {
    background: #000;
    color: #00ff41;
    padding: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    white-space: nowrap;
    overflow: hidden;
    border-top: 1px solid #333;
}

.price-ticker span {
    display: inline-block;
    animation: scroll 15s linear infinite;
}

@keyframes scroll {
    0% { transform: translateX(5%); }
    100% { transform: translateX(-100%); }
}