/* WML Workshops Frontend Styles */

/* Workshop Title Header */
.wml-workshop-title-header {
    margin: 10px 0 30px 0;
    padding: 0 0 20px 0;
    border-bottom: 3px solid #d7d4cb;
}

.wml-workshop-main-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Workshop Details */

.brxe-section {
    margin-top:0px !important
}

body .wml-workshop-details {
    border-radius: 0px;
    padding: 0px;
    margin: 30px 0px;
    box-shadow:none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body .wml-workshop-info {
    padding: 0px;
    border-radius: 6px;
    margin-bottom: 25px;
    box-shadow: none;
    border:none;
}

.wml-workshop-info h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    border-bottom: 2px solid #d7d4cb;
    padding-bottom: 10px;
}

.wml-workshop-meta {
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.wml-workshop-meta:last-child {
    border-bottom: none;
}

.wml-workshop-meta strong {
    color: #555;
    font-weight: 600;
    display: inline-block;
    min-width: 120px;
}

.wml-workshop-requirements,
.wml-workshop-instructions {
    background: #fff;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.wml-workshop-requirements h4,
.wml-workshop-instructions h4 {
    margin-top: 0;
    color: #333;
}

/* Workshop Dates */
body .wml-workshop-dates {
    padding: 0px;
    border-radius: 0px;
}

.wml-workshop-dates h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.4em;
    border-bottom: 2px solid #d7d4cb;
    padding-bottom: 10px;
}

.wml-dates-list {
    display: grid;
    gap: 15px;
}

.wml-date-item {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.wml-date-item:hover {
    border-color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,115,170,0.1);
}

.wml-date-info {
    flex: 1;
}

.wml-date-info strong {
    display: block;
    font-size: 1.1em;
    color: #333;
    margin-bottom: 5px;
}

.wml-duration {
    color: #666;
    font-size: 0.9em;
}

.wml-availability {
    margin-top: 8px;
    font-size: 0.9em;
    color: #28a745;
}

.wml-availability .wml-full {
    color: #dc3545;
    font-weight: 600;
}

.wml-date-actions {
    margin-left: 20px;
}

/* Buttons */
.button,
.wml-add-to-cart,
.wml-register-btn {
    background: #4d4f5d;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.button:hover,
.wml-add-to-cart:hover,
.wml-register-btn:hover {
    background: #4d4f5d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgb(12 46 62 / 30%);
}

.button:disabled,
.wml-add-to-cart:disabled,
.wml-register-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button.added,
.wml-add-to-cart.added {
    background: #28a745;
}

.button.registered,
.wml-register-btn.registered {
    background: #6c757d;
}

/* Modal Styles */
.wml-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.wml-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

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

.wml-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    line-height: 1;
}

.wml-close:hover {
    color: #333;
}

.wml-modal h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3em;
}

/* Form Styles */
.wml-form-group {
    margin-bottom: 20px;
}

.wml-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

.wml-form-group input,
.wml-form-group textarea,
.wml-form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.wml-form-group input:focus,
.wml-form-group textarea:focus,
.wml-form-group select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

.wml-form-group input.error,
.wml-form-group textarea.error,
.wml-form-group select.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220,53,69,0.2);
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

/* Workshop List */
.wml-workshop-list {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.wml-workshop-item {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.wml-workshop-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-color: #0073aa;
}

.wml-workshop-item h3 {
    margin-top: 0;
    margin-bottom: 15px;
}

.wml-workshop-item h3 a {
    color: #333;
    text-decoration: none;
}

.wml-workshop-item h3 a:hover {
    color: #0073aa;
}

.wml-workshop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 15px 0;
    padding: 5px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.wml-workshop-meta span {
    font-size: 0.9em;
    color: #666;
}

.wml-instructor:before {
    content: "👨‍🏫 ";
}

.wml-price:before {
    content: "💰 ";
}

.wml-next-date:before {
    content: "📅 ";
}

.wml-workshop-actions {
    margin-top: 20px;
}

/* Notifications */
.wml-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    padding: 15px 20px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    cursor: pointer;
    animation: notificationSlideIn 0.3s ease;
    max-width: 400px;
}

@keyframes notificationSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.wml-notification-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.wml-notification-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.wml-notification-info {
    background: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Date Options */
.wml-date-option {
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.wml-date-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-weight: normal;
}

.wml-date-option input[type="radio"] {
    margin-right: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wml-workshop-title-header {
        margin: 20px 0;
        padding: 0 0 15px 0;
    }
    
    .wml-workshop-main-title {
        font-size: 1.8em;
    }
    
    .wml-workshop-details {
        padding: 20px;
    }
    
    .wml-date-item {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .wml-date-actions {
        margin-left: 0;
        width: 100%;
    }
    
    .wml-date-actions .button,
    .wml-date-actions .wml-add-to-cart,
    .wml-date-actions .wml-register-btn {
        width: 100%;
    }
    
    .wml-modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
    
    .wml-workshop-meta {
        flex-direction: column;
        gap: 8px;
    }
    
    .wml-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wml-workshop-title-header {
        margin: 15px 0;
        padding: 0 0 12px 0;
    }
    
    .wml-workshop-main-title {
        font-size: 1.5em;
    }
    
    .wml-workshop-details {
        margin: 20px 0;
        padding: 15px;
    }
    
    .wml-workshop-info,
    .wml-workshop-dates {
        padding: 15px;
    }
    
    .wml-modal-content {
        margin: 5% auto;
        padding: 15px;
    }
}

/* Print Styles */
@media print {
    .wml-modal,
    .wml-notification,
    .wml-date-actions {
        display: none !important;
    }
    
    .wml-workshop-details {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .wml-workshop-item {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wml-workshop-main-title {
        color: #e0e0e0;
    }
    
    .wml-workshop-title-header {
        border-bottom-color: #0073aa;
    }
    
    .wml-workshop-details {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #333;
    }
    
    .wml-workshop-info,
    .wml-workshop-dates,
    .wml-workshop-requirements,
    .wml-workshop-instructions {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .wml-date-item {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .wml-modal-content {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .wml-form-group input,
    .wml-form-group textarea,
    .wml-form-group select {
        background: #1a1a1a;
        color: #e0e0e0;
        border-color: #444;
    }
}

/* Accessibility */
.wml-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus styles for keyboard navigation */
.wml-add-to-cart:focus,
.wml-register-btn:focus,
.button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .wml-workshop-details {
        border: 2px solid;
    }
    
    .wml-date-item {
        border: 2px solid;
    }
    
    .button,
    .wml-add-to-cart,
    .wml-register-btn {
        border: 2px solid;
    }
}

/* Waiting List Styles */
.wml-waiting-list-btn {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.wml-waiting-list-btn:hover {
    background: #e68900;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.3);
}

.wml-waiting-list-btn:disabled,
.wml-waiting-list-btn.waiting-list-joined {
    background: #6c757d;
    color: #fff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.wml-waiting-list-count {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    font-style: italic;
}

/* Waiting List Modal */
#wml-waiting-list-modal .wml-modal-content {
    max-width: 500px;
    width: 95%;
}

#wml-waiting-list-modal .wml-waiting-list-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
}

#wml-waiting-list-modal .wml-waiting-list-info p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.5;
}

#wml-waiting-list-modal .wml-form-group {
    margin-bottom: 20px;
}

#wml-waiting-list-modal .wml-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

#wml-waiting-list-modal .wml-form-group .required {
    color: #dc3545;
}

#wml-waiting-list-modal .wml-form-group .optional {
    color: #6c757d;
    font-weight: normal;
}

#wml-waiting-list-modal .wml-form-group input,
#wml-waiting-list-modal .wml-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#wml-waiting-list-modal .wml-form-group input:focus,
#wml-waiting-list-modal .wml-form-group textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

#wml-waiting-list-modal .wml-form-group input.error,
#wml-waiting-list-modal .wml-form-group textarea.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

#wml-waiting-list-modal .wml-form-group .description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

#wml-waiting-list-modal .wml-form-group .error-message {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
}

#wml-waiting-list-modal .wml-waiting-list-terms {
    background: #e9ecef;
    border-left: 4px solid #0073aa;
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 4px 4px 0;
}

#wml-waiting-list-modal .wml-waiting-list-terms p {
    margin: 0;
    color: #495057;
    line-height: 1.5;
}

#wml-waiting-list-modal .wml-form-group button {
    margin-right: 10px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

#wml-waiting-list-modal .wml-form-group .button-primary {
    background: #0073aa;
    color: white;
}

#wml-waiting-list-modal .wml-form-group .button-primary:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 115, 170, 0.3);
}

#wml-waiting-list-modal .wml-form-group .button-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#wml-waiting-list-modal .wml-waiting-cancel {
    background: #6c757d;
    color: white;
}

#wml-waiting-list-modal .wml-waiting-cancel:hover {
    background: #545b62;
}

/* Workshop Date Actions - Enhanced for Waiting List */
.wml-date-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.wml-date-actions button {
    min-width: 140px;
}

/* Waiting List Info in Workshop Details */
.wml-workshop-details .wml-waiting-list-count {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    padding: 8px 12px;
    margin-top: 8px;
    color: #856404;
    font-size: 12px;
    text-align: center;
}

/* Notifications for waiting list */
.wml-notification.waiting-list-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.wml-notification.waiting-list-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive Design for Waiting List */
@media (max-width: 768px) {
    #wml-waiting-list-modal .wml-modal-content {
        width: 95%;
        max-width: none;
        margin: 20px auto;
    }
    
    #wml-waiting-list-modal .wml-form-group button {
        width: 100%;
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .wml-date-actions {
        width: 100%;
    }
    
    .wml-date-actions button {
        width: 100%;
        min-width: auto;
    }
    
    .wml-waiting-list-btn {
        font-size: 13px;
        padding: 8px 16px;
    }
}

/* Workshop Media Section (Featured Image + Gallery) */

.brxe-post-content > *{
    float:right;
    width:67%;
}

.wml-workshop-media {
    padding: 0;
    margin-right:3%;
    float:left;
    width:30%;
}

@media screen and (max-width: 600px) {
    .brxe-post-content > *,
    .wml-workshop-media {
        float:none;
        width:100%;
    }
}

.wml-workshop-media .wml-workshop-featured-image {
    margin-bottom: 25px;
    max-width: 800px;
}

.wml-workshop-media .wml-workshop-featured-image img {
    width: 100%;
    max-height: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: block;
}

.wml-workshop-media .wml-workshop-gallery {
    margin: 0;
    padding: 20px 0 0 0;
    border-top: none;
}

/* Responsive design for media section */
@media (max-width: 768px) {
    .wml-workshop-media {
        margin: 20px 0;
    }
    
    .wml-workshop-media .wml-workshop-featured-image {
        margin-bottom: 20px;
        max-width: 100%;
    }
    
    .wml-workshop-media .wml-workshop-featured-image img {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .wml-workshop-media .wml-workshop-featured-image img {
        max-height: 250px;
    }
}

/* Workshop Gallery Styles */
.wml-workshop-gallery {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
}

.wml-workshop-gallery h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #333;
}

.wml-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.wml-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.wml-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.wml-gallery-link {
    display: block;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

.wml-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.wml-gallery-item:hover .wml-gallery-image {
    transform: scale(1.05);
}



/* Gallery responsive design */
@media (max-width: 768px) {
    .wml-gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .wml-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
}

 