/* 
 * Hoodyia Frontend Master CSS
 * ===========================
 * 
 * Diese Datei importiert alle CSS-Module für das Hoodyia-Plugin.
 * Die folgenden Module werden hier zusammengeführt:
 * - reset.css: Grundlegende Zurücksetzung der Browser-Stile
 * - variables.css: CSS-Variablen für konsistentes Design
 * - typography.css: Typografie-Stile
 * - layout.css: Layout-Komponenten und Raster
 * - buttons.css: Button-Stile
 * - forms.css: Formular-Stile
 * - modals.css: Modal-Fenster-Stile
 * - community.css: Community-spezifische Stile
 * - utilities.css: Hilfsklassen
 * 
 * Separat gehaltene CSS-Dateien (werden nur bei Bedarf geladen):
 * - profile-modal.css: Profilmodal-spezifische Stile
 * - hoodyia-ask.css: Ask-Komponenten-Stile
 *
 * Zuletzt aktualisiert: 21.05.2025
 */

/* Google Fonts - Roboto */
@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400;1,500&display=swap');

/* Base Styles */
@import 'modules/reset.css';
@import 'modules/variables.css';
@import 'modules/typography.css';

/* Layout and Components */
@import 'modules/layout.css';
@import 'modules/buttons.css';
@import 'modules/forms.css';
@import 'modules/modals.css';

/* Specific Modules */
@import 'modules/community.css';
@import 'modules/messaging-buttons-standalone.css';
@import 'modules/messaging.css';
@import 'modules/chats.css';

/* Utilities */
@import 'modules/utilities.css';

/* Globale Überschreibungen */
:root {
  --hoodyia-primary: #672A2B !important;
  --hoodyia-primary-dark: #4A1E1F !important;
  --hoodyia-primary-light: #7D3536 !important;
  --hoodyia-secondary: #333333 !important;
}

/* Buttons schwarz mit weißer Schrift - AUSNAHME: Messaging-Buttons und Tab-Buttons */
.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button), 
button.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button), 
a.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button),
.wp-block-button__link,
button[type="submit"]:not(.hoodyia-message-button):not(.hoodyia-tab-button),
input[type="submit"]:not(.hoodyia-message-button):not(.hoodyia-tab-button) {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  border: none !important;
  transition: none !important;
  transform: none !important;
}

/* Entferne Hover-Effekte - AUSNAHME: Messaging-Buttons und Tab-Buttons */
.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button):hover, 
button.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button):hover, 
a.hoodyia-button:not(.hoodyia-message-button):not(.hoodyia-tab-button):hover,
.wp-block-button__link:hover,
button[type="submit"]:not(.hoodyia-message-button):not(.hoodyia-tab-button):hover,
input[type="submit"]:not(.hoodyia-message-button):not(.hoodyia-tab-button):hover {
  background-color: #000000 !important;
  color: #FFFFFF !important;
  transform: none !important;
}

/* Danger-Button (Konto löschen) */
.hoodyia-button-danger,
button.hoodyia-button-danger,
.hoodyia-button-danger[type="submit"] {
  background-color: #e74c3c !important;
  color: #FFFFFF !important;
}

.hoodyia-button-danger:hover,
button.hoodyia-button-danger:hover,
.hoodyia-button-danger[type="submit"]:hover {
  background-color: #e74c3c !important;
  color: #FFFFFF !important;
}

/* Form-Elemente Fokus-Effekt */
input:focus,
select:focus,
textarea:focus {
  border-color: #672A2B !important;
  box-shadow: 0 0 0 2px rgba(103, 42, 43, 0.25) !important;
}

/* 
 * Zusätzliche CSS-Regeln, die nicht Teil der Module sind
 * Hier können kurzfristige Fixes oder spezifische Anpassungen eingetragen werden
 */

/* COMMUNITY CONTAINER ANGLEICHUNG - WICHTIG! */
.hoodyia-welcome-section,
.hoodyia-members-area,
.hoodyia-community-container,
.hoodyia-welcome-container {
    background-color: #F0E1D0 !important;
    border-radius: 10px !important;
    padding: 16px !important;
    margin-bottom: 16px !important;
    width: 100% !important;
    max-width: 1170px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* WELCOME BEREICH - Schatten entfernen und zentrieren */
.hoodyia-welcome-section {
    box-shadow: none !important;
    text-align: center !important;
}

.hoodyia-welcome-section h1,
.hoodyia-welcome-section p {
    text-align: center !important;
}

/* PROFIL CONTAINER - Schatten entfernen */
.hoodyia-profile-section,
.hoodyia-password-section,
.hoodyia-settings-section,
.hoodyia-danger-section {
    box-shadow: none !important;
}

/* FILTER UND SUCHFELD STYLING - DIREKT UND SPEZIFISCH */
#hoodyia-city-filter,
#hoodyia-skill-filter,
.hoodyia-filter-select,
select.hoodyia-filter-select {
    color: #999999 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    background-color: white !important;
}

/* Eingabefelder */
#hoodyia-member-search,
.hoodyia-search-input,
input.hoodyia-search-input {
    color: #333 !important;
    font-size: 14px !important;
    padding: 8px 12px !important;
    border: 1px solid #ddd !important;
    background-color: white !important;
}

/* Placeholder für ALLE Eingabefelder */
#hoodyia-member-search::placeholder,
.hoodyia-search-input::placeholder,
input::placeholder {
    color: #999999 !important;
    font-size: 14px !important;
    opacity: 1 !important;
}

/* Blockierte Benutzer Styles */
.hoodyia-blocked-users-section {
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.blocked-users-grid {
    display: grid;
    gap: 15px;
    margin-top: 15px;
}

.blocked-user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blocked-user-info strong {
    display: block;
    font-size: 16px;
    color: #333;
}

.blocked-user-info small {
    color: #666;
    font-size: 12px;
}

.hoodyia-button-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
    min-height: auto !important;
}

.hoodyia-button-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.hoodyia-button-secondary:hover {
    background-color: #545b62 !important;
    border-color: #545b62 !important;
}

.hoodyia-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* Gefahrenzone Styles */
.hoodyia-danger-section {
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #dc3545;
    border-radius: 8px;
    background-color: #f8d7da;
}

.hoodyia-danger-text {
    color: #721c24;
    margin-bottom: 15px;
}

.hoodyia-button-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: white !important;
}

.hoodyia-button-danger:hover {
    background-color: #c82333 !important;
    border-color: #bd2130 !important;
}

/* Admin E-Mail Benachrichtigungen Styles */
.hoodyia-admin-emails-section {
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.hoodyia-admin-emails-section h2,
.hoodyia-blocked-users-section h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #333;
    font-size: 24px;
    font-weight: bold;
}

.hoodyia-section-description {
    color: #666;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 5px;
}

.hoodyia-settings-row {
    margin: 15px 0;
}

.hoodyia-checkbox-container {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.hoodyia-checkbox-container input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.hoodyia-checkmark {
    position: absolute;
    top: 2px;
    left: 0;
    height: 18px;
    width: 18px;
    background-color: white;
    border: 2px solid #ddd;
    border-radius: 3px;
    transition: all 0.2s ease;
}

.hoodyia-checkbox-container:hover input ~ .hoodyia-checkmark {
    border-color: #672A2B;
}

.hoodyia-checkbox-container input:checked ~ .hoodyia-checkmark {
    background-color: #672A2B;
    border-color: #672A2B;
}

.hoodyia-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.hoodyia-checkbox-container input:checked ~ .hoodyia-checkmark:after {
    display: block;
}

.hoodyia-checkbox-container .hoodyia-checkmark:after {
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.hoodyia-label-text {
    display: block;
    line-height: 1.4;
}

.hoodyia-checkbox-label {
    color: #333;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.4;
}

.hoodyia-label-text strong {
    color: #333;
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}

.hoodyia-label-text small {
    color: #666;
    font-size: 13px;
    line-height: 1.3;
}

.hoodyia-status-message {
    margin: 10px 0;
    border-radius: 4px;
    padding: 10px;
}

.hoodyia-status-message.success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.hoodyia-status-message.error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

.hoodyia-divider {
    border: none;
    height: 1px;
    background-color: #ddd;
    margin: 30px 0;
}

/* Responsive Design für mobile Geräte */
@media (max-width: 768px) {
    .hoodyia-admin-emails-section,
    .hoodyia-blocked-users-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .hoodyia-admin-emails-section h2,
    .hoodyia-blocked-users-section h2 {
        font-size: 20px;
    }
    
    .hoodyia-checkbox-label {
        font-size: 15px;
    }
    
    .hoodyia-label-text small {
        font-size: 12px;
    }
}

/* End of modular CSS file */
