/* MR Projector Rental System - WordPress Plugin Styles */

/* ==================== 全域樣式 ==================== */
.mr-rental-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ==================== 搜尋區 ==================== */
.mr-search-section {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.mr-search-input {
    flex: 1;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.mr-search-input:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* ==================== 分類篩選 ==================== */
.mr-category-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.mr-filter-btn {
    padding: 10px 24px;
    background: #f5f5f5;
    border: 2px solid transparent;
    border-radius: 25px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s;
}

.mr-filter-btn:hover {
    background: #e0e0e0;
}

.mr-filter-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* ==================== 產品網格 ==================== */
.mr-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.mr-product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s;
    cursor: pointer;
}

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

.mr-product-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.mr-product-card:hover .mr-product-image img {
    transform: scale(1.05);
}

.mr-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #d32f2f;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.mr-product-info {
    padding: 20px;
}

.mr-product-category {
    display: inline-block;
    font-size: 12px;
    color: #666;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
}

.mr-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 10px 0;
    min-height: 48px;
    line-height: 1.5;
}

.mr-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    margin: 15px 0;
}

/* ==================== 按鈕樣式 ==================== */
.mr-btn-primary {
    background: #d32f2f;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mr-btn-primary:hover {
    background: #b71c1c;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.3);
}

.mr-btn-secondary {
    background: white;
    color: #d32f2f;
    padding: 12px 30px;
    border: 2px solid #d32f2f;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
}

.mr-btn-secondary:hover {
    background: #d32f2f;
    color: white;
}

.mr-btn-view {
    width: 100%;
    background: #f5f5f5;
    color: #333;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.mr-btn-view:hover {
    background: #d32f2f;
    color: white;
}

/* ==================== 模態框 ==================== */
.mr-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    overflow: auto;
}

.mr-modal-content {
    background: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    max-width: 900px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-50px); }
    to { opacity: 1; transform: translateY(0); }
}

.mr-modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 36px;
    font-weight: 300;
    color: #666;
    cursor: pointer;
    z-index: 1;
}

.mr-modal-close:hover {
    color: #d32f2f;
}

.mr-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.mr-modal-image img {
    width: 100%;
    border-radius: 12px;
}

.mr-modal-price {
    font-size: 28px;
    font-weight: 700;
    color: #d32f2f;
    margin: 15px 0;
}

.mr-modal-specs ul {
    list-style: none;
    padding: 0;
}

.mr-modal-specs li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.mr-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* ==================== 預訂表單 ==================== */
.mr-booking-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.mr-selected-product {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.mr-selected-product img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.mr-booking-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.mr-form-section {
    margin-bottom: 40px;
}

.mr-form-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

.mr-form-group {
    margin-bottom: 20px;
}

.mr-form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.mr-form-group input,
.mr-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.mr-form-group input:focus,
.mr-form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.mr-cost-preview {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.mr-cost-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.mr-cost-total {
    font-size: 20px;
    font-weight: 700;
    color: #d32f2f;
    border-bottom: none;
    margin-top: 10px;
}

.mr-form-actions {
    text-align: center;
    margin-top: 40px;
}

.mr-btn-large {
    padding: 16px 60px;
    font-size: 18px;
}

/* ==================== 響應式設計 ==================== */
@media (max-width: 768px) {
    .mr-products-grid {
        grid-template-columns: 1fr;
    }
    
    .mr-modal-body {
        grid-template-columns: 1fr;
    }
    
    .mr-search-section {
        flex-direction: column;
    }
    
    .mr-category-filter {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
    }
}
