/**
 * Public CSS for Nant-y-Big Residents Area plugin
 */

/* Login Form Styles */
.nantybig-login-form {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nantybig-login-form h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.nantybig-login-form .form-group {
    margin-bottom: 1.5rem;
}

.nantybig-login-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #555;
}

.nantybig-login-form input[type="email"],
.nantybig-login-form input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.nantybig-login-form input[type="email"]:focus,
.nantybig-login-form input[type="password"]:focus {
    outline: none;
    border-color: #007cba;
}

.nantybig-login-form .btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.nantybig-login-form .btn-primary {
    background-color: #007cba;
    color: white;
    width: 100%;
}

.nantybig-login-form .btn-primary:hover {
    background-color: #005a87;
}

.nantybig-login-form .login-links {
    text-align: center;
    margin-top: 1rem;
}

.nantybig-login-form .login-links a {
    color: #007cba;
    text-decoration: none;
}

.nantybig-login-form .login-links a:hover {
    text-decoration: underline;
}

/* Login Error Messages */
.login-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    font-weight: 600;
}

/* Logged In Message */
.nantybig-logged-in {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nantybig-logged-in h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #333;
}

.nantybig-logged-in p {
    text-align: center;
    margin-bottom: 2rem;
    color: #666;
}

.member-navigation {
    text-align: center;
}

.member-navigation h3 {
    margin-bottom: 1rem;
    color: #333;
}

.member-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.member-navigation li {
    margin-bottom: 0.5rem;
}

.member-navigation a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.member-navigation a:hover {
    background-color: #005a87;
}

/* Access Denied Message */
.access-denied {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2rem;
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    text-align: center;
}

.access-denied h2 {
    margin-bottom: 1rem;
    color: #721c24;
}

.access-denied p {
    margin-bottom: 1rem;
}

.access-denied a {
    color: #721c24;
    text-decoration: underline;
}

/* Member Area Navigation */
.member-area-nav {
    background: #f8f9fa;
    padding: 1rem 0;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 2rem;
}

.member-area-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.member-area-nav li {
    margin: 0;
}

.member-area-nav a {
    display: block;
    padding: 0.5rem 1rem;
    background: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.member-area-nav a:hover {
    background-color: #005a87;
}

.member-area-nav .current-page {
    background-color: #005a87;
}

/* Member Info Widget */
.member-info-widget {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.member-info-widget h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
}

.member-info-widget p {
    margin-bottom: 0.5rem;
    color: #666;
}

.member-info-widget strong {
    color: #333;
}

/* Member Type Badge */
.member-type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.member-type-badge.static {
    background: #e3f2fd;
    color: #1565c0;
}

.member-type-badge.seasonal {
    background: #f3e5f5;
    color: #7b1fa2;
}

.member-type-badge.camping {
    background: #e8f5e8;
    color: #2e7d32;
}

/* Page Access Info */
.page-access-info {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
}

.page-access-info h4 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.page-access-info p {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nantybig-login-form,
    .nantybig-logged-in,
    .access-denied {
        margin: 1rem;
        padding: 1rem;
    }
    
    .member-area-nav ul {
        flex-direction: column;
        align-items: center;
    }
    
    .member-area-nav a {
        width: 200px;
        text-align: center;
    }
    
    .member-info-widget {
        margin: 1rem;
        padding: 1rem;
    }
}

/* Custom Color Support */
.nantybig-page {
    --nantybig-primary: #007cba;
    --nantybig-primary-hover: #005a87;
}

.nantybig-page .btn-primary,
.nantybig-page .member-navigation a,
.nantybig-page .member-area-nav a {
    background-color: var(--nantybig-primary);
}

.nantybig-page .btn-primary:hover,
.nantybig-page .member-navigation a:hover,
.nantybig-page .member-area-nav a:hover {
    background-color: var(--nantybig-primary-hover);
}

.nantybig-page input:focus {
    border-color: var(--nantybig-primary);
}

.nantybig-page .member-area-nav .current-page {
    background-color: var(--nantybig-primary-hover);
}

/* Beach Access Status Styles */
.nantybig-beach-access-status {
    max-width: 500px;
    margin: 2rem auto;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ddd;
}

.nantybig-beach-access-status.beach-status-open {
    border-left-color: #46b450;
}

.nantybig-beach-access-status.beach-status-closed {
    border-left-color: #dc3232;
}

.nantybig-beach-access-status.beach-status-restricted {
    border-left-color: #ffb900;
}

.beach-status-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.beach-status-indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.beach-status-indicator.status-green {
    background-color: #46b450;
}

.beach-status-indicator.status-red {
    background-color: #dc3232;
}

.beach-status-indicator.status-orange {
    background-color: #ffb900;
}

.beach-status-title {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
}

.beach-status-content {
    padding-left: 26px;
}

.beach-status-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.beach-status-label.status-green {
    color: #2d5a2d;
}

.beach-status-label.status-red {
    color: #721c24;
}

.beach-status-label.status-orange {
    color: #856404;
}

.beach-status-description {
    margin-bottom: 1rem;
}

.beach-status-description p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

.beach-status-updated {
    color: #999;
    font-size: 0.875rem;
}

/* Compact Style */
.nantybig-beach-access-status.style-compact {
    max-width: 300px;
    padding: 1rem;
}

.nantybig-beach-access-status.style-compact .beach-status-title {
    font-size: 1rem;
}

.nantybig-beach-access-status.style-compact .beach-status-label {
    font-size: 1.2rem;
}

.nantybig-beach-access-status.style-compact .beach-status-content {
    padding-left: 20px;
}

/* Responsive Design for Beach Access */
@media (max-width: 768px) {
    .nantybig-beach-access-status {
        margin: 1rem;
        padding: 1rem;
    }
    
    .beach-status-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }
    
    .beach-status-indicator {
        margin-bottom: 0.5rem;
    }
    
    .beach-status-content {
        padding-left: 0;
    }
}

/* Visual Style for Beach Access */
.nantybig-beach-access-status.style-visual {
    max-width: 600px;
    margin: 2rem auto;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    border: none;
    overflow: hidden;
    position: relative;
}

.beach-visual-container {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 140px;
}

.beach-visual-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.beach-visual-icon:hover {
    transform: scale(1.05);
}

.beach-visual-icon.status-green {
    background: linear-gradient(135deg, #46b450 0%, #28a745 100%);
    color: white;
}

.beach-visual-icon.status-red {
    background: linear-gradient(135deg, #dc3232 0%, #c82333 100%);
    color: white;
}

.beach-visual-icon.status-orange {
    background: linear-gradient(135deg, #ffb900 0%, #ff8c00 100%);
    color: white;
}

.beach-visual-icon svg {
    width: 40px;
    height: 40px;
}

.beach-visual-content {
    width: 100%;
    text-align: center;
    padding: 0;
}

.beach-visual-title {
    font-size: 1.2rem;
    font-weight: 500;
    color: #6c757d;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.beach-visual-status {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.beach-visual-status.status-green {
    color: #28a745;
}

.beach-visual-status.status-red {
    color: #dc3232;
}

.beach-visual-status.status-orange {
    color: #ff8c00;
}

.beach-visual-message {
    font-size: 1.1rem;
    color: #495057;
    font-weight: 500;
    font-style: italic;
}

.beach-visual-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    overflow: hidden;
}

.beach-visual-wave svg {
    width: 100%;
    height: 100%;
}

.beach-visual-wave.status-green path {
    fill: rgba(40, 167, 69, 0.2);
}

.beach-visual-wave.status-red path {
    fill: rgba(220, 50, 50, 0.2);
}

.beach-visual-wave.status-orange path {
    fill: rgba(255, 140, 0, 0.2);
}

.beach-visual-updated {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.875rem;
    color: #6c757d;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Visual Style Status-specific backgrounds */
.nantybig-beach-access-status.style-visual.beach-status-open {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
}

.nantybig-beach-access-status.style-visual.beach-status-closed {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
}

.nantybig-beach-access-status.style-visual.beach-status-restricted {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
}

/* Animation for visual style */
@keyframes pulseGlow {
    0% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }
    50% { box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); }
    100% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); }
}

.nantybig-beach-access-status.style-visual {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Responsive Design for Visual Style */
@media (max-width: 768px) {
    .nantybig-beach-access-status.style-visual {
        margin: 1rem;
        max-width: none;
    }
    
    .beach-visual-container {
        padding: 1.5rem;
        min-height: auto;
    }
    
    .beach-visual-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .beach-visual-icon svg {
        width: 35px;
        height: 35px;
    }
    
    .beach-visual-status {
        font-size: 2rem;
    }
    
    .beach-visual-title {
        font-size: 1rem;
    }
    
    .beach-visual-message {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .beach-visual-status {
        font-size: 1.75rem;
    }
    
    .beach-visual-icon {
        width: 60px;
        height: 60px;
    }
    
    .beach-visual-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* Booking Form Link Styles */
.nantybig-booking-link {
    margin: 1rem 0;
}

.nantybig-booking-link .btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #007cba;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nantybig-booking-link .btn:hover {
    background-color: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nantybig-booking-link .btn:active {
    transform: translateY(0);
}

/* Booking Notice Styles */
.nantybig-booking-notice {
    background: #ffffff;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #ddd;
}

.nantybig-booking-notice.booking-available {
    border-left-color: #46b450;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e8 100%);
}

.nantybig-booking-notice.booking-unavailable {
    border-left-color: #dc3232;
    background: linear-gradient(135deg, #fff8f8 0%, #f8d7da 100%);
}

.nantybig-booking-notice h4 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #333;
    font-size: 1.1rem;
}

.nantybig-booking-notice .booking-available {
    color: #2d5a2d;
    font-weight: 600;
    margin-bottom: 1rem;
}

.nantybig-booking-notice .booking-unavailable {
    color: #721c24;
    font-weight: 600;
    margin-bottom: 0;
}

.nantybig-booking-notice .status-icon {
    font-weight: 800;
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.nantybig-booking-notice .btn {
    background-color: #28a745;
    border-color: #28a745;
}

.nantybig-booking-notice .btn:hover {
    background-color: #218838;
    border-color: #1e7e34;
}

/* Booking Access Denied Notice */
.nantybig-booking-access-denied {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nantybig-booking-access-denied h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #721c24;
    font-size: 1.5rem;
}

.nantybig-booking-access-denied p {
    margin-bottom: 0;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* Responsive Design for Booking Elements */
@media (max-width: 768px) {
    .nantybig-booking-notice {
        margin: 1rem;
        padding: 1rem;
    }
    
    .nantybig-booking-link .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .nantybig-booking-access-denied {
        margin: 1rem;
        padding: 1.5rem;
    }
}