/* Whats On Events - Dark Theme Integrated Dashboard & Form Styles */

:root {
    --woe-primary: #6366f1;
    --woe-primary-hover: #4f46e5;
    --woe-primary-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --woe-secondary: #0f172a;
    --woe-accent: #ec4899;
    --woe-bg-dark: #0b0f19;
    --woe-bg-surface: #151c2c;
    --woe-card-bg: #1e293b;
    --woe-input-bg: #0f172a;
    --woe-border: rgba(255, 255, 255, 0.1);
    --woe-border-hover: rgba(99, 102, 241, 0.4);
    --woe-text-light: #ffffff;
    --woe-text-muted: #94a3b8;
    --woe-radius-lg: 16px;
    --woe-radius-md: 10px;
    --woe-radius-sm: 6px;
    --woe-shadow-sm: 0 4px 12px rgba(0,0,0,0.2);
    --woe-shadow-md: 0 10px 25px rgba(0,0,0,0.3);
    --woe-shadow-lg: 0 15px 35px rgba(0,0,0,0.4);
}

.woe-dashboard-container,
.woe-auth-container,
.woe-dashboard-guest {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--woe-text-light);
    max-width: 1050px;
    margin: 30px auto;
    padding: 0 15px;
}

.woe-guest-notice {
    text-align: center;
    background: var(--woe-bg-surface);
    border: 1px solid var(--woe-border);
    padding: 30px 20px;
    border-radius: var(--woe-radius-lg);
    margin-bottom: 30px;
    box-shadow: var(--woe-shadow-md);
}

.woe-guest-notice h2 {
    margin: 0 0 8px 0;
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.woe-guest-notice p {
    color: var(--woe-text-muted);
    margin: 0;
    font-size: 1rem;
}

/* User Header Bar */
.woe-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #151c2c 0%, #0f172a 100%);
    border: 1px solid var(--woe-border);
    color: #ffffff;
    padding: 24px 30px;
    border-radius: var(--woe-radius-lg);
    box-shadow: var(--woe-shadow-md);
    margin-bottom: 24px;
}

.woe-welcome h2 {
    margin: 0 0 4px 0;
    font-size: 1.6rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
}

.woe-welcome p {
    margin: 0;
    color: var(--woe-text-muted);
    font-size: 0.95rem;
}

.woe-user-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.woe-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.woe-avatar img {
    border-radius: 50%;
    border: 2px solid var(--woe-primary);
}

.woe-user-name {
    color: #f8fafc;
    font-size: 0.9rem;
}

/* Tabs Navigation */
.woe-dash-tabs,
.woe-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--woe-border);
    padding-bottom: 2px;
}

.woe-dash-tab-btn,
.woe-tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    color: var(--woe-text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.woe-dash-tab-btn:hover,
.woe-tab-btn:hover {
    color: #ffffff;
}

.woe-dash-tab-btn.active,
.woe-tab-btn.active {
    color: var(--woe-primary);
    border-bottom-color: var(--woe-primary);
}

.woe-dash-panel,
.woe-tab-panel {
    display: none;
}

.woe-dash-panel.active,
.woe-tab-panel.active {
    display: block;
}

/* Auth Container */
.woe-auth-container {
    background: var(--woe-bg-surface);
    border-radius: var(--woe-radius-lg);
    box-shadow: var(--woe-shadow-lg);
    border: 1px solid var(--woe-border);
    padding: 32px;
    max-width: 480px;
}

/* Empty State */
.woe-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--woe-bg-surface);
    border-radius: var(--woe-radius-lg);
    border: 2px dashed var(--woe-border);
}

.woe-empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.woe-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.woe-empty-state p {
    color: var(--woe-text-muted);
    margin-bottom: 20px;
}

/* Events Grid */
.woe-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.woe-event-card {
    background: var(--woe-bg-surface);
    border-radius: var(--woe-radius-md);
    border: 1px solid var(--woe-border);
    overflow: hidden;
    box-shadow: var(--woe-shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.woe-event-card:hover {
    transform: translateY(-4px);
    border-color: var(--woe-border-hover);
    box-shadow: var(--woe-shadow-md);
}

.woe-card-media {
    position: relative;
    height: 180px;
    background: #0f172a;
}

.woe-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.woe-placeholder-img {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #94a3b8;
    font-weight: 600;
}

.woe-status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.woe-status-badge.status-publish { background: #10b981; color: #fff; }
.woe-status-badge.status-pending { background: #f59e0b; color: #fff; }
.woe-status-badge.status-draft { background: #64748b; color: #fff; }

.woe-category-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

.woe-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.woe-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #ffffff;
}

.woe-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--woe-text-muted);
    margin-bottom: 20px;
}

.woe-card-actions {
    margin-top: auto;
    display: flex;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid var(--woe-border);
}

/* Form Layout */
.woe-form-wrapper {
    background: var(--woe-bg-surface);
    border-radius: var(--woe-radius-lg);
    border: 1px solid var(--woe-border);
    padding: 32px;
    box-shadow: var(--woe-shadow-md);
}

.woe-form-wrapper h3 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 1.4rem;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

.woe-field-group {
    margin-bottom: 20px;
}

.woe-field-group label {
    display: block;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 8px;
    color: #f8fafc;
}

.woe-field-group label .required {
    color: #ec4899;
}

.woe-input,
.woe-textarea,
select.woe-input {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--woe-border);
    border-radius: var(--woe-radius-md);
    font-size: 0.95rem;
    background-color: var(--woe-input-bg);
    color: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

select.woe-input option {
    background-color: #0f172a;
    color: #ffffff;
}

.woe-input:focus,
.woe-textarea:focus,
select.woe-input:focus {
    outline: none;
    border-color: var(--woe-primary);
    background-color: #1e293b;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.25);
}

.woe-checkbox-group label {
    color: var(--woe-text-muted);
    font-weight: 400;
}

.woe-field-row {
    display: flex;
    gap: 16px;
}

.woe-col-6 {
    flex: 1;
}

/* Image Upload Dropzone */
.woe-image-upload-box {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: var(--woe-radius-md);
    background: var(--woe-input-bg);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease;
}

.woe-image-upload-box:hover {
    border-color: var(--woe-primary);
}

.woe-upload-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 8px;
}

.woe-upload-placeholder p {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #ffffff;
}

.woe-upload-hint {
    font-size: 0.8rem;
    color: var(--woe-text-muted);
}

.woe-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.woe-preview-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.woe-preview-container img {
    max-height: 220px;
    border-radius: var(--woe-radius-md);
    box-shadow: var(--woe-shadow-sm);
}

.woe-btn-remove-img {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Buttons */
.woe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border-radius: var(--woe-radius-md);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: all 0.2s ease;
}

.woe-btn-primary {
    background: var(--woe-primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35);
}

.woe-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
    color: #ffffff;
}

.woe-btn-secondary {
    background: #1e293b;
    color: #ffffff;
    border: 1px solid var(--woe-border);
}

.woe-btn-secondary:hover {
    background: #334155;
}

.woe-btn-outline {
    background: transparent;
    border: 1px solid var(--woe-border);
    color: #ffffff;
}

.woe-btn-outline:hover {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.25);
}

.woe-btn-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.woe-btn-danger:hover {
    background: #dc2626;
    color: #ffffff;
}

.woe-btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.woe-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.woe-btn-full {
    width: 100%;
}

/* Alerts */
.woe-alert {
    padding: 12px 16px;
    border-radius: var(--woe-radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.woe-alert-error {
    background-color: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.woe-alert-success {
    background-color: rgba(16, 185, 129, 0.15);
    color: #6ee7b7;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Cropper Modal Overlay */
.woe-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.woe-crop-modal-card {
    background: var(--woe-bg-surface);
    border: 1px solid var(--woe-border);
    border-radius: var(--woe-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    width: 100%;
    max-width: 750px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.woe-crop-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--woe-border);
}

.woe-crop-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}

.woe-crop-close {
    background: none;
    border: none;
    color: var(--woe-text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

.woe-crop-close:hover {
    color: #ffffff;
}

.woe-crop-container {
    padding: 20px;
    max-height: 480px;
    background: #0f172a;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.woe-crop-container img {
    max-width: 100%;
    max-height: 440px;
    display: block;
}

.woe-crop-modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--woe-border);
    background: var(--woe-bg-surface);
}

/* Responsiveness */
@media (max-width: 640px) {
    .woe-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .woe-field-row {
        flex-direction: column;
        gap: 0;
    }
}
