/*
 Theme Name:   TATINO Directory Theme
 Theme URI:    https://tatino.app
 Description:  A child theme for the TATINO Business Directory, based on Twenty Twenty-Four
 Author:       TATINO Team
 Author URI:   https://tatino.app
 Template:     twentytwentyfour
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  tatino-directory
*/

/* Import parent theme styles */
@import url("../twentytwentyfour/style.css");

/* TATINO Directory Custom Styles */

/* Business Grid Layout */
.business-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.business-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.business-card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.business-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.business-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6b35;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.business-card-content {
    padding: 1.5rem;
}

.business-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.business-card-title a {
    color: #333;
    text-decoration: none;
}

.business-card-title a:hover {
    color: #0073aa;
}

.business-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.business-card-followers {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.business-card-taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.business-card-taxonomy {
    background: #f0f0f0;
    color: #333;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
}

.business-card-taxonomy:hover {
    background: #e0e0e0;
}

/* Single Business Page */
.business-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.business-profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.business-info h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
}

.business-stats {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.business-stat {
    text-align: center;
}

.business-stat-number {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0073aa;
}

.business-stat-label {
    font-size: 0.9rem;
    color: #666;
}

.business-contact {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin: 2rem 0;
}

.business-contact h3 {
    margin: 0 0 1rem 0;
}

.business-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.instagram-posts {
    margin: 2rem 0;
}

.instagram-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.instagram-post-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.instagram-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.instagram-post-content {
    padding: 1rem;
}

.instagram-post-caption {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.instagram-post-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
}

/* Directory Filters */
.directory-filters {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.directory-filters h3 {
    margin: 0 0 1rem 0;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.filter-submit {
    background: #0073aa;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.filter-submit:hover {
    background: #005a87;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.breadcrumbs-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs-list li {
    color: #666;
}

.breadcrumbs-list a {
    color: #0073aa;
    text-decoration: none;
}

.breadcrumbs-list a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    color: #999;
}

/* Pagination */
.business-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 2rem 0;
}

.business-pagination .page-numbers {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.business-pagination .page-numbers.current {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.business-pagination .page-numbers:hover {
    background: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .business-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1rem;
    }
    
    .business-header {
        flex-direction: column;
        text-align: center;
    }
    
    .business-stats {
        justify-content: center;
    }
    
    .instagram-posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

@media (max-width: 480px) {
    .business-grid {
        grid-template-columns: 1fr;
    }
    
    .instagram-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Featured Badge */
.featured-badge {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Results */
.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 2px solid #f0f0f0;
}

.search-results-count {
    font-size: 1.1rem;
    color: #666;
}

.search-sort {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-sort select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 2rem 0;
}

.no-results h3 {
    margin: 0 0 1rem 0;
    color: #333;
}

.no-results p {
    color: #666;
    margin-bottom: 1.5rem;
}

.no-results .search-again {
    background: #0073aa;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    display: inline-block;
}

.no-results .search-again:hover {
    background: #005a87;
}
