/* === ΜΟΡΦΟΠΟΙΗΣΗ ΣΤΥΛ === */
.tenders-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.tender-single,
.tenders-archive,
.tenders-category {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

/* Κουμπιά Στην Κορυφή */
.tender-file-header {
    margin: 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    border: 1px solid #dee2e6;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
}

.tender-file-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
}

.header-file-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Breadcrumb */
.breadcrumb {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2980b9;
    text-decoration: underline;
}

.breadcrumb .current {
    color: #2c3e50;
    font-weight: 600;
}

/* Τίτλοι */
.tender-title,
.archive-title,
.category-title {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 25px;
    line-height: 1.3;
    font-weight: 700;
}

.archive-title,
.category-title {
    font-size: 20px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 20px;
}

.archive-title:after,
.category-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2ecc71);
    border-radius: 2px;
}

/* Meta πληροφορίες */
.tender-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: white;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

.meta-label {
    font-weight: 600;
    color: #34495e;
    font-size: 14px;
}

.meta-value {
    color: #2c3e50;
    font-weight: 500;
    font-size: 14px;
}

/* Περιεχόμενο */
.tender-content,
.category-description {
    line-height: 1.8;
    color: #34495e;
    margin: 30px 0;
    font-size: 16px;
}

.tender-content p,
.category-description p {
    margin-bottom: 20px;
}

/* Αρχεία (κανονική τοποθεσία) */
.tender-file {
    margin: 40px 0;
    padding: 25px;
    background: linear-gradient(135deg, #f1f8ff 0%, #e3f2fd 100%);
    border-radius: 10px;
    border-left: 4px solid #3498db;
}

.tender-file h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 20px;
}

/* ΚΟΙΝΑ ΣΤΥΛ ΚΟΥΜΠΙΩΝ */
.file-download-button,
.google-docs-link,
.read-more-button,
.view-category,
.view-subcategory-button,
.header-download-btn,
.header-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #3498db;
    color: white !important;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.google-docs-link,
.header-view-btn {
    background: #27ae60;
}

.view-category,
.view-subcategory-button {
    background: #2ecc71;
}

.file-download-button:hover,
.google-docs-link:hover,
.read-more-button:hover,
.view-category:hover,
.view-subcategory-button:hover,
.header-download-btn:hover,
.header-view-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.file-download-button:hover,
.header-download-btn:hover {
    background: #2980b9;
}

.google-docs-link:hover,
.header-view-btn:hover {
    background: #219653;
}

.view-category:hover,
.view-subcategory-button:hover {
    background: #27ae60;
}

.file-actions,
.tender-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Υποκατηγορίες Grid */
.categories-grid,
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.category-card,
.subcategory-card,
.tender-item {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.category-card:before,
.subcategory-card:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3498db;
    transition: width 0.3s ease;
}

.subcategory-card:before {
    background: #2ecc71;
}

.category-card:hover,
.subcategory-card:hover,
.tender-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
    border-color: #3498db;
}

.category-card:hover:before,
.subcategory-card:hover:before {
    width: 8px;
}

.category-card h3,
.subcategory-title {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 20px;
    position: relative;
    z-index: 1;
}

.category-card a,
.subcategory-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-card a:hover,
.subcategory-title a:hover {
    color: #3498db;
}

.subcategory-title a:hover {
    color: #2ecc71;
}

/* Count badges */
.count,
.subcategory-count {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    margin-left: 10px;
    font-weight: 500;
}

.subcategory-count {
    background: #2ecc71;
}

/* ΠΕΡΙΓΡΑΦΗΣ */
.tender-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 15px 0;
    font-size: 15px;
}

/* PAGINATION - ΟΜΟΡΦΟ ΣΤΥΛ */
.tenders-pagination {
    margin-top: 50px;
    text-align: center;
}

.tenders-pagination ul.page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 5px;
}

.tenders-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    background: white;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 45px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tenders-pagination .page-numbers:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.tenders-pagination .page-numbers.current {
    background: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.tenders-pagination .page-numbers.dots {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: default;
}

.tenders-pagination .page-numbers.dots:hover {
    background: transparent;
    color: #2c3e50;
    border: none;
    transform: none;
    box-shadow: none;
}

.tenders-pagination .page-numbers.prev,
.tenders-pagination .page-numbers.next {
    padding: 12px 25px;
    font-weight: 500;
}

.tenders-pagination .page-numbers.prev:before {
    content: '←';
    margin-right: 8px;
}

.tenders-pagination .page-numbers.next:after {
    content: '→';
    margin-left: 8px;
}

/* Header για posts */
.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
}

.posts-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
    font-weight: 600;
}

.posts-count {
    color: #666;
    font-size: 16px;
    font-weight: 500;
    background: #f8f9fa;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #e9ecef;
}

/* No content messages */
.no-subcategories,
.no-posts {
    text-align: center;
    padding: 50px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px dashed #ddd;
    margin: 30px 0;
    color: #666;
    font-size: 16px;
}

/* Navigation μεταξύ posts */
.tender-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 2px solid #eee;
}

.nav-previous a,
.nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-previous a:hover,
.nav-next a:hover {
    background: #3498db;
    color: white;
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.nav-previous a:before {
    content: '←';
}

.nav-next a:after {
    content: '→';
}

/* Responsive */
@media (max-width: 768px) {
    .tender-single,
    .tenders-archive,
    .tenders-category {
        padding: 25px;
    }
    
    .tender-file-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .header-file-actions {
        width: 100%;
    }
    
    .header-file-actions a {
        width: 100%;
        justify-content: center;
    }
    
    .categories-grid,
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
    
    .archive-title,
    .category-title {
        font-size: 28px;
    }
    
    .tender-title {
        font-size: 26px;
    }
    
    .tender-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .posts-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .tenders-pagination .page-numbers {
        padding: 10px 15px;
        margin: 0 3px;
        font-size: 14px;
        min-width: 40px;
    }
    
    .tender-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .breadcrumb {
        gap: 6px;
        font-size: 13px;
    }
    
    .breadcrumb-separator {
        margin: 0 1px;
    }
}

@media (max-width: 480px) {
    .tenders-container {
        padding: 0 15px;
    }
    
    .tender-single,
    .tenders-archive,
    .tenders-category {
        padding: 20px;
    }
    
    .tender-title,
    .archive-title,
    .category-title {
        font-size: 22px;
    }
    
    .tenders-pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 2px;
        font-size: 13px;
        min-width: 35px;
    }
}