/*
Theme Name: Smart Directory Pro V2
Theme URI: https://smartdirectorypro.com
Author: Arielle Phoenix
Author URI: https://ariellephoenix.com
Description: Modern, responsive theme for Smart Directory Pro with enhanced features, beautiful design, blog system, and Listeo-inspired dashboard system. Includes customizable blog typography, real-time layout controls, and comprehensive business directory functionality.
Version: 3.8.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: directory, listings, business, dashboard, blog, responsive
Text Domain: smart-directory-pro
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
*/

/* Add theme styles here */

/* Popularity Times Widget Styles */
.popularity-chart .grid div:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

.popularity-chart .grid div[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
    margin-bottom: 4px;
}

.popularity-chart .grid div {
    position: relative;
}

/* Smooth transitions for day switching */
.popularity-chart [x-show] {
    transition: opacity 0.3s ease-in-out;
}

/* Peak times styling */
.peak-times-badge {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* Category Section Animation */
.category-section .category-item {
    /* Initial state is set by Tailwind classes: opacity-0 translate-y-8 */
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.category-section .category-item.is-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Dashboard System Styles */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    margin-bottom: 30px;
}

.dashboard-nav {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.dashboard-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Business Card Styles */
.business-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.business-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-container {
        padding: 15px;
    }
    
    .business-card {
        margin-bottom: 20px;
    }
}

/* Loading Animation */
.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

/* Form Enhancements */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Add other custom non-Tailwind CSS below */
