/**
 * Guest Portal Styles
 *
 * Consolidated CSS for the guest booking portal.
 *
 * @package    IdeaForge_Sync
 * @subpackage IdeaForge_Sync/frontend/css
 * @since      1.2.2
 */

/* ==========================================================================
   Base Portal Styles
   ========================================================================== */

.ideaforge-sync-portal {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

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

.portal-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.welcome-message {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   Portal Filters
   ========================================================================== */

.portal-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-link {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s;
}

.filter-link:hover {
    background: #e0e0e0;
}

.filter-link.active {
    background: #2271b1;
    color: white;
}

/* ==========================================================================
   Bookings List
   ========================================================================== */

.portal-bookings-list {
    display: grid;
    gap: 20px;
}

.no-bookings {
    text-align: center;
    padding: 60px 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

.no-bookings p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* ==========================================================================
   Booking Card
   ========================================================================== */

.booking-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.booking-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
}

.property-name {
    margin: 0;
    font-size: 20px;
    color: #333;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.booking-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-confirmed {
    background: #d5f4e6;
    color: #00693e;
}

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

.status-cancelled,
.status-declined {
    background: #f8d7da;
    color: #721c24;
}

/* ==========================================================================
   Booking Card Body
   ========================================================================== */

.booking-card-body {
    padding: 20px;
}

.booking-dates,
.booking-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.date-item,
.detail-item {
    display: flex;
    flex-direction: column;
}

.date-label,
.detail-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.date-value,
.detail-value {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

/* ==========================================================================
   Booking Card Footer
   ========================================================================== */

.booking-card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #e0e0e0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    display: inline-block;
}

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

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

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

/* ==========================================================================
   Booking Details Page
   ========================================================================== */

.booking-details-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

.portal-breadcrumb {
    margin-bottom: 20px;
}

.portal-breadcrumb a {
    color: #2271b1;
    text-decoration: none;
    font-weight: 500;
}

.portal-breadcrumb a:hover {
    text-decoration: underline;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.details-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.booking-id {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.status-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Details Grid
   ========================================================================== */

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.details-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.details-card.full-width {
    grid-column: 1 / -1;
}

.details-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
}

.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.details-table tr:last-child {
    border-bottom: none;
}

.details-table th {
    text-align: left;
    padding: 10px 0;
    font-weight: 600;
    color: #666;
    width: 40%;
}

.details-table td {
    padding: 10px 0;
    color: #333;
}

.amount-value {
    font-size: 20px;
    font-weight: 700;
    color: #2271b1;
}

/* ==========================================================================
   Payment Status
   ========================================================================== */

.payment-status-inline {
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.payment-paid {
    background: #d5f4e6;
    color: #00693e;
}

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

.payment-unpaid,
.payment-failed {
    background: #f8d7da;
    color: #721c24;
}

.property-address,
.property-description {
    margin: 10px 0;
    line-height: 1.6;
}

.details-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==========================================================================
   Modification Page
   ========================================================================== */

.modification-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

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

.page-header h2 {
    margin: 0 0 10px 0;
    font-size: 28px;
    color: #333;
}

.subtitle {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.modification-form-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.info-box {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.info-box h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.current-booking-table {
    width: 100%;
    border-collapse: collapse;
}

.current-booking-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.current-booking-table tr:last-child {
    border-bottom: none;
}

.current-booking-table th {
    text-align: left;
    padding: 10px 0;
    font-weight: 600;
    color: #666;
    width: 40%;
}

.current-booking-table td {
    padding: 10px 0;
    color: #333;
}

.modification-form h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-field {
    margin-bottom: 20px;
}

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

.form-field input[type="date"],
.form-field input[type="number"],
.form-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.form-field textarea {
    resize: vertical;
}

.important-notice {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    margin: 20px 0;
}

.important-notice strong {
    display: block;
    margin-bottom: 10px;
    color: #856404;
}

.important-notice p {
    margin: 0;
    color: #856404;
    line-height: 1.5;
}

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

/* ==========================================================================
   Cancellation Page
   ========================================================================== */

.cancellation-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.cancellation-form-container {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
}

.warning-box {
    background: #f8d7da;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.warning-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #721c24;
}

.warning-box p {
    margin: 0;
    color: #721c24;
    line-height: 1.5;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.info-card h3 {
    margin: 0 0 15px 0;
    font-size: 18px;
    color: #333;
}

.refund-amount {
    font-size: 20px;
    font-weight: 700;
    color: #28a745;
}

.policy-note {
    margin: 10px 0 0 0;
    padding: 10px;
    background: white;
    border-radius: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.cancellation-form .form-field {
    margin-bottom: 20px;
}

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

.cancellation-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    resize: vertical;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */

@media (max-width: 768px) {
    .ideaforge-sync-portal {
        padding: 15px;
    }

    .portal-header h2 {
        font-size: 24px;
    }

    .portal-filters {
        gap: 8px;
    }

    .filter-link {
        padding: 8px 15px;
        font-size: 14px;
    }

    .booking-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .property-name {
        font-size: 18px;
    }

    .booking-dates,
    .booking-details {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .booking-card-footer {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .details-header {
        flex-direction: column;
        gap: 15px;
    }

    .status-badges {
        flex-direction: column;
        align-items: flex-start;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }

    .details-actions {
        flex-direction: column;
    }

    .details-actions .btn {
        width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn {
        width: 100%;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }
}
