/* Hello Coffee Directory Plugin Styles - Matches Your Theme */

.hello-coffee-directory {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #000;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Directory Filters */
.directory-filters {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #1a1a1a;
    border-radius: 8px;
    border: 1px solid #333;
}

.filter-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.search-input,
.filter-select {
    padding: 12px 16px;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 16px;
    min-width: 200px;
}

.search-input:focus,
.filter-select:focus {
    outline: none;
    border-color: #FFC107;
    box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.2);
}

.search-input::placeholder {
    color: #888;
}

/* Coffee Shop Grid */
.coffee-shop-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.coffee-shop-grid.columns-1 {
    grid-template-columns: 1fr;
}

.coffee-shop-grid.columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.coffee-shop-grid.columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.coffee-shop-grid.columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Coffee Shop Cards */
.coffee-shop-card {
    background-color: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.coffee-shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.1);
    border-color: #FFC107;
}

/* Card Image */
.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.coffee-shop-card:hover .card-image img {
    transform: scale(1.05);
}

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: #FFC107;
}

.verified-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #FFC107;
    color: #000;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Card Content */
.card-content {
    padding: 20px;
}

.shop-header {
    margin-bottom: 15px;
}

.shop-title {
    margin: 0 0 10px 0;
    font-size: 1.4em;
    font-weight: 600;
}

.shop-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.shop-title a:hover {
    color: #FFC107;
}

.shop-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

/* Rating Section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    font-size: 16px;
    line-height: 1;
}

.star.full {
    color: #FFC107;
}

.star.half {
    color: #FFC107;
    opacity: 0.6;
}

.star.empty {
    color: #444;
}

.rating-text {
    font-weight: 600;
    color: #FFC107;
}

.review-count {
    color: #888;
    font-size: 14px;
}

/* Status Section */
.status {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status.open {
    background-color: #28a745;
    color: #fff;
}

.status.closed {
    background-color: #dc3545;
    color: #fff;
}

.status.unknown {
    background-color: #6c757d;
    color: #fff;
}

/* Shop Details */
.shop-details {
    margin: 15px 0;
}

.shop-details p {
    margin: 5px 0;
    font-size: 14px;
    color: #ccc;
    display: flex;
    align-items: center;
    gap: 8px;
}

.shop-details .icon-location::before {
    content: "📍";
}

.shop-details .icon-phone::before {
    content: "📞";
}

/* Shop Description */
.shop-description {
    margin: 15px 0;
    color: #aaa;
    font-size: 14px;
    line-height: 1.5;
}

/* Features List */
.features-list {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tag {
    background-color: #2a2a2a;
    color: #FFC107;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: capitalize;
    border: 1px solid #444;
}

.feature-more {
    background-color: #333;
    color: #888;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

/* Card Actions */
.card-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.view-listing-btn,
.website-btn {
    padding: 10px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 120px;
}

.view-listing-btn {
    background-color: #FFC107;
    color: #000;
}

.view-listing-btn:hover {
    background-color: #e6ac00;
    transform: translateY(-1px);
}

.website-btn {
    background-color: transparent;
    color: #FFC107;
    border: 1px solid #FFC107;
}

.website-btn:hover {
    background-color: #FFC107;
    color: #000;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #888;
}

.no-results h3 {
    color: #fff;
    margin-bottom: 10px;
}

/* Single Coffee Shop Page Styles */
.single-coffee-shop {
    background-color: #000;
    color: #fff;
    min-height: 100vh;
}

.coffee-shop-header {
    background-color: #1a1a1a;
    padding: 40px 0;
    border-bottom: 1px solid #333;
}

.coffee-shop-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.coffee-shop-title {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    color: #fff;
}

.coffee-shop-subtitle {
    color: #FFC107;
    font-size: 1.1em;
    margin-bottom: 20px;
}

.coffee-shop-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.coffee-shop-content {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid #333;
}

.coffee-shop-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-widget {
    background-color: #1a1a1a;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

.sidebar-widget h3 {
    color: #FFC107;
    margin: 0 0 15px 0;
    font-size: 1.2em;
}

.hours-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #333;
}

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

.day-name {
    font-weight: 600;
}

.day-hours {
    color: #ccc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hello-coffee-directory {
        padding: 15px;
    }
    
    .coffee-shop-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input,
    .filter-select {
        min-width: auto;
        width: 100%;
    }
    
    .card-actions {
        flex-direction: column;
    }
    
    .view-listing-btn,
    .website-btn {
        flex: none;
        min-width: auto;
    }
    
    .coffee-shop-main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .coffee-shop-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .card-content {
        padding: 15px;
    }
    
    .shop-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .coffee-shop-header {
        padding: 20px 0;
    }
    
    .coffee-shop-content,
    .sidebar-widget {
        padding: 20px;
    }
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #FFC107;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Animations */
.coffee-shop-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Custom Scrollbar */
.hello-coffee-directory ::-webkit-scrollbar {
    width: 8px;
}

.hello-coffee-directory ::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.hello-coffee-directory ::-webkit-scrollbar-thumb {
    background: #FFC107;
    border-radius: 4px;
}

.hello-coffee-directory ::-webkit-scrollbar-thumb:hover {
    background: #e6ac00;
}
