/**
 * ============================================================
 *  HAR Frontend Shortcodes - Styling
 * ============================================================
 * 
 * CSS για όλα τα frontend shortcodes
 * Responsive design για mobile/tablet/desktop
 * 
 * @package Hotel_AI_Reports
 * @subpackage Public/CSS
 */

/* ============================================================
   GLOBAL SHORTCODE STYLES
   ============================================================ */

.har-shortcode {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 20px 0;
}

.har-shortcode h2,
.har-shortcode h3 {
    margin-top: 0;
    color: #1d2327;
}

/* ============================================================
   MESSAGES & ALERTS
   ============================================================ */

.har-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
}

.har-message-info {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
    color: #1565c0;
}

.har-message-warning {
    background: #fff3e0;
    border-left: 4px solid #ff9800;
    color: #e65100;
}

.har-message-error {
    background: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

.har-error {
    color: #c62828;
    font-weight: 600;
}

/* ============================================================
   [har_dashboard] STYLES
   ============================================================ */

.har-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.har-dashboard-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.har-dashboard-title .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #2271b1;
}

.har-hotel-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.har-hotel-selector label {
    font-weight: 600;
    margin: 0;
}

.har-select {
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    min-width: 200px;
}

/* Quick Stats Grid */
.har-quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.har-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.2s ease;
}

.har-stat-card:hover {
    transform: translateY(-3px);
}

.har-stat-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.har-stat-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.har-stat-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.har-stat-icon {
    font-size: 40px;
    opacity: 0.9;
}

.har-stat-icon .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

.har-stat-content {
    flex: 1;
}

.har-stat-label {
    font-size: 12px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.har-stat-value {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

/* Dashboard Chart */
.har-dashboard-chart {
    margin: 30px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.har-dashboard-chart h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

/* Quick Links */
.har-quick-links {
    margin-top: 30px;
}

.har-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.har-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f0f0f1;
    border-radius: 6px;
    text-decoration: none;
    color: #1d2327;
    transition: all 0.2s ease;
}

.har-link-card:hover {
    background: #2271b1;
    color: #fff;
    transform: translateY(-2px);
}

.har-link-card .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
}

/* ============================================================
   [hotel_list] & [department_list] GRIDS
   ============================================================ */

.har-hotel-grid,
.har-department-grid,
.har-assistant-grid {
    display: grid;
    gap: 20px;
}

.har-columns-1 { grid-template-columns: 1fr; }
.har-columns-2 { grid-template-columns: repeat(2, 1fr); }
.har-columns-3 { grid-template-columns: repeat(3, 1fr); }
.har-columns-4 { grid-template-columns: repeat(4, 1fr); }

/* Card Styles */
.har-hotel-card,
.har-department-card,
.har-assistant-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.har-hotel-card:hover,
.har-department-card:hover,
.har-assistant-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-3px);
}

.har-hotel-card-header,
.har-assistant-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.har-hotel-name,
.har-assistant-name {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.har-hotel-card-body,
.har-assistant-body {
    padding: 20px;
}

.har-hotel-description,
.har-assistant-description {
    color: #50575e;
    line-height: 1.6;
}

.har-hotel-stat {
    margin-top: 10px;
    padding: 10px;
    background: #f0f0f1;
    border-radius: 4px;
}

.har-stat-label {
    font-weight: 600;
}

.har-hotel-card-footer,
.har-department-footer,
.har-assistant-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    text-align: center;
}

/* Department Card */
.har-department-card {
    text-align: center;
    padding: 30px 20px;
}

.har-department-icon {
    font-size: 48px;
    color: #2271b1;
    margin-bottom: 15px;
}

.har-department-icon .dashicons {
    width: 48px;
    height: 48px;
    font-size: 48px;
}

.har-department-name {
    margin: 10px 0;
}

.har-department-description {
    color: #50575e;
    margin: 15px 0;
}

/* Assistant Card */
.har-assistant-icon {
    font-size: 40px;
    color: #fff;
}

.har-assistant-icon .dashicons {
    width: 40px;
    height: 40px;
    font-size: 40px;
}

.har-assistant-meta {
    margin-top: 10px;
    padding: 8px 12px;
    background: #f0f0f1;
    border-radius: 4px;
    font-size: 13px;
}

.har-meta-label {
    font-weight: 600;
}

/* ============================================================
   [hotel_page] STYLES
   ============================================================ */

.har-hotel-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.har-hotel-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.har-hotel-meta {
    color: #50575e;
    font-size: 14px;
}

.har-section {
    margin: 30px 0;
}

.har-section h2 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

/* KPI Grid */
.har-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.har-kpi-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.har-kpi-name {
    font-size: 12px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 10px;
}

.har-kpi-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.har-kpi-date {
    font-size: 11px;
    opacity: 0.8;
}

/* Department List */
.har-department-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.har-department-item {
    padding: 15px;
    background: #f0f0f1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Contact Info */
.har-contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.har-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.har-contact-item .dashicons {
    color: #2271b1;
}

.har-contact-item a {
    color: #2271b1;
    text-decoration: none;
}

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

/* ============================================================
   BUTTONS
   ============================================================ */

.har-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.har-button-primary {
    background: #2271b1;
    color: #fff;
}

.har-button-primary:hover {
    background: #135e96;
    color: #fff;
}

.har-button-secondary {
    background: #f0f0f1;
    color: #1d2327;
}

.har-button-secondary:hover {
    background: #dcdcde;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media screen and (max-width: 1200px) {
    .har-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 900px) {
    .har-columns-3,
    .har-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .har-quick-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .har-shortcode {
        padding: 20px;
    }
    
    .har-columns-2,
    .har-columns-3,
    .har-columns-4 {
        grid-template-columns: 1fr;
    }
    
    .har-quick-stats {
        grid-template-columns: 1fr;
    }
    
    .har-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .har-hotel-selector {
        width: 100%;
    }
    
    .har-select {
        width: 100%;
    }
    
    .har-kpi-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   LOADING STATE
   ============================================================ */

.har-loading {
    text-align: center;
    padding: 40px;
}

.har-loading::after {
    content: '';
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2271b1;
    border-radius: 50%;
    animation: har-spin 1s linear infinite;
}

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

.har-no-data {
    text-align: center;
    color: #787c82;
    font-style: italic;
    padding: 20px;
}
