/**
 * Skipper Review Platform - Frontend Styles
 */

/* General */
.srp-clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.srp-error {
    padding: 10px 15px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-radius: 4px;
    margin-bottom: 20px;
}

.srp-notice {
    padding: 10px 15px;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 4px;
    margin-bottom: 20px;
}

.srp-success {
    padding: 10px 15px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 4px;
    margin-bottom: 20px;
}

.srp-form {
    margin-bottom: 30px;
}

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

.srp-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.srp-form-field input[type="text"],
.srp-form-field input[type="email"],
.srp-form-field input[type="password"],
.srp-form-field input[type="number"],
.srp-form-field input[type="date"],
.srp-form-field select,
.srp-form-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.srp-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.srp-form-row .srp-form-field {
    flex: 1;
    margin-bottom: 0;
}

.srp-form-actions {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.srp-form-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.srp-form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
}

.srp-description {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Ratings */
.srp-rating-input {
    display: flex;
    align-items: center;
    font-size: 24px;
}

.srp-rating-star {
    cursor: pointer;
    color: #ccc;
    margin-right: 2px;
}

.srp-rating-filled {
    color: #ffc107;
}

.srp-rating-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.srp-rating-label {
    flex: 0 0 120px;
}

.srp-rating-bar-container {
    flex: 1;
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    margin: 0 10px;
}

.srp-rating-bar {
    height: 100%;
    background-color: #ffc107;
    border-radius: 5px;
}

.srp-rating-value {
    flex: 0 0 30px;
    text-align: right;
}

.srp-rating-stars {
    display: inline-flex;
    color: #ffc107;
    font-size: 18px;
    margin-right: 5px;
}

/* Document List */
.srp-documents-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.srp-documents-table th,
.srp-documents-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.srp-documents-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.srp-document-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.srp-document-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.srp-document-type {
    font-weight: bold;
    color: #555;
    margin-right: 10px;
}

.srp-status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.srp-status-verified {
    background-color: #d4edda;
    color: #155724;
}

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

.srp-status-rejected {
    background-color: #f8d7da;
    color: #721c24;
}

.srp-status-published {
    background-color: #d4edda;
    color: #155724;
}

.srp-status-active {
    background-color: #d4edda;
    color: #155724;
}

.srp-status-cancelled,
.srp-status-expired,
.srp-status-inactive {
    background-color: #f8d7da;
    color: #721c24;
}

/* Review Form */
.srp-review-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.srp-review-form-container h2 {
    margin-bottom: 30px;
}

/* User Dashboard */
.srp-user-dashboard {
    max-width: 1000px;
    margin: 0 auto;
}

.srp-dashboard-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.srp-user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.srp-user-avatar img {
    border-radius: 50%;
}

.srp-user-details {
    flex: 1;
}

.srp-user-details h2 {
    margin: 0 0 5px 0;
}

.srp-user-role {
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.srp-subscription-status,
.srp-location-access-status {
    flex: 0 0 250px;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.srp-subscription-status h3,
.srp-location-access-status h3 {
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.srp-status-active,
.srp-status-inactive {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

.srp-location-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srp-location-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-location-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.srp-location-name {
    display: block;
    font-weight: bold;
}

.srp-location-expiry {
    display: block;
    font-size: 12px;
    color: #666;
}

.srp-dashboard-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.srp-dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.srp-dashboard-section {
    margin-bottom: 30px;
}

.srp-dashboard-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-review-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.srp-review-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.srp-review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.srp-review-author,
.srp-review-for,
.srp-reviewed-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.srp-review-title {
    margin: 0 0 10px 0;
}

.srp-review-date {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.srp-review-status {
    margin-left: 10px;
}

.srp-review-excerpt {
    margin-bottom: 15px;
}

.srp-review-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}

.srp-response-form {
    margin-top: 15px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.srp-response-form h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.srp-response-form textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    margin-bottom: 10px;
}

.srp-response-submitted {
    color: #155724;
    font-style: italic;
}

.srp-charter-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.srp-charter-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #eee;
}

.srp-charter-title {
    margin: 0 0 10px 0;
}

.srp-charter-details {
    margin-bottom: 15px;
}

.srp-charter-boat,
.srp-charter-location,
.srp-charter-dates {
    margin-bottom: 5px;
}

.srp-charter-actions {
    display: flex;
    gap: 10px;
}

.srp-view-all {
    text-align: right;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .srp-dashboard-content {
        grid-template-columns: 1fr;
    }
    
    .srp-dashboard-header {
        flex-direction: column;
    }
    
    .srp-subscription-status,
    .srp-location-access-status {
        flex: 1;
        width: 100%;
    }
}

/* Single Review Display */
.srp-review-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.srp-review-meta {
    margin-bottom: 20px;
}

.srp-review-meta > div {
    margin-bottom: 10px;
}

.srp-review-author,
.srp-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.srp-author-info,
.srp-user-details {
    display: flex;
    flex-direction: column;
}

.srp-author-name,
.srp-user-name {
    font-weight: bold;
}

.srp-author-role,
.srp-user-role {
    color: #666;
    font-size: 14px;
}

.srp-rating-overall {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.srp-rating-details {
    margin-top: 15px;
}

.srp-review-text {
    margin-bottom: 30px;
    line-height: 1.6;
}

.srp-review-photos {
    margin-bottom: 30px;
}

.srp-review-photos h3 {
    margin-bottom: 15px;
}

.srp-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.srp-photo-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.2s ease-in-out;
}

.srp-photo-item img:hover {
    transform: scale(1.05);
}

.srp-review-responses {
    margin-bottom: 30px;
}

.srp-review-responses h3 {
    margin-bottom: 15px;
}

.srp-response-item {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 5px;
    margin-bottom: 15px;
}

.srp-response-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.srp-response-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.srp-response-date {
    font-size: 12px;
    color: #666;
}

.srp-response-content {
    line-height: 1.6;
}

.srp-response-form-container {
    margin-top: 30px;
}

.srp-response-form-container h3 {
    margin-bottom: 15px;
}

/* Reviews Archive */
.srp-reviews-archive {
    max-width: 800px;
    margin: 0 auto;
}

.srp-reviews-header {
    margin-bottom: 30px;
}

.srp-reviews-header h1 {
    margin-bottom: 20px;
}

.srp-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.srp-filter-item {
    flex: 1;
    min-width: 180px;
}

.srp-filter-item label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.srp-filter-item select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.srp-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.srp-load-more {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Subscription Form */
.srp-subscription-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.srp-subscription-form-container h2 {
    margin-bottom: 30px;
}

.srp-subscription-active {
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-radius: 5px;
    margin-bottom: 30px;
}

.srp-subscription-details {
    margin-top: 15px;
}

.srp-subscription-actions {
    margin-top: 20px;
}

.srp-subscription-plans {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.srp-plan {
    flex: 1;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    text-align: center;
    position: relative;
}

.srp-plan-recommended {
    border-color: #ffc107;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.srp-plan-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #ffc107;
    color: #000;
    padding: 5px 10px;
    border-radius: 3px;
    font-weight: bold;
    font-size: 12px;
}

.srp-plan h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.srp-plan-price {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
}

.srp-plan-description {
    margin-bottom: 20px;
    color: #666;
}

.srp-payment-form {
    margin-top: 30px;
}

.srp-payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.srp-payment-method {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    flex: 1;
}

.srp-payment-method label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.srp-payment-details {
    margin-bottom: 30px;
}

.srp-bank-info {
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
    margin-bottom: 20px;
}

.srp-order-summary {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
}

.srp-order-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-order-details {
    display: flex;
    justify-content: space-between;
}

/* Location Access Form */
.srp-location-access-form-container {
    max-width: 800px;
    margin: 0 auto;
}

.srp-location-access-form-container h2 {
    margin-bottom: 30px;
}

.srp-current-access {
    margin-bottom: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.srp-current-access h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.srp-access-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.srp-access-list li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.srp-access-list li:last-child {
    border-bottom: none;
}

.srp-access-expiry {
    color: #666;
    font-size: 14px;
}

.srp-location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.srp-location-item {
    padding: 20px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
}

.srp-location-item h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-location-access-plans {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.srp-access-plan {
    padding: 15px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.srp-access-plan h5 {
    margin: 0;
}

.srp-plan-price {
    font-weight: bold;
}

.srp-location-payment-form {
    margin-top: 30px;
}

.srp-location-order-summary {
    padding: 15px;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
}

.srp-location-order-summary h4 {
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.srp-location-order-details > div {
    margin-bottom: 10px;
}

.srp-location-name {
    font-weight: bold;
}

/* Access Denied */
.srp-access-denied {
    max-width: 600px;
    margin: 50px auto;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.srp-access-denied-icon {
    margin-bottom: 20px;
}

.srp-access-denied-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #dc3545;
}

.srp-access-denied h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #dc3545;
}

.srp-access-denied p {
    margin-bottom: 20px;
}

.srp-access-denied-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.srp-access-denied-content {
    max-width: 500px;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.srp-access-denied-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #dc3545;
}

.srp-close-popup {
    margin-top: 20px;
    padding: 8px 15px;
    background-color: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.srp-close-popup:hover {
    background-color: #005a87;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .srp-subscription-plans {
        flex-direction: column;
    }
    
    .srp-payment-methods {
        flex-direction: column;
    }
    
    .srp-location-grid {
        grid-template-columns: 1fr;
    }
    
    .srp-review-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .srp-form-row {
        flex-direction: column;
        gap: 20px;
    }
}