/**
 * Task Forces - Frontend Styles
 */

/* Wrapper */
.tf-wrapper {
    font-family: inherit;
    padding: 16px;
    box-sizing: border-box;
    background-color: #0497B9;
}

@media (min-width: 768px) {
    .tf-wrapper {
        padding: 32px;
    }
}

@media (min-width: 1024px) {
    .tf-wrapper {
        padding: 48px;
    }
}

/* Grid */
.tf-grid {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* Card Item - Grid Item Container */
.tf-card-item {
    width: 100%;
    display: flex;
    flex-direction: column;
}

@media (min-width: 640px) {
    .tf-card-item {
        width: calc(50% - 8px);
    }
}

@media (min-width: 1024px) {
    .tf-card-item {
        width: calc(33.333% - 11px);
    }
}

/* Card */
.tf-card {
    position: relative;
    width: 100%;
    height: 384px;
    overflow: hidden;
    cursor: pointer;
    isolation: isolate;
}

/* Card Background */
.tf-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: top center;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    transition: transform 0.7s ease-out, filter 0.5s ease;
}

.tf-card:hover .tf-card-bg {
    transform: scale(1.1);
    filter: grayscale(0);
}

/* Color Overlays */
.tf-card-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    mix-blend-mode: multiply;
    transition: opacity 0.5s ease;
}

.tf-card:hover .tf-card-overlay {
    opacity: 0.6;
}

/* Add text contrast gradient */
.tf-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    z-index: 1;
    transition: opacity 0.5s ease;
}

.tf-card:hover::before {
    opacity: 0;
}

/* Hover Arrow Indicator */
.tf-hover-arrow {
    position: absolute;
    z-index: 10;
    color: rgba(255, 255, 255, 0.8);
    animation: tf-arrow-bounce 1.5s ease-in-out infinite;
    pointer-events: none;
}

.tf-hover-arrow svg {
    width: 100%;
    height: 100%;
}

.tf-card:hover .tf-hover-arrow,
.tf-card.tf-expanded .tf-hover-arrow {
    opacity: 0;
    animation: none;
}

@keyframes tf-arrow-bounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

/* Arrow Responsive Visibility */
@media (max-width: 1024px) {
    .tf-hover-arrow.tf-arrow-desktop {
        display: none !important;
    }
}

@media (min-width: 1025px) {
    .tf-hover-arrow.tf-arrow-mobile {
        display: none !important;
    }
}

/* Color Schemes - Softened */
.tf-color-teal .tf-card-overlay,
.tf-color-teal.tf-modal-header {
    background: linear-gradient(to top, #2d9a8e 0%, #5ec4b8 100%);
}

.tf-color-amber .tf-card-overlay,
.tf-color-amber.tf-modal-header {
    background: linear-gradient(to top, #c9860f 0%, #e5a832 100%);
}

.tf-color-indigo .tf-card-overlay,
.tf-color-indigo.tf-modal-header {
    background: linear-gradient(to top, #6366cc 0%, #8183e8 100%);
}

.tf-color-rose .tf-card-overlay,
.tf-color-rose.tf-modal-header {
    background: linear-gradient(to top, #d44c6e 0%, #e87a94 100%);
}

.tf-color-emerald .tf-card-overlay,
.tf-color-emerald.tf-modal-header {
    background: linear-gradient(to top, #2aa77a 0%, #52c99a 100%);
}

.tf-color-blue .tf-card-overlay,
.tf-color-blue.tf-modal-header {
    background: linear-gradient(to top, #4a82d9 0%, #6e9ee8 100%);
}

.tf-color-lime .tf-card-overlay,
.tf-color-lime.tf-modal-header {
    background: linear-gradient(to top, #78a82a 0%, #9ac450 100%);
}

/* New Color Options */
.tf-color-purple .tf-card-overlay,
.tf-color-purple.tf-modal-header {
    background: linear-gradient(to top, #8855cc 0%, #a67ae0 100%);
}

.tf-color-cyan .tf-card-overlay,
.tf-color-cyan.tf-modal-header {
    background: linear-gradient(to top, #2aa8b8 0%, #58c7d4 100%);
}

.tf-color-orange .tf-card-overlay,
.tf-color-orange.tf-modal-header {
    background: linear-gradient(to top, #d46a2a 0%, #e89050 100%);
}

.tf-color-slate .tf-card-overlay,
.tf-color-slate.tf-modal-header {
    background: linear-gradient(to top, #4a5568 0%, #718096 100%);
}

.tf-color-pink .tf-card-overlay,
.tf-color-pink.tf-modal-header {
    background: linear-gradient(to top, #c45c9a 0%, #e080b8 100%);
}

/* Label */
.tf-label {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 20;
    background: white;
    color: black;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 8px;
    border-bottom-right-radius: 4px;
}

/* Card Content */
.tf-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 24px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tf-card:hover .tf-card-content,
.tf-card.is-open .tf-card-content {
    opacity: 0;
    transform: translateY(-16px);
}

@media (min-width: 1024px) {
    .tf-card .tf-learn-more-btn {
        display: none;
    }
}

.tf-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tf-separator {
    margin-top: 6px;
    height: 2px;
    width: 48px;
    background: white;
    transition: width 0.5s ease;
}

.tf-card:hover .tf-separator,
.tf-card.is-open .tf-separator {
    width: 100%;
}

.tf-lead-name {
    margin: 6px 0 0 0;
    margin-bottom: 0 !important;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: white;
}

.tf-lead-role {
    margin: 2px 0 0 0;
    margin-bottom: 0 !important;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.tf-learn-more-btn {
    margin-top: 16px;
    padding: 8px 24px;
    border: 1px solid white;
    background: transparent;
    color: white;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tf-learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Custom Button */
.tf-custom-btn {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    text-align: center;
    box-sizing: border-box;
}

.tf-custom-btn:hover {
    transform: translateY(-2px);
}

/* Custom Button Wrapper - Outside Card */
.tf-custom-btn-wrapper {
    width: 100%;
    display: flex;
    box-sizing: border-box;
}

.tf-custom-btn-align-left {
    justify-content: flex-start;
}

.tf-custom-btn-align-center {
    justify-content: center;
}

.tf-custom-btn-align-right {
    justify-content: flex-end;
}

/* Slide Panel */
.tf-slide-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 20;
    background: white;
    padding: 18px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.tf-card:hover .tf-slide-panel {
    transform: translateY(0);
}

.tf-card.is-open .tf-slide-panel {
    transform: translateY(0);
}

@media (max-width: 1023px) {
    .tf-card:hover .tf-slide-panel {
        transform: translateY(100%);
    }

    .tf-card.is-open .tf-slide-panel {
        transform: translateY(0);
    }

    .tf-card:hover .tf-card-content {
        opacity: 1;
        transform: translateY(0);
    }

    .tf-card.is-open .tf-card-content {
        opacity: 0;
        transform: translateY(-16px);
    }
}

.tf-close-panel {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
}

.tf-close-panel:hover {
    color: #111827;
}

@media (min-width: 1024px) {
    .tf-close-panel {
        display: none;
    }
}

.tf-panel-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
}

.tf-panel-bio {
    flex-grow: 1;
    overflow-y: auto;
    font-size: 14.5px;
    line-height: 1.5;
    color: #4b5563;
}

/* Hashtag Cloud */
.tf-hashtags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tf-hashtag {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f3f4f6;
    color: #374151;
    font-size: 12px;
    font-weight: 500;
    border-radius: 16px;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.tf-hashtag:hover {
    background-color: #e5e7eb;
    color: #111827;
}

.tf-panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.tf-panel-footer {
    flex-shrink: 0;
    border-top: 1px solid #f3f4f6;
    padding-top: 4px;
}

.tf-panel-lead {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    margin: 0 0 4px 0 !important;
}

.tf-panel-title-custom {
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.tf-panel-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.tf-read-bio-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    background: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: black;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.tf-read-bio-btn:hover {
    background: #f9fafb !important;
    border-color: #1f2937 !important;
    color: #000000 !important;
}

.tf-linkedin-btn {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tf-linkedin-btn:hover {
    transform: scale(1.1);
}

.tf-submit-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #0497b9;
    color: white;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: filter 0.2s ease;
}

.tf-submit-btn:hover {
    filter: brightness(1.1);
    color: white;
}

/* Modal */
.tf-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}

.tf-modal-overlay.is-active {
    display: flex;
}

.tf-modal-content {
    position: relative;
    width: 100%;
    max-width: 672px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.tf-modal-header {
    position: relative;
    padding: 32px;
    color: white;
}

.tf-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: background 0.2s ease;
}

.tf-modal-close:hover {
    background: rgba(0, 0, 0, 0.4);
}

.tf-modal-tf-name {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 8px 0;
    opacity: 0.9;
}

.tf-modal-name {
    font-size: 30px;
    font-weight: 700;
    margin: 0 0 4px 0;
    line-height: 1.2;
    color: #ffffff !important;
}

.tf-modal-role {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    opacity: 0.9;
}

.tf-modal-bio {
    max-height: 60vh;
    overflow-y: auto;
    padding: 24px 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #4b5563;
}

.tf-modal-bio p {
    margin: 0 0 16px 0;
}

.tf-modal-bio h4 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #111827;
    margin: 24px 0 4px 0;
}

.tf-modal-bio ul {
    list-style: disc;
    padding-left: 20px;
    margin: 0 0 16px 0;
}

.tf-modal-bio li {
    margin-bottom: 4px;
}

.tf-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid #f3f4f6;
    background: #f9fafb;
}

.tf-modal-footer button {
    padding: 8px 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tf-modal-footer button:hover {
    color: #111827;
}