/* HomeSchool Hub V2 - Full Interface Styles */

/* Main Container */
#hshub-main-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* Calendar Bar */
#hshub-calendar-bar {
    background: #2c3e50;
    color: white;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #34495e;
}

.hshub-calendar-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.hshub-calendar-nav button {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

.hshub-calendar-nav button:hover {
    background: #2980b9;
}

.hshub-calendar-dates {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    max-width: 800px;
}

.hshub-calendar-date {
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #34495e;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.hshub-calendar-date:hover {
    background: #3498db;
}

.hshub-calendar-date.hshub-today {
    background: #e74c3c;
    font-weight: bold;
}

/* Main Content Layout */
#hshub-main-content {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar Styles */
.hshub-sidebar {
    width: 300px;
    background: #ecf0f1;
    border-right: 1px solid #bdc3c7;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.hshub-sidebar.hshub-left {
    order: 1;
}

.hshub-sidebar.hshub-right {
    order: 3;
    border-right: none;
    border-left: 1px solid #bdc3c7;
}

.hshub-sidebar-header {
    background: #34495e;
    color: white;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hshub-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
}

.hshub-sidebar-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hshub-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.hshub-filters-content,
.hshub-friends-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

/* Filter Styles */
.hshub-filter-group {
    margin-bottom: 20px;
}

.hshub-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.hshub-filter-group select,
.hshub-filter-group input {
    width: 100%;
    padding: 8px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
}

.hshub-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hshub-date-range span {
    color: #7f8c8d;
}

.hshub-apply-filters,
.hshub-clear-filters {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 10px;
}

.hshub-apply-filters {
    background: #27ae60;
    color: white;
}

.hshub-apply-filters:hover {
    background: #229954;
}

.hshub-clear-filters {
    background: #95a5a6;
    color: white;
}

.hshub-clear-filters:hover {
    background: #7f8c8d;
}

/* Avatar Upload Styles */
.hshub-avatar-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hshub-avatar-preview {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #3498db;
    transition: all 0.3s ease;
}

.hshub-avatar-preview:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

.hshub-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hshub-avatar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hshub-avatar-preview:hover .hshub-avatar-overlay {
    opacity: 1;
}

.hshub-avatar-help {
    font-size: 12px;
    color: #7f8c8d;
    margin: 0;
}

/* Registration Form Styles */
.hshub-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hshub-form-group {
    display: flex;
    flex-direction: column;
}

.hshub-form-group label {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 14px;
}

.hshub-form-group input[type="text"],
.hshub-form-group input[type="email"],
.hshub-form-group input[type="password"],
.hshub-form-group input[type="tel"],
.hshub-form-group input[type="date"],
.hshub-form-group select {
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.hshub-form-group input:focus,
.hshub-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

.hshub-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal !important;
    cursor: pointer;
    font-size: 13px !important;
}

.hshub-checkbox-label input[type="checkbox"] {
    width: auto !important;
    margin: 0;
}

.hshub-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hshub-radio-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hshub-radio-label:hover {
    background: #ecf0f1;
    border-color: #3498db;
}

.hshub-radio-label input[type="radio"] {
    margin: 0;
    margin-top: 2px;
}

.hshub-radio-text {
    flex: 1;
}

.hshub-radio-text strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 2px;
}

.hshub-radio-text small {
    color: #7f8c8d;
    font-size: 12px;
}

.hshub-register-btn,
.hshub-login-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hshub-register-btn:hover,
.hshub-login-btn:hover {
    background: #229954;
}

.hshub-login-link,
.hshub-register-link {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #7f8c8d;
}

.hshub-login-link a,
.hshub-register-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.hshub-login-link a:hover,
.hshub-register-link a:hover {
    text-decoration: underline;
}

.hshub-forgot-password {
    text-align: center;
    margin-top: 10px;
}

.hshub-forgot-password a {
    color: #7f8c8d;
    text-decoration: none;
    font-size: 13px;
}

.hshub-forgot-password a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Form Validation Styles */
.hshub-form-group input:invalid,
.hshub-form-group select:invalid {
    border-color: #e74c3c;
}

.hshub-form-group input:valid,
.hshub-form-group select:valid {
    border-color: #27ae60;
}

/* Success/Error Messages */
.hshub-form-message {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.hshub-form-message.success {
    background: #d5f4e6;
    color: #27ae60;
    border: 1px solid #27ae60;
}

.hshub-form-message.error {
    background: #fdf2f2;
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

.hshub-form-message.info {
    background: #e3f2fd;
    color: #3498db;
    border: 1px solid #3498db;
}

/* Map Container */
#hshub-map-container {
    flex: 1;
    order: 2;
    position: relative;
    background: #f0f0f0;
}

#hshub-map {
    width: 100%;
    height: 100%;
}

/* Map Legend */
.hshub-map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

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

.hshub-legend-item:last-child {
    margin-bottom: 0;
}

.hshub-legend-pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hshub-pin-green { background-color: #28a745; }
.hshub-pin-orange { background-color: #fd7e14; }
.hshub-pin-red { background-color: #dc3545; }
.hshub-pin-gray { background-color: #6c757d; }

/* Popup Styles */
.hshub-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.hshub-popup-content {
    background: white;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.hshub-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #7f8c8d;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.hshub-popup-close:hover {
    background: #ecf0f1;
    color: #2c3e50;
}

.hshub-popup-body {
    padding: 30px;
}

.hshub-popup-body h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
}

.hshub-popup-body p {
    margin: 0 0 10px 0;
    color: #7f8c8d;
}

.hshub-join-hub {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
}

.hshub-join-hub:hover {
    background: #2980b9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .hshub-sidebar {
        position: absolute;
        top: 0;
        height: 100%;
        z-index: 1500;
        transform: translateX(-100%);
    }
    
    .hshub-sidebar.hshub-right {
        right: 0;
        transform: translateX(100%);
    }
    
    .hshub-sidebar.active {
        transform: translateX(0);
    }
    
    #hshub-map-container {
        order: 1;
    }
    
    .hshub-calendar-dates {
        max-width: 300px;
    }
}

/* Login/Signup Splash Page */
.hshub-auth-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.hshub-auth-wrapper {
    width: 100%;
    max-width: 1200px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    min-height: 600px;
}

.hshub-auth-left {
    flex: 1;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 60px;
    display: flex;
    align-items: center;
}

.hshub-auth-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hshub-auth-content p {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hshub-features {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.hshub-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.hshub-feature-icon {
    font-size: 32px;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hshub-feature h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
}

.hshub-feature p {
    margin: 0;
    opacity: 0.8;
    font-size: 16px;
}

.hshub-auth-right {
    flex: 1;
    padding: 60px;
    display: flex;
    align-items: center;
}

.hshub-auth-forms {
    width: 100%;
}

.hshub-form-container {
    width: 100%;
}

.hshub-form-container h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 32px;
}

.hshub-form-container p {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.hshub-auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.hshub-form-row {
    display: flex;
    gap: 20px;
}

.hshub-form-row .hshub-form-group {
    flex: 1;
}

.hshub-form-group {
    display: flex;
    flex-direction: column;
}

.hshub-form-group label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.hshub-form-group input[type="text"],
.hshub-form-group input[type="email"],
.hshub-form-group input[type="password"],
.hshub-form-group input[type="tel"],
.hshub-form-group input[type="date"],
.hshub-form-group select {
    padding: 12px 16px;
    border: 2px solid #ecf0f1;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.hshub-form-group input:focus,
.hshub-form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.hshub-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
}

.hshub-forgot-link {
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
}

.hshub-forgot-link:hover {
    text-decoration: underline;
}

.hshub-auth-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.hshub-auth-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
}

.hshub-form-footer {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

.hshub-form-footer a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.hshub-form-footer a:hover {
    text-decoration: underline;
}

/* Mobile Responsive for Auth Page */
@media (max-width: 768px) {
    .hshub-auth-wrapper {
        flex-direction: column;
        margin: 20px;
        border-radius: 15px;
    }
    
    .hshub-auth-left {
        padding: 40px 30px;
    }
    
    .hshub-auth-content h1 {
        font-size: 32px;
    }
    
    .hshub-auth-right {
        padding: 40px 30px;
    }
    
    .hshub-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hshub-features {
        gap: 20px;
    }
    
    .hshub-feature {
        gap: 15px;
    }
    
    .hshub-feature-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* User Settings Interface */
.hshub-user-settings {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    min-height: 100vh;
}

.hshub-settings-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.hshub-settings-header h1 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.hshub-user-profile-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.hshub-user-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #3498db;
}

.hshub-user-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hshub-user-summary-info h2 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.hshub-user-summary-info p {
    margin: 5px 0;
    color: #7f8c8d;
}

.hshub-settings-content {
    display: flex;
    gap: 30px;
}

.hshub-settings-tabs {
    width: 250px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hshub-tab-btn {
    background: #ecf0f1;
    border: none;
    padding: 15px 20px;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    color: #2c3e50;
}

.hshub-tab-btn:hover {
    background: #d5dbdd;
}

.hshub-tab-btn.active {
    background: #3498db;
    color: white;
}

.hshub-settings-panels {
    flex: 1;
}

.hshub-settings-panel {
    display: none;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.hshub-settings-panel.active {
    display: block;
}

.hshub-settings-form h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

.hshub-form-row {
    display: flex;
    gap: 20px;
}

.hshub-form-row .hshub-form-group {
    flex: 1;
}

.hshub-avatar-preview-large {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #3498db;
    transition: all 0.3s ease;
}

.hshub-avatar-preview-large:hover {
    border-color: #2980b9;
    transform: scale(1.05);
}

.hshub-avatar-preview-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hshub-save-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hshub-save-btn:hover {
    background: #229954;
}

.hshub-cancel-btn {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hshub-cancel-btn:hover {
    background: #7f8c8d;
}

.hshub-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* Children Management */
.hshub-children-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hshub-add-child-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.hshub-add-child-btn:hover {
    background: #2980b9;
}

.hshub-children-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hshub-child-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #ecf0f1;
}

.hshub-child-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #3498db;
}

.hshub-child-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hshub-child-info {
    flex: 1;
}

.hshub-child-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.hshub-child-info p {
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-size: 14px;
}

.hshub-child-actions {
    display: flex;
    gap: 10px;
}

.hshub-edit-child-btn,
.hshub-remove-child-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.hshub-edit-child-btn {
    background: #3498db;
    color: white;
}

.hshub-edit-child-btn:hover {
    background: #2980b9;
}

.hshub-remove-child-btn {
    background: #e74c3c;
    color: white;
}

.hshub-remove-child-btn:hover {
    background: #c0392b;
}

.hshub-add-child-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

/* Danger Zone */
.hshub-danger-zone {
    background: #fdf2f2;
    border: 2px solid #e74c3c;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
}

.hshub-danger-zone h3 {
    color: #e74c3c;
    margin: 0 0 10px 0;
}

.hshub-danger-zone p {
    color: #7f8c8d;
    margin: 0 0 15px 0;
}

.hshub-delete-account-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.hshub-delete-account-btn:hover {
    background: #c0392b;
}

/* Mobile Responsive for Settings */
@media (max-width: 768px) {
    .hshub-settings-content {
        flex-direction: column;
    }
    
    .hshub-settings-tabs {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
        gap: 10px;
    }
    
    .hshub-tab-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .hshub-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .hshub-user-profile-summary {
        flex-direction: column;
        text-align: center;
    }
    
    .hshub-child-card {
        flex-direction: column;
        text-align: center;
    }
    
    .hshub-children-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .hshub-form-actions {
        flex-direction: column;
    }
}

/* Hide WordPress branding for full-page map */
.homeschool-hub-page .site-header,
.homeschool-hub-page .site-footer,
.homeschool-hub-page .sidebar,
.homeschool-hub-page .widget-area,
.homeschool-hub-page .site-info,
.homeschool-hub-page .copyright,
.homeschool-hub-page .powered-by,
.homeschool-hub-page footer,
.homeschool-hub-page .footer-area {
    display: none !important;
}

/* Page Template Styles */
.homeschool-hub-page {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.homeschool-hub-page #main,
.homeschool-hub-page .container,
.homeschool-hub-page .content-area {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    height: 100%;
}

.homeschool-hub-page .site-header,
.homeschool-hub-page .site-footer,
.homeschool-hub-page .sidebar,
.homeschool-hub-page .widget-area,
.homeschool-hub-page .site-info,
.homeschool-hub-page .copyright,
.homeschool-hub-page .powered-by,
.homeschool-hub-page footer,
.homeschool-hub-page .footer-area {
    display: none !important;
}

/* Hide WordPress branding and footer text */
.homeschool-hub-page .site-info,
.homeschool-hub-page .copyright,
.homeschool-hub-page .powered-by,
.homeschool-hub-page footer,
.homeschool-hub-page .footer-area {
    display: none !important;
}

/* Additional WordPress footer hiding */
.homeschool-hub-page .site-footer *,
.homeschool-hub-page footer *,
.homeschool-hub-page .wp-footer,
.homeschool-hub-page .wp-credits {
    display: none !important;
}

/* Hide any text containing "WordPress" */
.homeschool-hub-page *:contains("WordPress"),
.homeschool-hub-page *:contains("proudly powered") {
    display: none !important;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Top Calendar Bar */
#hshub-calendar-bar {
    height: 60px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    padding: 0 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.hshub-calendar-nav {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

.hshub-calendar-nav button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
}

.hshub-calendar-nav button:hover {
    background: #e9e9e9;
}

.hshub-calendar-dates {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
}

/* Main Content Layout */
#hshub-main-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* Sidebar Styles */
.hshub-sidebar {
    width: 300px;
    background: #fff;
    border-right: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.hshub-sidebar.hshub-right {
    border-right: none;
    border-left: 1px solid #e0e0e0;
}

.hshub-sidebar-header {
    height: 50px;
    background: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.hshub-sidebar-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.hshub-sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 5px;
}

.hshub-sidebar-toggle:hover {
    color: #333;
}

/* Filters Sidebar */
.hshub-filters-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.hshub-filter-group {
    margin-bottom: 20px;
}

.hshub-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #555;
}

.hshub-filter-group select,
.hshub-filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.hshub-date-range {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hshub-date-range input {
    flex: 1;
}

.hshub-date-range span {
    color: #666;
    font-size: 14px;
}

.hshub-apply-filters,
.hshub-clear-filters {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 10px;
}

.hshub-apply-filters {
    background: #007cba;
    color: white;
}

.hshub-apply-filters:hover {
    background: #005a87;
}

.hshub-clear-filters {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
}

.hshub-clear-filters:hover {
    background: #e9e9e9;
}

/* Map Container */
#hshub-map-container {
    flex: 1;
    position: relative;
    background: #f0f0f0;
}

#hshub-google-map {
    width: 100%;
    height: 100%;
}

.hshub-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
}

/* Map Legend */
.hshub-map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    z-index: 100;
}

.hshub-legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.hshub-legend-item:last-child {
    margin-bottom: 0;
}

.hshub-legend-pin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.hshub-pin-green {
    background: #28a745;
}

.hshub-pin-orange {
    background: #fd7e14;
}

.hshub-pin-red {
    background: #dc3545;
}

.hshub-pin-gray {
    background: #6c757d;
}

/* Friends Sidebar */
.hshub-friends-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.hshub-friends-section,
.hshub-student-connections-section {
    margin-bottom: 30px;
}

.hshub-friends-section h4,
.hshub-student-connections-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.hshub-friends-list,
.hshub-student-connections-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hshub-friend-item,
.hshub-student-item {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hshub-friend-item:hover,
.hshub-student-item:hover {
    background: #e9ecef;
}

.hshub-friend-avatar,
.hshub-student-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ddd;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
}

.hshub-friend-info,
.hshub-student-info {
    flex: 1;
}

.hshub-friend-name,
.hshub-student-name {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.hshub-friend-hub,
.hshub-student-hub {
    font-size: 12px;
    color: #666;
}

/* Hub Popup */
.hshub-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.hshub-popup-content {
    background: white;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
}

.hshub-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    z-index: 1;
}

.hshub-popup-close:hover {
    color: #333;
}

.hshub-popup-body {
    padding: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    #hshub-main-content {
        flex-direction: column;
    }
    
    .hshub-sidebar {
        width: 100%;
        height: 200px;
        position: absolute;
        top: 0;
        z-index: 1500;
        transform: translateY(-100%);
    }
    
    .hshub-sidebar.hshub-left {
        left: 0;
    }
    
    .hshub-sidebar.hshub-right {
        right: 0;
        top: auto;
        bottom: 0;
        transform: translateY(100%);
    }
    
    .hshub-sidebar.active {
        transform: translateY(0);
    }
    
    #hshub-map-container {
        width: 100%;
        height: 100%;
    }
    
    .hshub-map-legend {
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    
    #hshub-calendar-bar {
        height: 50px;
        padding: 0 10px;
    }
}
