/*
Theme Name: Emporika.gr Directory
Description: A custom WordPress theme for Emporika.gr - Greek e-commerce directory website. Clean, modern design optimized for displaying and browsing Greek online shops.
Author: Your Name
Version: 1.0
Text Domain: emporika-gr
Domain Path: /languages
*/

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

/* Header Styles */
.site-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.site-branding {
    margin-bottom: 20px;
}

.site-title {
    font-size: 2rem;
    margin: 0;
}

.site-title a {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: bold;
}

.site-title a:hover {
    color: #1e4082;
}

.site-description {
    color: #666;
    font-size: 1rem;
    margin: 5px 0 0 0;
}

/* Navigation */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 10px 0;
    transition: color 0.3s ease;
    display: block;
}

.main-navigation a:hover {
    color: #2c5aa0;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
}

.menu-toggle:hover {
    background: #1e4082;
}

/* Main Content */
.site-main {
    min-height: 60vh;
    padding: 40px 0;
}

.content-area {
    flex: 1;
    max-width: 800px;
}

/* Layout with sidebar */
.site-main .container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Homepage Styles */
.homepage-content {
    width: 100%;
}

.hero-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4082 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    border-radius: 10px;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search {
    max-width: 500px;
    margin: 0 auto;
}

.featured-section,
.categories-section {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c5aa0;
    text-align: center;
}

/* E-shop Grid */
.eshop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.eshop-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.eshop-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.eshop-content {
    padding: 20px;
}

.eshop-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #2c5aa0;
}

.eshop-title a {
    text-decoration: none;
    color: inherit;
}

.eshop-title a:hover {
    color: #1e4082;
}

.eshop-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.eshop-category {
    background: #e9ecef;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
    color: #495057;
    display: inline-block;
    margin-bottom: 15px;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.category-card {
    background: #fff;
    padding: 30px 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card h3 {
    color: #2c5aa0;
    font-size: 1.2rem;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    justify-content: center;
    align-items: center;
}

.search-field {
    padding: 12px 20px;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 25px;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

.search-field:focus {
    border-color: #2c5aa0;
    outline: none;
}

.search-submit {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.search-submit:hover {
    background: #1e4082;
}

/* Post/Page Content */
.page-header {
    margin-bottom: 40px;
    text-align: center;
}

.page-title {
    font-size: 2.2rem;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.archive-description {
    color: #666;
    font-size: 1.1rem;
}

/* Single Post/Page */
.single-post,
.static-page {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 40px;
}

.entry-header {
    margin-bottom: 30px;
}

.entry-title {
    font-size: 2rem;
    color: #2c5aa0;
    margin-bottom: 15px;
}

.entry-meta {
    color: #666;
    font-size: 0.9rem;
}

.entry-meta span {
    margin-right: 20px;
}

.post-thumbnail,
.page-thumbnail {
    margin: 30px 0;
    text-align: center;
}

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

.entry-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: #2c5aa0;
    margin: 30px 0 15px 0;
}

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

.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 5px;
}

/* Archive and Blog Styles */
.posts-container,
.archive-posts {
    display: grid;
    gap: 30px;
}

.post-card,
.archive-post {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.post-card:hover,
.archive-post:hover {
    transform: translateY(-3px);
}

.archive-post {
    display: flex;
    gap: 20px;
    padding: 20px;
}

.archive-post .post-thumbnail {
    flex-shrink: 0;
    width: 200px;
    margin: 0;
}

.archive-post .post-content {
    flex: 1;
}

.post-card .entry-header,
.post-card .entry-content {
    padding: 20px;
}

.post-card .entry-header {
    padding-bottom: 10px;
}

.post-card .entry-content {
    padding-top: 10px;
}

/* Search Results */
.search-result {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.search-again {
    margin: 30px 0;
    text-align: center;
}

.search-info {
    background: #e9ecef;
    padding: 10px 20px;
    border-radius: 5px;
    margin: 20px 0;
    font-weight: 500;
}

.search-term {
    color: #2c5aa0;
    font-weight: bold;
}

/* 404 Page */
.error-404 {
    text-align: center;
    background: #fff;
    padding: 60px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.error-message h2 {
    color: #2c5aa0;
    margin-bottom: 20px;
}

.search-section,
.recent-posts-section,
.categories-section,
.helpful-links {
    margin: 40px 0;
    text-align: left;
}

.search-section h3,
.recent-posts-section h3,
.categories-section h3,
.helpful-links h3 {
    color: #2c5aa0;
    margin-bottom: 15px;
}

.recent-posts-list,
.categories-list,
.helpful-links ul {
    list-style: none;
    padding: 0;
}

.recent-posts-list li,
.categories-list li,
.helpful-links li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.recent-posts-list li:last-child,
.categories-list li:last-child,
.helpful-links li:last-child {
    border-bottom: none;
}

.post-date {
    color: #666;
    font-size: 0.9rem;
}

/* Sidebar */
.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.widget {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.widget-title {
    color: #2c5aa0;
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

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

.widget a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.widget a:hover {
    color: #2c5aa0;
}

/* Footer */
.site-footer {
    background: #2c5aa0;
    color: white;
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info {
    flex: 1;
}

.site-info a {
    color: white;
    text-decoration: none;
}

.site-info a:hover {
    text-decoration: underline;
}

.footer-navigation ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 20px 0 0 0;
    padding: 0;
    justify-content: center;
}

.footer-navigation a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-navigation a:hover {
    opacity: 0.8;
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn,
.read-more {
    display: inline-block;
    padding: 12px 25px;
    background: #2c5aa0;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover,
.read-more:hover {
    background: #1e4082;
    color: white;
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Pagination */
.pagination {
    text-align: center;
    margin: 40px 0;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    padding: 10px 15px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

.pagination .current {
    background: #2c5aa0;
    color: white;
    border-color: #2c5aa0;
}

/* Post Navigation */
.post-navigation {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 40px 0;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.post-navigation a {
    text-decoration: none;
    color: #2c5aa0;
    font-weight: 500;
    flex: 1;
    padding: 15px;
    background: white;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.post-navigation a:hover {
    background: #e9ecef;
}

.nav-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
}

.nav-next {
    text-align: right;
}

/* Comments */
.comments-area {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 40px;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .site-main .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .archive-post {
        flex-direction: column;
    }
    
    .archive-post .post-thumbnail {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 20px;
    }
    
    .main-navigation.toggled ul {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .eshop-grid,
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .site-title {
        font-size: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-field {
        margin-bottom: 10px;
        max-width: none;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-navigation ul {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .post-navigation .nav-links {
        flex-direction: column;
    }
    
    .nav-next {
        text-align: left;
    }
    
    .single-post,
    .static-page {
        padding: 20px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .widget,
    .search-result {
        padding: 20px;
    }
}

/* Greek Typography Support */
body {
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .eshop-card,
    .widget,
    .single-post,
    .static-page {
        border: 2px solid #333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}