/*
Theme Name: SuperŠablona
Theme URI: https://superweby.cz
Author: SuperWeby.cz
Author URI: https://superweby.cz
Description: Profesionální WordPress theme s pokročilou administrací
Version: 1.0.2
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: superweby
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout
*/

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

:root {
    --primary-color: #2563eb;
    --secondary-color: #1e40af;
    --text-color: #333333;
    --bg-color: #ffffff;
    --gray-light: #f3f4f6;
    --gray-dark: #4b5563;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background: var(--bg-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* Header Top Stories */
.header-top-stories {
    background: #f8f9fa;
    padding: 2rem 0;
    border-top: 2px solid var(--primary-color);
    overflow: hidden;
    margin-top: 1rem;
}

.header-top-stories .widget-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: white;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    animation: pulse 2s infinite;
    white-space: nowrap;
    width: 100%;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        transform: scale(1);
    }
}

.header-top-stories .top-stories-widget {
    background: transparent;
    border-radius: 0;
}

/* Top Stories Container */
.header-top-stories .top-stories-container {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    gap: 1rem;
}

.header-top-stories .title-column {
    flex-shrink: 0;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-top-stories .ticker-column {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.header-top-stories .ticker-content {
    display: flex;
    gap: 0.5rem;
    animation: ticker-scroll 35s linear infinite;
    white-space: nowrap;
    width: max-content;
    pointer-events: auto;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-20%);
    }
}


.header-top-stories .ticker-content:hover {
    animation-play-state: paused;
}

.header-top-stories .top-story-item {
    display: flex;
    align-items: flex-start;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0.5rem 1rem;
    min-width: 200px;
    max-width: none;
    flex-shrink: 0;
    box-shadow: none;
    transition: all 0.3s ease;
    margin-bottom: 0;
    position: relative;
    pointer-events: auto;
    z-index: 10;
}

.header-top-stories .top-story-item:hover {
    background: #f8f9fa;
    border-radius: 6px;
}

.header-top-stories .story-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.header-top-stories .story-thumbnail {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0.25rem;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.header-top-stories .story-thumbnail img {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
}

.header-top-stories .story-thumbnail img:hover {
    transform: scale(1.05);
}

.header-top-stories .story-content {
    flex: 1;
    min-width: 0;
}

.header-top-stories .story-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.3;
    font-weight: 600;
    white-space: nowrap;
}

.header-top-stories .story-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s ease;
    pointer-events: auto;
    position: relative;
    z-index: 20;
    display: block;
}

.header-top-stories .story-title a:hover {
    color: #3498db;
}

.header-top-stories .story-meta {
    font-size: 0.8rem;
    color: #7f8c8d;
}

.header-top-stories .story-date {
    color: #7f8c8d;
    font-weight: 500;
}

.site-logo img {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--primary-color);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 5px 0;
    transition: 0.3s;
}

/* Main Content */
.site-content {
    padding: 3rem 0;
    min-height: 60vh;
}

.content-area {
    width: 100%;
}

.with-sidebar .content-area {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

/* Posts */
.post {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--gray-light);
}

.post:last-child {
    border-bottom: none;
}

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    color: var(--text-color);
    text-decoration: none;
}

.entry-title a:hover {
    color: var(--primary-color);
}

.entry-meta {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.entry-meta span {
    margin-right: 1rem;
}

.post-thumbnail {
    margin-bottom: 1.5rem;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 2rem 0 1rem;
}

.entry-content p {
    margin-bottom: 1rem;
}

.entry-content ul,
.entry-content ol {
    margin: 1rem 0 1rem 2rem;
}

.entry-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background: var(--gray-light);
}

/* Sidebar */
.widget-area {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
}

.widget {
    margin-bottom: 2rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.widget ul {
    list-style: none;
}

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.widget li:last-child {
    border-bottom: none;
}

.widget a {
    color: var(--text-color);
    text-decoration: none;
}

.widget a:hover {
    color: var(--primary-color);
}

/* Footer */
.site-footer {
    background: var(--text-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-widget .widget-title {
    color: white;
}

.footer-widget a {
    color: rgba(255,255,255,0.8);
}

.footer-widget a:hover {
    color: white;
}

.site-info {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
    font-size: 0.875rem;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-light);
    border-radius: 4px;
    font-family: inherit;
    font-size: inherit;
}

button,
input[type="submit"] {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

button:hover,
input[type="submit"]:hover {
    background: var(--secondary-color);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.page-numbers {
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.page-numbers:hover,
.page-numbers.current {
    background: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 1024px) {
    
    
    
    
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .main-navigation {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-navigation.toggled {
        max-height: 500px;
    }
    
    .main-navigation ul {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .with-sidebar .content-area {
        grid-template-columns: 1fr;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    /* Header Top Stories Mobile */
    .header-top-stories {
        padding: 1rem 0;
    }
    
    .header-top-stories .top-stories-list {
        gap: 0;
        flex-direction: column;
        align-items: stretch;
        padding: 0.75rem;
    }
    
    .header-top-stories .widget-title {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
        border-right: none;
        border-bottom: 2px solid #e9ecef;
    }
    
    
    .header-top-stories .widget-title {
        font-size: 1rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
    }
    
    .header-top-stories .top-story-item {
        min-width: auto;
        max-width: none;
        padding: 0.5rem 0.75rem;
        margin-bottom: 0;
    }
    
    .header-top-stories .story-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        margin-right: 0.75rem;
    }
    
    .header-top-stories .story-thumbnail {
        margin-right: 0.75rem;
    }
    
    .header-top-stories .story-thumbnail img {
        width: 60px;
        height: 45px;
    }
    
    .header-top-stories .story-title {
        font-size: 0.9rem;
        margin-bottom: 0.15rem;
        white-space: nowrap;
    }
    
    .header-top-stories .story-meta {
        font-size: 0.75rem;
    }
}

/* Accessibility */
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    left: 0;
}

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1rem;
}

.alignright {
    float: right;
    margin-left: 1rem;
}

.aligncenter {
    display: block;
    margin: 0 auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}

.sticky {
    background: var(--gray-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 3rem;
}

.bypostauthor {
    font-weight: bold;
}

/* Top Stories Widget */
.top-stories-widget {
    background: var(--bg-color);
    border-radius: 8px;
    overflow: hidden;
}

.top-stories-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.top-story-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem;
    border-bottom: 1px solid var(--gray-light);
    transition: background-color 0.3s ease;
}

.top-story-item:last-child {
    border-bottom: none;
}

.top-story-item:hover {
    background-color: var(--gray-light);
}

.story-number {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.875rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.story-thumbnail {
    flex-shrink: 0;
    margin-right: 1rem;
    margin-top: 0.25rem;
}

.story-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.story-content {
    flex: 1;
    min-width: 0;
}

.story-title {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.story-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: var(--primary-color);
}

.story-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--gray-dark);
    margin-bottom: 0.5rem;
}

.story-date {
    white-space: nowrap;
}

.story-comments {
    white-space: nowrap;
}

.story-excerpt {
    font-size: 0.85rem;
    color: var(--gray-dark);
    line-height: 1.4;
}

/* Top Stories Widget - Horizontal Layout */
.top-stories-widget.horizontal .top-stories-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.top-stories-widget.horizontal .top-story-item {
    flex: 1;
    min-width: 200px;
    flex-direction: column;
    text-align: center;
    border-bottom: none;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    padding: 1.5rem 1rem;
}

.top-stories-widget.horizontal .story-number {
    margin: 0 0 1rem 0;
    align-self: center;
}

.top-stories-widget.horizontal .story-thumbnail {
    margin: 0 0 1rem 0;
    align-self: center;
}

.top-stories-widget.horizontal .story-thumbnail img {
    width: 80px;
    height: 80px;
}

.top-stories-widget.horizontal .story-content {
    text-align: center;
}

.top-stories-widget.horizontal .story-meta {
    justify-content: center;
}

/* Top Stories Widget - Compact Layout */
.top-stories-widget.compact .top-story-item {
    padding: 0.75rem 1rem;
}

.top-stories-widget.compact .story-number {
    width: 25px;
    height: 25px;
    font-size: 0.75rem;
    margin-right: 0.75rem;
}

.top-stories-widget.compact .story-thumbnail img {
    width: 50px;
    height: 50px;
}

.top-stories-widget.compact .story-title {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.top-stories-widget.compact .story-meta {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

/* Responsive Top Stories */
@media (max-width: 768px) {
    .top-stories-widget.horizontal .top-stories-list {
        flex-direction: column;
    }
    
    .top-stories-widget.horizontal .top-story-item {
        min-width: auto;
    }
    
    .top-story-item {
        padding: 0.75rem;
    }
    
    .story-number {
        width: 25px;
        height: 25px;
        font-size: 0.75rem;
        margin-right: 0.75rem;
    }
    
    .story-thumbnail img {
        width: 50px;
        height: 50px;
    }
    
    .story-title {
        font-size: 0.9rem;
    }
    
    .story-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}