/**
 * Neverworld Rental Manager - Frontend Styles
 * Public rental listings styling
 */

/* Container */
.orswp-frontend-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Stats Bar */
.orswp-stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.orswp-stat-item {
    text-align: center;
    flex: 1;
}

.orswp-stat-number {
    display: block;
    font-size: 36px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 5px;
}

.orswp-stat-label {
    display: block;
    font-size: 14px;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Search Form */
.orswp-search-form {
    margin-bottom: 30px;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.orswp-search-fields {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.orswp-input,
.orswp-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    flex: 1;
    min-width: 200px;
}

.orswp-input:focus,
.orswp-select:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
}

/* Buttons */
.orswp-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.orswp-btn-primary {
    background: #2271b1;
    color: #fff;
}

.orswp-btn-primary:hover {
    background: #135e96;
    color: #fff;
}

.orswp-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.orswp-btn-secondary:hover {
    background: #dcdcde;
    color: #2c3338;
}

/* Grid Layout */
.orswp-rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

/* List Layout */
.orswp-rentals-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* Rental Card - Grid */
.orswp-rental-grid {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.orswp-rental-grid:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Rental Card - List */
.orswp-rental-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: row;
}

.orswp-rental-list:hover {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Rental Image */
.orswp-rental-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f1;
}

.orswp-rental-list .orswp-rental-image {
    width: 300px;
    height: auto;
    min-height: 200px;
}

.orswp-rental-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rental Content */
.orswp-rental-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.orswp-rental-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
    color: #2c3338;
}

.orswp-rental-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #646970;
}

.orswp-meta-item {
    display: flex;
    align-items: center;
}

.orswp-meta-item strong {
    min-width: 80px;
    color: #2c3338;
}

.orswp-rental-price {
    font-size: 24px;
    font-weight: bold;
    color: #2271b1;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f1;
}

.orswp-rental-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.orswp-rental-actions .orswp-btn {
    flex: 1;
    padding: 12px 15px;
}

/* No Rentals */
.orswp-no-rentals {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #646970;
}

.orswp-no-rentals p {
    font-size: 16px;
    margin: 0;
}

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

.orswp-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #2271b1;
    border-radius: 50%;
    animation: orswp-spin 1s linear infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .orswp-stats-bar {
        flex-direction: column;
    }
    
    .orswp-search-fields {
        flex-direction: column;
    }
    
    .orswp-input,
    .orswp-select {
        width: 100%;
        min-width: 0;
    }
    
    .orswp-rentals-grid {
        grid-template-columns: 1fr;
    }
    
    .orswp-rental-list {
        flex-direction: column;
    }
    
    .orswp-rental-list .orswp-rental-image {
        width: 100%;
        height: 200px;
    }
    
    .orswp-rental-actions {
        flex-direction: column;
    }
}
