/**
 * Frontend Styles
 * EMG Committee Champions Plugin
 */

/* Container */
.emg-cc-items {
    margin: 20px 0;
}

/* Single Item */
.emg-cc-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease;
}

.emg-cc-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Committee Styles */
.emg-cc-committee-content .emg-cc-title {
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-size: 24px;
    font-weight: 600;
}

.emg-cc-committee-content .emg-cc-description {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #3c434a;
}

.emg-cc-committee-content .emg-cc-body {
    margin-bottom: 15px;
    line-height: 1.6;
}

.emg-cc-committee-content .emg-cc-excerpt {
    color: #646970;
    font-style: italic;
}

.emg-cc-committee-content .emg-cc-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
    color: #646970;
    font-size: 14px;
}

/* Champion Styles */
.emg-cc-champion-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.emg-cc-champion-content .emg-cc-photo {
    flex-shrink: 0;
}

.emg-cc-champion-content .emg-cc-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e1e1e1;
}

.emg-cc-champion-content .emg-cc-name {
    margin-top: 0;
    margin-bottom: 5px;
    color: #1d2327;
    font-size: 22px;
    font-weight: 600;
}

.emg-cc-champion-content .emg-cc-title-position {
    color: #2271b1;
    font-weight: 600;
    margin-bottom: 10px;
}

.emg-cc-champion-content .emg-cc-bio {
    margin-bottom: 15px;
    line-height: 1.6;
    color: #3c434a;
}

.emg-cc-champion-content .emg-cc-contact {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 14px;
}

.emg-cc-champion-content .emg-cc-email {
    color: #2271b1;
    text-decoration: none;
}

.emg-cc-champion-content .emg-cc-email:hover {
    text-decoration: underline;
}

.emg-cc-champion-content .emg-cc-phone {
    color: #646970;
}

.emg-cc-champion-content .emg-cc-excerpt {
    color: #646970;
    font-style: italic;
}

/* Widget Styles */
.emg-cc-latest-widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.emg-cc-latest-widget-item {
    padding: 15px 0;
    border-bottom: 1px solid #e1e1e1;
}

.emg-cc-latest-widget-item:last-child {
    border-bottom: none;
}

.emg-cc-latest-widget-item h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
}

.emg-cc-latest-widget-item p {
    margin: 0 0 5px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #646970;
}

.emg-cc-latest-widget-item .emg-cc-date,
.emg-cc-latest-widget-item .emg-cc-position {
    font-size: 12px;
    color: #646970;
}

/* Submission Widget */
.emg-cc-submission-widget {
    text-align: center;
}

.emg-cc-open-submission-form {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.emg-cc-open-submission-form:hover {
    background: #135e96;
}

/* Modal */
.emg-cc-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.emg-cc-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    position: relative;
}

.emg-cc-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.emg-cc-close:hover,
.emg-cc-close:focus {
    color: #000;
}

/* Form */
.emg-cc-form {
    margin-top: 20px;
}

.emg-cc-form-group {
    margin-bottom: 20px;
}

.emg-cc-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.emg-cc-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.emg-cc-form-group .required {
    color: #d63638;
}

.emg-cc-form-group input[type="text"],
.emg-cc-form-group input[type="date"],
.emg-cc-form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.emg-cc-form-group textarea {
    resize: vertical;
}

.emg-cc-form-message {
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: none;
}

.emg-cc-form-message.success {
    display: block;
    background: #d7fce4;
    border-left: 4px solid #00a32a;
    color: #007017;
}

.emg-cc-form-message.error {
    display: block;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    color: #8b0000;
}

.emg-cc-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.emg-cc-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.emg-cc-btn-primary {
    background: #2271b1;
    color: #fff;
}

.emg-cc-btn-primary:hover {
    background: #135e96;
}

.emg-cc-btn-secondary {
    background: #f0f0f1;
    color: #2c3338;
}

.emg-cc-btn-secondary:hover {
    background: #dcdcde;
}

/* Error Messages */
.emg-cc-error {
    color: #d63638;
    background: #fcf0f1;
    border-left: 4px solid #d63638;
    padding: 12px;
    border-radius: 4px;
}

.emg-cc-no-items {
    color: #646970;
    font-style: italic;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .emg-cc-champion-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .emg-cc-champion-content .emg-cc-contact {
        align-items: center;
    }
    
    .emg-cc-form-row {
        grid-template-columns: 1fr;
    }
    
    .emg-cc-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
}
