/* User Recommendations Manager - Frontend Styles */

/* Dashboard Tab Styling */
.urm-dashboard-tab {
    position: relative;
}

.urm-dashboard-tab a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.urm-dashboard-tab.active a {
    font-weight: 600;
}

/* Header Menu Item Styling */
.urm-header-menu-item {
    position: relative;
}

.urm-header-menu-item a {
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.urm-header-menu-item a:hover {
    opacity: 0.8;
}

.urm-menu-icon.dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #ff7a00;
}

/* Recommendations Content Styling */
.urm-recommendations-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.urm-recommendation-section h2 {
    font-size: 28px;
    color: #1d2327;
    margin: 0 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #ff7a00;
}

.urm-recommendation-section h3 {
    font-size: 22px;
    color: #2c3338;
    margin: 30px 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.urm-analysis {
    background: #f8f9fa;
    padding: 20px;
    border-left: 4px solid #ff7a00;
    margin-bottom: 30px;
    line-height: 1.8;
    border-radius: 4px;
}

.urm-analysis p {
    margin: 0 0 15px 0;
}

.urm-analysis p:last-child {
    margin-bottom: 0;
}

.urm-spaces {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 30px;
}

.urm-spaces ul,
.urm-services ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.urm-spaces li,
.urm-services li {
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-left: 3px solid #46b450;
    border-radius: 4px;
    transition: all 0.2s;
}

.urm-spaces li:hover,
.urm-services li:hover {
    background: #e8f4f8;
    border-left-color: #ff7a00;
    transform: translateX(5px);
}

.urm-services {
    background: #fff;
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.urm-services li {
    border-left-color: #2271b1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .urm-recommendations-content {
        padding: 20px;
    }
    
    .urm-recommendation-section h2 {
        font-size: 24px;
    }
    
    .urm-recommendation-section h3 {
        font-size: 20px;
    }
    
    .urm-analysis,
    .urm-spaces,
    .urm-services {
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .urm-header-menu-item {
        display: none;
    }
    
    .urm-recommendations-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
}

/* Custom Styling for Better Visual Hierarchy */
.urm-analysis strong,
.urm-spaces strong,
.urm-services strong {
    color: #1d2327;
    font-weight: 600;
}

.urm-analysis em,
.urm-spaces em,
.urm-services em {
    color: #666;
}

.urm-analysis a,
.urm-spaces a,
.urm-services a {
    color: #ff7a00;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.urm-analysis a:hover,
.urm-spaces a:hover,
.urm-services a:hover {
    border-bottom-color: #ff7a00;
}

/* Items list (ordered blocks + cards) */
.urm-items-list {
    margin: 20px 0;
}

.urm-item-block.urm-item-html {
    margin-bottom: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    border-radius: 4px;
}

/* Full-row listing cards */
.urm-listing-cards,
.urm-items-list .urm-listing-card,
.urm-items-list .urm-product-card {
    margin-bottom: 20px;
}

.urm-listing-card.urm-card-row,
.urm-product-card.urm-card-row {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    width: 100%;
}

.urm-listing-card.urm-card-row:hover,
.urm-product-card.urm-card-row:hover {
    border-color: #ff7a00;
    box-shadow: 0 4px 16px rgba(255, 122, 0, 0.12);
}

.urm-card-row-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 20px;
    padding: 20px 24px;
}

.urm-listing-card .urm-card-main,
.urm-product-card .urm-product-info {
    flex: 1 1 200px;
    min-width: 0;
}

.urm-listing-card .urm-card-main {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.urm-listing-header {
    display: flex;
    gap: 15px;
    align-items: start;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.urm-listing-logo {
    flex-shrink: 0;
}

.urm-listing-logo img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.urm-listing-title-area {
    flex: 1;
    min-width: 0;
}

.urm-listing-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    color: #1d2327;
    font-weight: 700;
    line-height: 1.3;
}

.urm-listing-rental-category {
    margin: 0 0 6px 0;
    font-size: 13px;
    color: #555;
}

.urm-listing-rental-category .urm-rental-category-label {
    font-weight: 600;
    color: #1d2327;
}

.urm-listing-address {
    margin: 0;
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 5px;
}

.urm-listing-address .dashicons {
    color: #ff7a00;
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.urm-listing-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.urm-rating-stars {
    display: flex;
    gap: 2px;
}

.urm-rating-stars .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.urm-rating-stars .dashicons-star-filled {
    color: #ffb900;
}

.urm-rating-stars .dashicons-star-half {
    color: #ffb900;
}

.urm-rating-stars .dashicons-star-empty {
    color: #ddd;
}

.urm-rating-value {
    font-weight: 700;
    font-size: 16px;
    color: #1d2327;
}

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

/* Rental / Size from _rental_tab_size */
.urm-rental-tab-size {
    flex: 0 0 auto;
    min-width: 180px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
}

.urm-rental-tab-size-title {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #1d2327;
    font-weight: 600;
}

.urm-rental-tab-size-list {
    margin: 0;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 16px;
}

.urm-rental-tab-size-row {
    display: contents;
}

.urm-rental-tab-size-row dt {
    margin: 0;
    font-weight: 600;
    color: #555;
    font-size: 13px;
}

.urm-rental-tab-size-row dd {
    margin: 0;
    font-size: 13px;
    color: #1d2327;
}

.urm-listing-pricing {
    margin-bottom: 0;
    flex: 0 0 auto;
}

.urm-listing-pricing h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1d2327;
    font-weight: 600;
}

.urm-pricing-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.urm-pricing-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: linear-gradient(135deg, #fff3e6 0%, #ffe1c4 100%);
    border-left: 4px solid #ff7a00;
    border-radius: 6px;
    transition: all 0.2s;
}

.urm-pricing-option:hover {
    background: linear-gradient(135deg, #ffe1c4 0%, #ffcf9e 100%);
    transform: translateX(5px);
}

.urm-option-name {
    font-size: 14px;
    color: #1d2327;
    font-weight: 500;
}

.urm-option-price {
    font-size: 18px;
    font-weight: 700;
    color: #ff7a00;
}

.urm-listing-actions {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    flex: 0 0 auto;
    align-self: center;
}

/* Product card row */
.urm-product-card .urm-card-row-inner {
    align-items: center;
}

.urm-product-image {
    flex-shrink: 0;
}

.urm-product-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.urm-product-title {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #1d2327;
    font-weight: 700;
}

.urm-product-price {
    font-size: 16px;
    font-weight: 600;
    color: #ff7a00;
}

.urm-product-price del {
    color: #999;
    margin-right: 6px;
}

.urm-view-listing-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #ff7a00;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    width: 100%;
    justify-content: center;
}

.urm-view-listing-btn:hover {
    background: #e86b00;
    color: #fff;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.urm-view-listing-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Single column on mobile */
@media (max-width: 640px) {
    .urm-listing-cards {
        grid-template-columns: 1fr;
    }
    
    .urm-listing-card {
        padding: 18px;
    }
    
    .urm-listing-title {
        font-size: 18px;
    }
}

/* Loading State */
.urm-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.urm-loading::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #e0e0e0;
    border-top-color: #ff7a00;
    border-radius: 50%;
    animation: urm-spin 1s linear infinite;
}

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

/* Empty State */
.urm-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.urm-empty-state::before {
    content: "📋";
    display: block;
    font-size: 48px;
    margin-bottom: 20px;
}

/* Shortcode helper styles */
.urm-shortcode-message {
    text-align: left;
}

.urm-shortcode-message p {
    margin-bottom: 12px;
}

.urm-shortcode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.urm-primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #ff7a00;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.urm-primary-btn:hover {
    background: #e86b00;
    color: #fff;
}

.urm-secondary-link {
    display: inline-flex;
    align-items: center;
    color: #ff7a00;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    font-weight: 500;
    transition: all 0.2s ease;
}

.urm-secondary-link:hover {
    border-bottom-color: #ff7a00;
}

/* Support CTA — 2026 minimal */
.urm-support-cta {
    margin-top: 48px;
    padding: 32px 24px;
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
}

.urm-support-cta-label {
    margin: 0 0 20px 0;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.urm-support-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.urm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.urm-cta-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.urm-cta-text {
    letter-spacing: 0.01em;
}

.urm-cta-whatsapp {
    background: #fff;
    color: #111;
    border: 1px solid #e0e0e0;
}

.urm-cta-whatsapp:hover {
    background: #f5f5f5;
    border-color: #25d366;
    color: #0d0d0d;
}

.urm-cta-whatsapp .urm-cta-icon {
    color: #25d366;
}

.urm-cta-livechat {
    background: #fff;
    color: #111;
    border: 1px solid #e0e0e0;
}

.urm-cta-livechat:hover {
    background: #f5f5f5;
    border-color: #ff7a00;
    color: #0d0d0d;
}

.urm-cta-livechat .urm-cta-icon {
    color: #ff7a00;
}
