/**
 * Frontend styles for Ipartelep Kiadó Egységek plugin
 * Modern, clean, responsive list layout
 */

/* ===== Archive / List View ===== */
.ike-archive-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ike-archive-header {
    margin-bottom: 40px;
    text-align: center;
}

.ike-archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.ike-archive-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Units List */
.ike-units-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ike-unit-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ike-unit-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #d0d0d0;
}

.ike-unit-thumbnail {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
}

.ike-unit-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.ike-unit-thumbnail .ike-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 6px;
    text-decoration: none;
}

.ike-placeholder-icon {
    font-size: 3rem;
}

.ike-unit-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ike-unit-title {
    margin: 0 0 12px 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.ike-unit-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ike-unit-title a:hover {
    color: #0066cc;
}

.ike-unit-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.ike-category-tag {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ike-category-tag:hover {
    background: #e0e0e0;
}

.ike-unit-excerpt {
    margin-bottom: 15px;
    color: #555;
    line-height: 1.6;
}

.ike-unit-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.ike-meta-item {
    font-size: 0.95rem;
    color: #666;
}

.ike-meta-item.ike-price strong {
    color: #0066cc;
    font-size: 1.1rem;
}

.ike-location-label {
    font-weight: 600;
    margin-right: 5px;
}

.ike-view-details {
    align-self: flex-start;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.ike-view-details:hover {
    color: #0052a3;
}

/* No Results */
.ike-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

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

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

.ike-pagination a,
.ike-pagination .current {
    padding: 8px 16px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    text-decoration: none;
    color: #555;
    transition: all 0.2s ease;
}

.ike-pagination a:hover,
.ike-pagination .current {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
}

/* ===== Category Selector (Shortcode) ===== */
.ike-category-selector {
    text-align: center;
    padding: 40px 20px;
}

.ike-selector-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 30px;
    color: #1a1a1a;
}

.ike-category-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.ike-category-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #fff;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ike-category-button:hover {
    background: #0066cc;
    color: #fff;
    border-color: #0066cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 102, 204, 0.2);
}

.ike-category-button .category-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.3s ease;
}

.ike-category-button:hover .category-count {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== Single Unit View ===== */
.ike-single-unit {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.ike-notice {
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 6px;
    font-weight: 500;
}

.ike-notice-inactive {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
}

.ike-single-header {
    margin-bottom: 30px;
}

.ike-single-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.ike-single-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ike-single-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .ike-single-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Media Section */
.ike-single-media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ike-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ike-gallery-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

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

.ike-gallery-item {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.ike-gallery-item:hover {
    transform: scale(1.05);
}

.ike-gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Main Content Section */
.ike-single-main {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ike-description h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.ike-details-box,
.ike-contact-box {
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}

.ike-details-box h3,
.ike-contact-box h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.ike-details-table {
    width: 100%;
    border-collapse: collapse;
}

.ike-details-table th,
.ike-details-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #e5e5e5;
}

.ike-details-table th {
    font-weight: 600;
    color: #555;
    width: 40%;
}

.ike-details-table td {
    color: #333;
}

.ike-details-table tbody tr:last-child th,
.ike-details-table tbody tr:last-child td {
    border-bottom: none;
}

.ike-contact-item {
    margin-bottom: 12px;
}

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

.ike-contact-item a {
    color: #0066cc;
    text-decoration: none;
}

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

.ike-back-link {
    margin-top: 20px;
}

.ike-button-secondary {
    display: inline-block;
    padding: 12px 24px;
    background: #fff;
    border: 2px solid #0066cc;
    border-radius: 6px;
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ike-button-secondary:hover {
    background: #0066cc;
    color: #fff;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .ike-archive-title,
    .ike-single-title {
        font-size: 2rem;
    }
    
    .ike-unit-item {
        flex-direction: column;
    }
    
    .ike-unit-thumbnail {
        width: 100%;
        height: 200px;
    }
    
    .ike-unit-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .ike-category-button {
        width: 100%;
        justify-content: space-between;
    }
    
    .ike-single-content {
        grid-template-columns: 1fr;
    }
}
