/* Editor Styles */
.leadership-card-editor {
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e2e4e7;
}

.leadership-card-preview {
    max-width: 400px;
    margin: 0 auto;
}

.leadership-card-photo-section {
    margin-bottom: 20px;
}

.leadership-card-photo-control {
    position: relative;
}

.leadership-card-photo-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background-color: #000;
    height: 300px;
}

.leadership-card-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.leadership-card-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.leadership-card-photo-preview:hover .leadership-card-photo-overlay {
    opacity: 1;
}

.leadership-card-photo-placeholder {
    background-color: #f0f0f0;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.leadership-card-upload-button {
    margin-bottom: 10px !important;
}

.leadership-card-content {
    text-align: center;
}

.leadership-card-name {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
    color: #7437f8 !important;
}

.leadership-card-role {
    font-size: 1.1rem !important;
    font-weight: 400 !important;
    margin-bottom: 1rem !important;
    color: #666 !important;
}

.leadership-card-accomplishments-preview,
.leadership-card-linkedin-preview {
    margin-top: 15px;
    padding: 15px;
    background-color: #fff;
    border-radius: 5px;
    border: 1px solid #e2e4e7;
    text-align: left;
    font-size: 14px;
}

.leadership-card-accomplishments-preview ul {
    margin: 10px 0 0 0;
    padding-left: 20px;
}

.leadership-card-accomplishments-preview li {
    margin-bottom: 8px;
}

.leadership-card-notice {
    margin-top: 15px !important;
}

/* Frontend Styles - Based on polyfen2024 design */
.wp-block-polypress-leadership-card {
    margin-bottom: 2rem;
}

.leadership-card {
    position: relative;
    padding: 24px;
    padding-top: 290px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    overflow: hidden;
    height: 420px;
    justify-content: flex-start;
    background-color: #000;
    transition: all 0.5s ease-out;
    border-radius: var(--border-radius-card, 8px);
    border: 1px solid rgba(116, 55, 248, 0.3);
}

.leadership-card * {
    position: relative;
    z-index: 2;
}

.leadership-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 250px, rgb(0, 0, 0) 300px);
    pointer-events: none;
    transition: all 0.5s ease-out;
    z-index: 1;
}

.leadership-card .leadership-card-name {
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: transparent;
    background: linear-gradient(225deg, #D837F8 0%, #3747F8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.5rem;
    line-height: 1.2;
}

.leadership-card .leadership-card-role {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fff;
    margin-bottom: 1rem;
}

.leadership-card .leadership-card-accomplishments {
    display: none;
    color: #fff;
}

.leadership-card .leadership-card-accomplishments ul {
    list-style: none;
    padding-left: 20px;
    margin: 0;
}

.leadership-card .leadership-card-accomplishments li {
    margin-bottom: 0.8rem;
    position: relative;
}

.leadership-card .leadership-card-accomplishments li::before {
    content: "•";
    color: #D837F8;
    font-weight: bold;
    position: absolute;
    left: -20px;
}

.leadership-card .linkedin-icon {
    position: absolute;
    top: 22px;
    right: 24px;
    background-color: rgba(116, 55, 248, 0.5);
    border-radius: 4px;
    padding: 8px;
    transition: all 0.3s ease;
    z-index: 3;
}

.leadership-card .linkedin-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Hover Effects */
.leadership-card:hover {
    padding-top: 24px;
    border-color: rgba(116, 55, 248, 0.8);
    box-shadow: 0 0 6px 0px #7437f8, 0 8px 4px -4px rgba(0, 0, 0, 0.4);
    transition: all 0.5s ease-out;
}

.leadership-card:hover .leadership-card-accomplishments {
    display: block;
}

.leadership-card:hover::after {
    background: linear-gradient(to top right, rgb(0, 0, 0) 0%, rgba(30, 23, 88, 0.9) 100%);
    transition: all 0.5s ease-out;
}

.leadership-card:hover .linkedin-icon {
    background: linear-gradient(225deg, #D837F8 0%, #3747F8 100%);
    box-shadow: 0 0 4px 0.5px #D837F8, 0 8px 4px -4px rgba(0, 0, 0, 0.4);
}

.leadership-card .linkedin-icon:hover {
    background: linear-gradient(225deg, #D837F8 0%, #3747F8 100%) !important;
    box-shadow: 0 0 4px 0.5px #D837F8, 0 8px 4px -4px rgba(0, 0, 0, 0.4) !important;
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    .leadership-card {
        height: 380px;
        padding-top: 250px;
    }
    
    .leadership-card:hover {
        padding-top: 20px;
    }
    
    .leadership-card .leadership-card-name {
        font-size: 1.3rem;
    }
    
    .leadership-card .leadership-card-role {
        font-size: 1rem;
    }
    
    .leadership-card .linkedin-icon {
        top: 16px;
        right: 16px;
        padding: 6px;
    }
    
    .leadership-card .linkedin-icon img {
        width: 20px;
        height: 20px;
    }
}

/* Dark mode support */
.dark-mode .leadership-card {
    border-color: rgba(116, 55, 248, 0.4);
}

.dark-mode .leadership-card:hover {
    border-color: rgba(116, 55, 248, 0.9);
} 