/* 
 * Frontend Styles for Workshops Manager
 */

/* Container */
.wm-workshops-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Filters */
.wm-filters {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.wm-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: center;
}

.wm-filter-item {
    flex: 1;
    min-width: 200px;
}

.wm-filter-item input[type="text"],
.wm-filter-item input[type="date"],
.wm-filter-item select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

/* Section Header */
.wm-section-header {
    margin-bottom: 30px;
}

.wm-section-title {
    font-size: 36px;
    font-weight: bold;
    color: #000;
    margin: 0;
    text-transform: uppercase;
}

/* Workshop Grid */
.wm-workshops-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

/* Workshop Card */
.wm-workshop-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wm-workshop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.wm-workshop-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wm-workshop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wm-workshop-image-placeholder {
    background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.wm-placeholder-content {
    font-size: 48px;
    color: rgba(255,255,255,0.5);
}

.wm-workshop-content {
    padding: 20px;
}

.wm-workshop-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.wm-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.wm-badge-upcoming {
    background: #4CAF50;
    color: white;
}

.wm-badge-past {
    background: #9E9E9E;
    color: white;
}

.wm-badge-reading {
    background: #2196F3;
    color: white;
}

.wm-badge-recording {
    background: #FF9800;
    color: white;
}

.wm-workshop-title {
    font-size: 22px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
}

.wm-workshop-instructor {
    font-size: 14px;
    margin: 0 0 10px 0;
    font-style: italic;
}

.wm-workshop-summary {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 15px;
}

.wm-workshop-details {
    margin: 15px 0;
}

.wm-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #555;
}

.wm-detail-item .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.wm-workshop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

/* Buttons */
.wm-btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.wm-btn-primary {
    background: #FF4500;
    color: white;
}

.wm-btn-primary:hover {
    background: #E03E00;
    color: white;
}

.wm-btn-secondary {
    background: #555;
    color: white;
}

.wm-btn-secondary:hover {
    background: #333;
    color: white;
}

.wm-btn-link {
    background: transparent;
    color: #FF4500;
    padding: 5px 10px;
}

/* Forms */
.wm-form {
    max-width: 700px;
    margin: 0 auto;
}

.wm-form-header {
    margin-bottom: 30px;
}

.wm-form-header h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.wm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.wm-form-group input[type="text"],
.wm-form-group input[type="email"],
.wm-form-group input[type="number"],
.wm-form-group input[type="url"],
.wm-form-group select,
.wm-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.wm-form-group textarea {
    resize: vertical;
}

.wm-help-text {
    font-size: 12px;
    color: #666;
    margin: 5px 0 0 0;
}

.wm-checkbox-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
}

.wm-checkbox-group input[type="checkbox"] {
    margin-top: 3px;
}

.wm-file-upload {
    position: relative;
}

.wm-file-upload input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.wm-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wm-file-label:hover {
    border-color: #FF4500;
    background: #fff;
}

.wm-file-label .dashicons {
    font-size: 24px;
    margin-right: 10px;
}

.wm-browse {
    color: #FF4500;
    text-decoration: underline;
}

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

.wm-form-actions button {
    flex: 1;
}

.wm-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

.wm-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wm-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.wm-form-note {
    margin-top: 20px;
    text-align: center;
    color: #666;
}

/* Loading */
.wm-loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

/* No Results */
.wm-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Notice */
.wm-notice {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.wm-notice-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Donation Section */
.wm-donation-section {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.wm-donation-section h3 {
    margin-top: 0;
}

.wm-donation-instructions {
    margin: 15px 0;
}

.wm-donation-instructions ul {
    list-style: disc;
    padding-left: 20px;
}

.wm-donation-instructions li {
    margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .wm-workshops-grid {
        grid-template-columns: 1fr;
    }
    
    .wm-filter-row {
        flex-direction: column;
    }
    
    .wm-filter-item {
        width: 100%;
    }
    
    .wm-workshop-actions {
        flex-direction: column;
    }
    
    .wm-btn {
        width: 100%;
    }
}

/* Modal Styles */
.wm-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.wm-modal-close {
    color: #aaa;
    float: right;
    font-size: 32px;
    font-weight: bold;
    line-height: 1;
    padding: 15px;
    cursor: pointer;
    background: none;
    border: none;
}

.wm-modal-close:hover,
.wm-modal-close:focus {
    color: #000;
}

.wm-modal-body {
    padding: 30px;
}

.wm-modal-body h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.wm-workshop-info {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
}

.wm-workshop-info p {
    margin: 8px 0;
    font-size: 14px;
}

.wm-loading-signup {
    text-align: center;
    padding: 40px 20px;
    color: #666;
    font-size: 16px;
}

.wm-success-message {
    text-align: center;
    padding: 20px;
}

.wm-success-message h3 {
    color: #4CAF50;
    font-size: 24px;
    margin-bottom: 15px;
}

.wm-success-message p {
    color: #666;
    margin-bottom: 20px;
}

.wm-signup-modal-content .wm-form-row {
    margin-bottom: 20px;
}

.wm-signup-modal-content .wm-form-actions {
    margin-top: 30px;
    text-align: center;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .wm-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .wm-modal-body {
        padding: 20px;
    }
}

/* Signup Page Styles */
.wm-signup-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.wm-workshop-header {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 40px;
}

.wm-workshop-header h1 {
    margin-top: 0;
    margin-bottom: 25px;
    color: #333;
    font-size: 32px;
}

.wm-workshop-details {
    margin-bottom: 25px;
}

.wm-detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
}

.wm-detail-icon {
    font-size: 20px;
    margin-right: 10px;
    min-width: 30px;
}

.wm-detail-label {
    font-weight: 600;
    margin-right: 8px;
    color: #555;
}

.wm-detail-value {
    color: #333;
}

.wm-workshop-description {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px solid #ddd;
}

.wm-workshop-description h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 20px;
}

.wm-workshop-description p {
    line-height: 1.6;
    color: #666;
}

.wm-signup-form-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.wm-signup-form-container h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
    font-size: 24px;
}

.wm-donation-info {
    background: #e3f2fd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 25px;
    border-left: 4px solid #2196F3;
}

.wm-donation-info p {
    margin: 0;
    color: #1976D2;
    font-size: 14px;
}

.wm-form-section-title {
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e0e0e0;
}

.wm-form-section-title h3 {
    margin: 0;
    color: #555;
    font-size: 18px;
    font-weight: 600;
}

.wm-field-help {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #777;
    font-style: italic;
}

.wm-error-message {
    background: #ffebee;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border-left: 4px solid #f44336;
}

.wm-error-message p {
    margin: 10px 0;
    color: #c62828;
    font-size: 16px;
}

.wm-error-message .wm-btn {
    margin-top: 15px;
}

/* Signup Page Responsive */
@media (max-width: 768px) {
    .wm-signup-page {
        padding: 10px;
    }
    
    .wm-workshop-header,
    .wm-signup-form-container {
        padding: 20px;
    }
    
    .wm-workshop-header h1 {
        font-size: 24px;
    }
    
    .wm-form-actions {
        flex-direction: column;
    }
    
    .wm-form-actions .wm-btn {
        width: 100%;
        margin: 5px 0;
    }
}
