﻿/* ============================================
   HULA ARTS CUSTOM CSS
   Complete styling with brand colors
   ============================================ */

/* ============================================
   COLOR PALETTE REFERENCE
   ============================================
   
   Primary 
       Carrot 3: #fbab18
   
   Neutral Lights
       Carrot 5 custom: #fff6e7
       
   Neutral Mediums
       Carrot 5: #ffe9c9
       Ocean 5: #c9e9eb
   
   Neutral Darks
       Ocean -1: #093036
       Carrot 1: #453008
   
   Accents
       Ibis 1: #fbd7e7
       Ibis 3: #ec008c
       Ibis -1: #421129
   
   ============================================ */


/* ============================================
   BODY & GLOBAL STYLES
   ============================================ */

body, .sp-preloader {
    background-color: #c9e9eb;
    color: #421129;
}

/* Typography */
h1, h2, h3, h4, h5, h6,
.sppb-addon-title,
.page-header h1,
.page-title {
    color: #093036;
}

/* Links */
a, .easystore-svg {
    color: #fbab18;
    transition: color 0.3s ease;
}

a:hover, 
a:focus,
.easystore-svg:hover {
    color: #ec008c;
}

/* Strong accent links */
a.accent-pink {
    color: #ec008c;
}

a.accent-pink:hover {
    color: #421129;
}


/* ============================================
   FORMS & INPUTS
   ============================================ */

input[type=text], 
input[type=email], 
input[type=url], 
input[type=date], 
input[type=password], 
input[type=search], 
input[type=tel], 
input[type=number], 
select:not(.form-select), 
textarea,
.form-control, 
.sppb-form-control {
    display: block;
    width: 100%;
    padding: 10px 0px;
    font-size: 1rem;
    line-height: 1.25;
    color: #421129;
    background-color: rgba(255, 255, 255, 0.8);
    background-image: none;
    background-clip: padding-box;
    border: none;
    border-bottom: 2px solid #fbab18;
    border-radius: 0px;
    transition: all 0.3s ease;
}

input[type=text]:focus, 
input[type=email]:focus, 
input[type=url]:focus, 
input[type=date]:focus, 
input[type=password]:focus, 
input[type=search]:focus, 
input[type=tel]:focus, 
input[type=number]:focus, 
select:not(.form-select):focus,
textarea:focus,
.form-control:focus, 
.sppb-form-control:focus {
    color: #093036;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 2px solid #ec008c;
    outline: 0;
    box-shadow: 0 2px 8px rgba(236, 0, 140, 0.2);
}

/* Placeholder text */
::placeholder {
    color: #ffe9c9;
    opacity: 0.7;
}

::-webkit-input-placeholder {
    color: #ffe9c9;
    opacity: 0.7;
}

::-moz-placeholder {
    color: #ffe9c9;
    opacity: 0.7;
}


/* ============================================
   BUTTONS
   ============================================ */

/* Primary Buttons (Orange) */
.btn-primary,
.sppb-btn-primary,
.btn,
button[type="submit"],
input[type="submit"],
.ha-btn-orange {
    background-color: #fbab18;
    color: #093036;
    border: 2px solid #fbab18;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover,
.btn-primary:focus,
.sppb-btn-primary:hover,
.sppb-btn-primary:focus,
.btn:hover,
.btn:focus,
button[type="submit"]:hover,
input[type="submit"]:hover,
.ha-btn-orange:hover {
    background-color: #ec008c;
    color: white;
    border-color: #ec008c;
    box-shadow: 0 4px 12px rgba(236, 0, 140, 0.3);
    transform: translateY(-2px);
}

/* Secondary Buttons (Teal) */
.btn-secondary,
.sppb-btn-secondary,
.ha-btn-teal {
    background-color: #c9e9eb;
    color: #093036;
    border: 2px solid #c9e9eb;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary:hover,
.btn-secondary:focus,
.ha-btn-teal:hover {
    background-color: #093036;
    color: #c9e9eb;
    border-color: #093036;
}

/* Pink Accent Buttons */
.btn-accent,
.ha-btn-pink {
    background-color: #fbd7e7;
    color: #093036;
    border: 2px solid #fbd7e7;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-accent:hover,
.btn-accent:focus,
.ha-btn-pink:hover,
.ha-btn-pink:focus {
    background-color: #ec008c;
    color: white;
    border-color: #ec008c;
    box-shadow: 0 4px 12px rgba(236, 0, 140, 0.3);
}

/* Outline Buttons */
.btn-outline,
.ha-btn-outline {
    background-color: transparent;
    color: #fbab18;
    border: 2px solid #fbab18;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-outline:hover,
.ha-btn-outline:hover {
    background-color: #fbab18;
    color: #093036;
}


/* ============================================
   PAGINATION
   ============================================ */

.pagination .page-item a, 
.pagination .page-item span, 
a .page-link {
    color: #093036;
    background-color: #fff6e7;
    border: 1px solid #ffe9c9;
    padding: 8px 15px;
    transition: all 0.3s ease;
}

.pagination .page-item a:hover, 
.pagination .page-item a:focus, 
.pagination .page-item span:hover, 
.pagination .page-item span:focus {
    color: white;
    background-color: #ec008c;
    border-color: #ec008c;
    font-weight: bold;
}

.pagination .page-item.active a,
.pagination .page-item.active span {
    background-color: #fbab18;
    border-color: #fbab18;
    color: #093036;
    font-weight: bold;
}


/* ============================================
   HEADER
   ============================================ */

#sp-header {
    background-color: #093036;
    border-bottom: 3px solid #fbab18;
}

/* Logo area */
#sp-header .sp-logo {
    padding: 15px 0;
}

/* Navigation Menu */
.sp-megamenu-parent > li a, 
.sp-menu-item a {
    color: #fbab18;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 15px 20px;
}

.sp-megamenu-parent > li a:hover, 
.sp-menu-item a:hover,
.sp-megamenu-parent > li:hover > a {
    color: #c9e9eb;
    background-color: rgba(201, 233, 235, 0.1);
}

/* Active menu items */
.com-content.view-article #sp-header .sp-megamenu-parent > li > a, 
.com-easystore.view-checkout #sp-header .sp-megamenu-parent > li > a, 
.com-content.view-article #sp-header .sp-megamenu-parent > li.active > a, 
.com-content.view-article #sp-header .sp-megamenu-parent > li.active:hover > a, 
.com-easystore.view-checkout #sp-header .sp-megamenu-parent > li.active > a, 
.com-easystore.view-checkout #sp-header .sp-megamenu-parent > li.active:hover > a,
.sp-megamenu-parent > li.current-item > a,
.sp-megamenu-parent > li.active > a {
    color: #fbab18;
}

.com-content.view-article #sp-header .sp-megamenu-parent > li.active > a, 
.com-easystore.view-checkout #sp-header .sp-megamenu-parent > li.active > a, 
.com-easystore.view-checkout #sp-header .sp-megamenu-parent > li.active:active > a, 
.sp-megamenu-parent > li.active > a, 
.sp-megamenu-parent > li.active:hover > a,
.sp-megamenu-parent > li.current-item:hover > a {
    color: #ffe9c9;
}

/* Sign In Button */
#sp-header .sp-module .sp-sign-in, 
.com-content.view-article #sp-header .sp-module .sp-sign-in, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in {
    background-color: #fbd7e7;
    color: #093036;
    border: 2px solid #fbd7e7;
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s ease;
}

#sp-header .sp-module .sp-sign-in .signin-text, 
.com-content.view-article #sp-header .sp-module .sp-sign-in .signin-text, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in .signin-text {
    color: #093036;
}

#sp-header .sp-module .sp-sign-in:hover, 
#sp-header .sp-module .sp-sign-in:focus, 
.com-content.view-article #sp-header .sp-module .sp-sign-in:hover, 
.com-content.view-article #sp-header .sp-module .sp-sign-in:focus, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in:hover, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in:focus {
    background-color: #ec008c;
    color: white;
    border-color: #ec008c;
    box-shadow: 0 4px 12px rgba(236, 0, 140, 0.3);
    transform: translateY(-2px);
}

#sp-header .sp-module .sp-sign-in:hover .signin-text, 
.com-content.view-article #sp-header .sp-module .sp-sign-in:hover .signin-text, 
.com-content.view-article #sp-header .sp-module .sp-sign-in:focus .signin-text, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in:hover .signin-text, 
.com-easystore.view-checkout #sp-header .sp-module .sp-sign-in:focus .signin-text {
    color: white;
}

/* Dropdown menus */
.sp-megamenu-parent .sp-dropdown {
    background-color: #093036;
    border: 1px solid #fbab18;
    border-top: 3px solid #fbab18;
}

.sp-megamenu-parent .sp-dropdown li a {
    color: #c9e9eb;
    border-bottom: 1px solid rgba(251, 171, 24, 0.2);
}

.sp-megamenu-parent .sp-dropdown li a:hover {
    background-color: rgba(251, 171, 24, 0.1);
    color: #fbab18;
}


/* ============================================
   FOOTER
   ============================================ */

#sp-footer, 
#sp-bottom {
    background: #421129;
    color: #fff6e7;
    padding: 40px 0;
}

#sp-footer h3.sppb-addon-title, 
#sp-bottom h3.sppb-addon-title,
#sp-footer h3,
#sp-bottom h3 {
    color: #fbd7e7;
    border-bottom: 2px solid #fbd7e7;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#sp-footer a, 
#sp-bottom a {
    color: #fbd7e7;
    transition: color 0.3s ease;
}

#sp-footer a:hover,
#sp-footer a:focus,
#sp-bottom a:hover,
#sp-bottom a:focus {
    color: #fbab18;
}

/* Footer lists */
#sp-footer ul li,
#sp-bottom ul li {
    margin-bottom: 10px;
}

#sp-footer ul li::before,
#sp-bottom ul li::before {
    content: "→";
    color: #fbab18;
    margin-right: 8px;
}


/* ============================================
   HULA DIRECTORY COMPONENT STYLES
   ============================================ */

/* Teachers Directory Container */
.teachers-directory,
.com-hulaschools {
    background-color: #fff6e7;
    padding: 40px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.teachers-directory .page-header h1,
.com-hulaschools .page-header h1 {
    color: #093036;
    border-bottom: 3px solid #fbab18;
    padding-bottom: 15px;
    margin-bottom: 10px;
}

.teachers-directory .lead,
.com-hulaschools .lead {
    color: #421129;
    font-size: 1.2em;
}

/* Search Form */
.search-form,
.teachers-directory .well,
.com-hulaschools .well {
    background: linear-gradient(135deg, #ffe9c9 0%, #fbd7e7 100%);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: 8px;
    border: 2px solid #fbab18;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-form h3,
.teachers-directory .well h3,
.com-hulaschools .well h3 {
    margin-top: 0;
    color: #093036;
    border-bottom: 2px solid #ec008c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* Tag Selection Grid */
.tag-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 15px;
}

.tag-option {
    display: flex !important;
    align-items: center;
    padding: 10px 15px;
    background: white;
    border: 2px solid #ffe9c9;
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tag-option:hover {
    background: #c9e9eb;
    border-color: #fbab18;
    transform: translateX(5px);
}

.tag-option input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #ec008c;
}

.tag-option input[type="checkbox"]:checked + .tag-label {
    font-weight: bold;
    color: #ec008c;
}

.tag-label {
    flex-grow: 1;
    color: #093036;
}

/* Active Filters Display */
.active-filters {
    margin-top: 15px;
    padding: 15px;
    background: rgba(236, 0, 140, 0.1);
    border-left: 4px solid #ec008c;
    border-radius: 4px;
}

.active-filters > div {
    margin: 8px 0;
    color: #421129;
}

/* Results Info */
.results-info {
    margin-bottom: 30px;
}

.results-info .alert-info {
    background-color: #c9e9eb;
    border-color: #fbab18;
    color: #093036;
    border-left: 4px solid #fbab18;
}

/* Teacher Cards Grid */
.teachers-grid {
    margin-top: 30px;
}

.teacher-card {
    height: 100%;
    min-height: 500px;
    background: white;
    border: 2px solid #ffe9c9;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.teacher-card:hover {
    box-shadow: 0 8px 24px rgba(236, 0, 140, 0.2);
    transform: translateY(-5px);
    border-color: #ec008c;
}

.teacher-thumbnail {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 3px solid #ffe9c9;
}

.teacher-card h3 {
    margin: 15px 0 10px 0;
    font-size: 1.4em;
    color: #093036;
}

.teacher-card h3 a {
    color: #093036;
    text-decoration: none;
    transition: color 0.3s ease;
}

.teacher-card h3 a:hover {
    color: #ec008c;
}

/* Halau Name */
.halau-name {
    color: #ec008c;
    font-size: 1.15em;
    font-weight: 600;
    margin: 8px 0 15px 0;
    font-style: italic;
}

.teacher-location {
    color: #421129;
    margin-bottom: 15px;
    font-size: 1.05em;
    font-weight: 500;
}

.teacher-location .icon-location {
    margin-right: 5px;
    color: #fbab18;
}

/* Teacher Meta Section */
.teacher-meta {
    flex-grow: 1;
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 2px solid #ffe9c9;
    border-bottom: 2px solid #ffe9c9;
}

.teacher-meta > div {
    margin-bottom: 15px;
}

.teacher-meta strong {
    color: #093036;
    display: block;
    margin-bottom: 8px;
}

/* Tag Display in Cards */
.tag-display {
    margin: 10px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.badge.cert-tag {
    background-color: #fbab18;
    color: #093036;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge.cert-tag:hover {
    background-color: #ec008c;
    color: white;
    transform: scale(1.05);
}

.badge.lang-tag {
    background-color: #c9e9eb;
    color: #093036;
    padding: 6px 12px;
    font-size: 0.85em;
    border-radius: 20px;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.badge.lang-tag:hover {
    background-color: #093036;
    color: #c9e9eb;
    transform: scale(1.05);
}

.certifications-tags,
.languages-tags {
    margin-bottom: 15px;
}

/* Teacher Actions */
.teacher-actions {
    margin-top: auto;
    padding-top: 15px;
}

.teacher-actions .btn {
    margin-bottom: 8px;
    width: 100%;
}

.teacher-actions .btn-primary {
    background-color: #fbab18;
    border-color: #fbab18;
}

.teacher-actions .btn-primary:hover {
    background-color: #ec008c;
    border-color: #ec008c;
}

.teacher-actions .btn-small {
    background-color: #c9e9eb;
    color: #093036;
    border-color: #c9e9eb;
}

.teacher-actions .btn-small:hover {
    background-color: #093036;
    color: #c9e9eb;
    border-color: #093036;
}

/* Teacher Profile Page */
.teacher-profile {
    background-color: #fff6e7;
    padding: 40px;
    border-radius: 8px;
    margin: 20px 0;
}

.teacher-profile .page-header h1 {
    color: #093036;
    margin-bottom: 5px;
}

.teacher-profile .page-header h2.halau-name {
    margin-top: 10px;
    color: #ec008c;
    font-size: 1.6em;
    font-style: italic;
}

.teacher-photo,
.teacher-logo {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 4px solid #ffe9c9;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.teacher-details .dl-horizontal dt {
    width: 200px;
    color: #093036;
    font-weight: 600;
}

.teacher-details .dl-horizontal dd {
    margin-left: 220px;
    color: #421129;
}

/* Lineage Tree */
.lineage-tree {
    margin-top: 40px;
    padding: 30px;
    background: linear-gradient(135deg, #ffe9c9 0%, #c9e9eb 100%);
    border-radius: 8px;
    border: 2px solid #fbab18;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lineage-tree h2 {
    margin-top: 0;
    color: #093036;
    border-bottom: 3px solid #ec008c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.lineage-chain {
    margin-top: 25px;
}

.lineage-member {
    margin: 20px 0;
    position: relative;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lineage-connector {
    color: #fbab18;
    font-size: 1.8em;
    margin-bottom: 8px;
}

.lineage-connector .icon-arrow-up {
    display: inline-block;
}

.lineage-details {
    padding: 15px 20px;
    background: white;
    border-left: 4px solid #ec008c;
    border-radius: 6px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.lineage-details:hover {
    box-shadow: 0 4px 16px rgba(236, 0, 140, 0.2);
    transform: translateX(5px);
}

.lineage-details strong {
    display: block;
    font-size: 1.2em;
    color: #093036;
    margin-bottom: 5px;
}

.lineage-details .years {
    font-size: 0.95em;
    color: #421129;
    margin-left: 5px;
}

.lineage-details .location {
    display: block;
    font-size: 0.9em;
    color: #093036;
    margin-top: 8px;
}

.lineage-details .location .icon-location {
    margin-right: 5px;
    color: #fbab18;
}

.lineage-notes {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #ffe9c9;
    font-size: 0.9em;
    color: #421129;
}

/* No Lineage Message */
.alert-info {
    background-color: #c9e9eb;
    border-left: 4px solid #fbab18;
    color: #093036;
    padding: 15px;
    border-radius: 4px;
}

/* No Results Message */
.alert-warning {
    background-color: #ffe9c9;
    border-left: 4px solid #fbab18;
    color: #453008;
    padding: 20px;
    border-radius: 4px;
}

.alert-warning h4 {
    margin-top: 0;
    color: #093036;
}


/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    /* Search Form */
    .search-form .checkbox.inline {
        display: block;
        margin-bottom: 10px;
    }
    
    .tag-selection-grid {
        grid-template-columns: 1fr;
    }
    
    .tag-option {
        width: 100%;
    }
    
    /* Teacher Cards */
    .teacher-card {
        min-height: auto;
    }
    
    /* Teacher Profile */
    .teacher-details .dl-horizontal dt {
        width: auto;
        float: none;
        clear: both;
        text-align: left;
        margin-bottom: 5px;
    }
    
    .teacher-details .dl-horizontal dd {
        margin-left: 0;
        margin-bottom: 20px;
    }
    
    /* Lineage Tree */
    .lineage-member {
        margin-left: 0 !important;
    }
    
    /* Header */
    #sp-header .sp-megamenu-parent > li a {
        padding: 10px 15px;
    }
}


/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .search-form,
    .teacher-actions {
        display: none;
    }
    
    .teacher-card {
        page-break-inside: avoid;
        border: 1px solid #093036;
    }
    
    body {
        background: white;
    }
}


/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Background Colors */
.bg-carrot-light {
    background-color: #fff6e7 !important;
}

.bg-carrot-medium {
    background-color: #ffe9c9 !important;
}

.bg-ocean-light {
    background-color: #c9e9eb !important;
}

.bg-ocean-dark {
    background-color: #093036 !important;
}

.bg-ibis-light {
    background-color: #fbd7e7 !important;
}

/* Text Colors */
.text-carrot {
    color: #fbab18 !important;
}

.text-ocean-dark {
    color: #093036 !important;
}

.text-ibis-pink {
    color: #ec008c !important;
}

.text-ibis-dark {
    color: #421129 !important;
}

/* Borders */
.border-carrot {
    border-color: #fbab18 !important;
}

.border-ibis {
    border-color: #ec008c !important;
}

.border-ocean {
    border-color: #093036 !important;
}