/**
 * 
 * Copyright (c) 2026 Estait Group LLC
 * All rights reserved.
 */

/*
Theme Name: Network Material Design
Theme URI: https://adinsightia.com
Author: WebSentient
Author URI: https://websentient.com
Description: Material Design theme for WordPress Multisite network with shared header and footer
Version: 1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: network-material
*/

/* Material Design Variables - DEFAULT FALLBACKS ONLY (Custom CSS overrides these) */
/* These are ONLY used if site has no custom CSS defined */
:root {
    /* Colors - These will be overridden by wp_custom_css per site */
    --mdc-theme-primary: #6200ee;
    --mdc-theme-secondary: #03dac6;
    --mdc-theme-background: #ffffff;
    --mdc-theme-surface: #ffffff;
    --mdc-theme-on-primary: #ffffff;
    --mdc-theme-on-secondary: #000000;
    
    /* Typography - Will be overridden by custom CSS */
    --mdc-typography-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --mdc-typography-headline1-font-family: var(--mdc-typography-font-family);
    --mdc-typography-headline2-font-family: var(--mdc-typography-font-family);
    --mdc-typography-headline3-font-family: var(--mdc-typography-font-family);
    --mdc-typography-headline4-font-family: var(--mdc-typography-font-family);
    --mdc-typography-headline5-font-family: var(--mdc-typography-font-family);
    --mdc-typography-headline6-font-family: var(--mdc-typography-font-family);
    --mdc-typography-body1-font-family: var(--mdc-typography-font-family);
    --mdc-typography-body2-font-family: var(--mdc-typography-font-family);
    --mdc-typography-button-font-family: var(--mdc-typography-font-family);
}

/* Override WordPress defaults for clean Material Design look */
body {
    background-color: var(--mdc-theme-background);
    color: var(--text-color, #333333);
    font-family: var(--mdc-typography-font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

/* Professional Form Styling */
.mdc-text-field {
    width: 100% !important;
}

.mdc-text-field--filled {
    background-color: rgba(0, 0, 0, 0.04) !important;
}

.mdc-text-field--filled:not(.mdc-text-field--disabled) {
    background-color: var(--mdc-theme-surface) !important;
}

.mdc-text-field:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: rgba(0, 0, 0, 0.6);
}

.mdc-text-field--focused:not(.mdc-text-field--disabled) .mdc-floating-label {
    color: var(--mdc-theme-primary);
}

/* Button Enhancements */
.mdc-button {
    letter-spacing: 0.0892857143em;
    text-transform: none !important;
    font-weight: 500;
}

.mdc-button--raised {
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12);
}

.mdc-button--raised:hover {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12);
}

/* Card Enhancements - Raised Effect */
.mdc-card {
    border-radius: 8px !important;
    box-shadow: 0 3px 1px -2px rgba(0,0,0,0.2), 0 2px 2px 0 rgba(0,0,0,0.14), 0 1px 5px 0 rgba(0,0,0,0.12) !important;
    transition: box-shadow 0.3s ease;
    background-color: white !important;
}

.mdc-card:hover {
    box-shadow: 0 2px 4px -1px rgba(0,0,0,0.2), 0 4px 5px 0 rgba(0,0,0,0.14), 0 1px 10px 0 rgba(0,0,0,0.12) !important;
}

.mdc-card--outlined {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

/* Raised Effects for All Components */
.mdc-text-field--filled,
.mdc-select,
.mdc-chip-set,
.entry-content > *:not(.mdc-card) {
    box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12);
    transition: box-shadow 0.3s ease;
}

.mdc-text-field--filled:hover,
.mdc-select:hover,
.mdc-chip-set:hover {
    box-shadow: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12);
}

/* Chip Raised Effects */
.mdc-chip {
    box-shadow: 0 2px 1px -1px rgba(0,0,0,0.2), 0 1px 1px 0 rgba(0,0,0,0.14), 0 1px 3px 0 rgba(0,0,0,0.12) !important;
}

.mdc-chip:hover {
    box-shadow: 0 3px 3px -2px rgba(0,0,0,0.2), 0 3px 4px 0 rgba(0,0,0,0.14), 0 1px 8px 0 rgba(0,0,0,0.12) !important;
}

/* Professional Content Spacing */
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.3;
}

.entry-content h1 {
    font-size: 2.5rem;
}

.entry-content h2 {
    font-size: 2rem;
    color: var(--mdc-theme-primary);
}

.entry-content h3 {
    font-size: 1.5rem;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

/* Form Field Spacing */
.mdc-text-field + .mdc-text-field {
    margin-top: 20px;
}

/* Chip Set */
.mdc-chip-set {
    padding: 8px 0;
}

.mdc-chip {
    margin: 4px;
}

/* Header Styles */
.network-header {
    background-color: var(--mdc-theme-primary);
    color: var(--mdc-theme-on-primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.network-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.network-header__title {
    font-size: 1.25rem;
    font-weight: 500;
}

/* Adjust body for fixed header */
body {
    padding-top: 64px;
}

/* Footer Styles - Use CSS variables, NO hardcoded colors */
/* Higher specificity to override .mdc-card defaults */
footer.network-footer {
    background-color: var(--mdc-theme-primary) !important;
    color: var(--mdc-theme-on-primary) !important;
    padding: 1.4rem;
    margin-top: 2.8rem;
    border-radius: 0 !important;
}

.network-footer__container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Desktop Navigation Styles */
.network-header__desktop-nav {
    display: none;
}

/* Mobile drawer - hidden by default */
.mdc-drawer--modal {
    display: none;
}

.mdc-drawer--modal.mdc-drawer--open {
    display: flex;
}

.mdc-drawer-scrim {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mdc-drawer--open + .mdc-drawer-scrim {
    opacity: 1;
    pointer-events: auto;
}

@media (max-width: 768px) {
    /* Mobile: show menu button */
    .mdc-top-app-bar__navigation-icon {
        display: inline-flex !important;
    }
    
    .network-header__desktop-nav {
        display: none !important;
    }
}

@media (min-width: 769px) {
    /* Desktop: hide menu button and drawer, show nav */
    .network-header__desktop-nav {
        display: flex !important;
    }
    
    .mdc-top-app-bar__navigation-icon {
        display: none !important;
    }
    
    .mdc-drawer--modal {
        display: none !important;
    }
    
    .mdc-drawer-scrim {
        display: none !important;
    }
}

.network-header__nav {
    display: flex;
    align-items: center;
}

.network-header__menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.network-header__menu li {
    position: relative;
}

.network-header__menu a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: var(--mdc-theme-on-primary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.network-header__menu a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.network-header__menu a .material-icons {
    font-size: 20px;
}

.network-header__menu .current-menu-item > a,
.network-header__menu .current_page_item > a {
    background-color: rgba(255, 255, 255, 0.25);
}

/* Mobile Drawer Styles */
.mdc-drawer {
    background-color: var(--mdc-theme-surface);
}

.mdc-drawer__header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.mdc-drawer__title {
    color: var(--mdc-theme-primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin: 0;
}

.mdc-drawer__subtitle {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    margin: 4px 0 0;
}

.mdc-drawer__content {
    padding: 8px 0;
}

.mdc-drawer__content .mdc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mdc-drawer__content .mdc-list-item,
.mdc-drawer__content .mdc-list a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    color: rgba(0, 0, 0, 0.87);
    text-decoration: none;
    transition: background-color 0.3s;
    cursor: pointer;
}

.mdc-drawer__content .mdc-list-item:hover,
.mdc-drawer__content .mdc-list a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

.mdc-drawer__content .material-icons {
    color: rgba(0, 0, 0, 0.54);
    font-size: 24px;
}

.mdc-drawer__content .mdc-list-item__text {
    flex: 1;
}

.mdc-drawer__content .current-menu-item > a,
.mdc-drawer__content .current_page_item > a {
    background-color: rgba(0, 200, 83, 0.08);
    color: var(--mdc-theme-primary);
}

.mdc-drawer__content .current-menu-item .material-icons,
.mdc-drawer__content .current_page_item .material-icons {
    color: var(--mdc-theme-primary);
}

/* Submenu styles */
.network-header__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 200px;
    list-style: none;
    margin: 4px 0 0;
    padding: 8px 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s;
}

.network-header__menu li:hover .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.network-header__menu .sub-menu a {
    color: rgba(0, 0, 0, 0.87);
    padding: 10px 16px;
    display: block;
}

.network-header__menu .sub-menu a:hover {
    background-color: rgba(0, 0, 0, 0.04);
}

/* Drawer submenu */
.mdc-drawer__content .sub-menu {
    list-style: none;
    margin: 0;
    padding: 0 0 0 40px;
    background-color: rgba(0, 0, 0, 0.02);
}

.mdc-drawer__content .sub-menu a {
    padding: 10px 16px;
    font-size: 0.875rem;
}

/* Site Content */
.site-content {
    min-height: calc(100vh - 200px);
}

.site-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Footer Navigation */
.network-footer__nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.network-footer__nav li {
    margin: 8px 0;
}

.network-footer__nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s;
}

.network-footer__nav a:hover {
    color: white;
}

