/*
Theme Name: Kauppakatalogi
Description: Finnish online store catalog theme with Bootstrap 5.3
Version: 1.0
Author: Kauppakatalogi Team
*/

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    line-height: 1.7;
}

a {
	text-decoration: none;
} 

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #005AA0, #003366);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: 700;
    color: white !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #0066CC, #003366);
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

/* Common Elements */
.breadcrumb {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1rem;
    margin-bottom: 2rem;
}

.back-btn {
    color: #0066CC;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-btn:hover {
    color: #004499;
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Store Cards */
.store-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    overflow: hidden;
}

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

.store-card img {
    height: 160px;
    object-fit: cover;
}

.store-card .badge {
    font-size: 0.7rem;
    padding: 0.4rem 0.6rem;
}

/* Filter Section */
.filter-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.btn-filter {
    background-color: #f1f1f1;
    color: #333;
    border: none;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border-radius: 25px;
    padding: 0.5rem 1rem;
}

.btn-filter:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

.btn-filter.active {
    background-color: #0066CC;
    color: white;
}

/* Store Page Specific */
.store-header {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.store-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background-color: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
}

.store-info {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-stars {
    color: #ffc107;
}

.contact-card {
    background: linear-gradient(135deg, #0066CC, #004499);
    color: white;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.review-card {
    background-color: white;
    border-radius: 10px;
    border-left: 4px solid #0066CC;
    padding: 1.5rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.description-section {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.highlight-section {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e0e0e0;
}

.store-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0066CC;
}

.stat-label {
    font-size: 0.9rem;
    color: #6c757d;
}

.badge-special {
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
}

.review-summary {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-progress {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.rating-fill {
    height: 100%;
    background-color: #ffc107;
    transition: width 0.3s ease;
}

/* Article Page Specific */
.article-header {
    background: linear-gradient(135deg, #fff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 2rem;
}

.article-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-bottom: 2rem;
}

.article-meta {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.article-content h2 {
    color: #0066CC;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.article-content h3 {
    color: #004499;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1.2rem;
    text-align: justify;
}

.tip-box {
    background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
    border-left: 4px solid #0066CC;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box {
    background: linear-gradient(135deg, #fff3e0, #fce4ec);
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
}

.checklist {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-icon {
    color: #28a745;
    margin-right: 0.8rem;
    margin-top: 0.2rem;
    font-size: 1.1rem;
}

.sidebar {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
    position: sticky;
    top: 2rem;
}

.toc-item {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
    transition: color 0.2s ease;
}

.toc-item:hover {
    color: #0066CC;
}

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

.related-articles {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.related-article {
    display: block;
    color: #495057;
    text-decoration: none;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.related-article:hover {
    color: #0066CC;
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.article-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1.5rem 0;
}

.highlight-text {
    background: linear-gradient(120deg, #ffd54f 0%, #ffd54f 100%);
    background-repeat: no-repeat;
    background-size: 100% 0.3em;
    background-position: 0 88%;
    padding: 0.1em 0.2em;
}

.author-info {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.author-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.social-share {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 25px;
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.share-btn:hover {
    transform: translateY(-2px);
    color: white;
}

.share-facebook { background-color: #3b5998; }
.share-twitter { background-color: #1da1f2; }
.share-linkedin { background-color: #0077b5; }
.share-whatsapp { background-color: #25d366; }

/* Footer */
footer {
    background-color: #003366;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .article-content {
        padding: 1.5rem;
    }
    
    .sidebar {
        position: static;
        margin-top: 2rem;
    }
    
    .store-stats {
        gap: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0;
    }
}

/* Простые стили для пагинации */
.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: white;
    color: #003366;
    border: 2px solid #003366;
    text-decoration: none;
    border-radius: 5px;
}

.page-numbers:hover {
    background: #003366;
    color: white;
}

.page-numbers.current {
    background: #003366;
    color: white;
}

/* Контейнер пагинации */
.pagination {
    text-align: center;
    margin: 30px 0;
}

/* Мобильная версия */
@media (max-width: 768px) {
    .page-numbers {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 14px;
    }
}

