/* SFWA Card Styles */

.nebula-grid-two-column, .sfwa-cards-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
    gap: 30px !important;
    width: 100%;
    margin-top: 20px;
}

.sfwa-portal-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 5px solid #321866;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* 3. THE IMAGE: Forced height */
.card-image-wrapper {
    position: relative !important;
    width: 100% !important;
    padding-top: 150% !important;
    background: #f0f0f1;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute !important;
    top: 0; left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.sfwa-portal-card.is-pending {
    position: relative ! important;
    z-index: 1;
    opacity: 0.65 !important;
    background-color: #fdfbff !important;
    border-color: #e6e0f0 !important;
    filter: grayscale(30%);
}

.sfwa-portal-card.is-pending::before {
    content: "Pending Confirmation" !important;
    position: absolute !important;
    top: 15px;
    right: 15px;
    z-index: 999 !important;
    background: #321866 !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 20px;
    z-index: 50;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-cat-novel { border-top-color: #D4AF37 !important; } /* Gold */
.card-cat-novella { border-top-color: #C0C0C0 !important; } /* Silver */
.card-cat-novelette { border-top-color: #CD7F32 !important; } /* Bronze */
.card-cat-short-story { border-top-color: #4A90E2 !important; } /* Sky Blue */
.card-cat-poem { border-top-color: #E91E63 !important; } /* Rose */
.card-cat-game-writing { border-top-color: #9C27B0 !important; } /* Purple */
.card-cat-comic { border-top-color: #FF9800 !important; } /* Orange */
.card-cat-andre-norton { border-top-color: #009688 !important; } /* Teal */
.card-cat-bradbury { border-top-color: #795548 !important; } /* Brown */

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    background: #f0f0f1;
    overflow: hidden;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

.card-content {
    padding: 15px;
    flex-grow: 1;
}

.card-name, .card-work-title {
    margin: 0 0 10px;
    font-size: 1.4rem;
}

.card-work-title {
    font-weight: bold;
    font-style: italic;
}

.nomination-line, .author-line {
    font-size: 0.9rem;
    color: #666;
}

.card-bio, .work-description {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.card-bio p, .work-description p {
    margin-bottom: 15px;
}

.card-footer {
    padding: 15px 20px;
    background: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.social-icon.site {
    display: inline-block;
    padding: 8px 15px;
    background: #321866;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-weight: bold;
    font-size: 13px;
    transition: background 0.2s ease;
}

.social-icon.site:hover {
    background: #4a2688;
}

.nebula-grid-two-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
}

.sfwa-portal-card.type-work .card-work-title {
    color: #321866;
    font-style: italic;
}

.sfwa-portal-card.type-finalist .card-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.status-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}
.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }

@media (max-width: 768px) {
    .nebula-grid-two-column {
        grid-template-columns: 1fr;
    }
}


/* The following chunks cover the look and feel of cells in our volunteer tables. I'll break them into a separate css later. */

.status-pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
}
.status-active {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.status-inactive {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.editable-cell {
    position: relative;
    transition: background 0.2s;
}
.editable-cell:hover {
    background: #f0f8ff;
}
.edit-input {
    width: 100%;
    padding: 4px;
    border: 1px solid #2271b1;
    border-radius: 3px;
}

.sfwa-dashboard-wrapper {
    display: block !important;
    overflow-x: auto !important;
    overflow-7: hidden;
    width: 100%;
    position: relative;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
    background: #fff;
    clear: both;
}

.sfwa-data-table {
    display: table !important;
    table-layout: auto !important;
    min-width: 1200px !important; 
    border-collapse: separate !important;
    width: 100%;
}

.sfwa-data-table .sfwa-sticky-col {
    position: sticky !important;
    left: 0 !important;
    z-index: 99 !important;
    background-color: #fff !important;
    border-right: 3px solid #321866 !important;
    min-width: 180px;
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.sfwa-data-table thead th.sfwa-sticky-col {
    z-index: 11;
    background-color: #f0f0f1 !important;
}

.sfwa-data-table tr.alternate td.sfwa-sticky-col {
    background-color: #f9f9f9 !important;
}

.editable-cell {
    position: relative;
    min-width: 200px;
    padding: 10px !important;
    transition: background 0.2s;
}

.editable-cell:hover {
    background: #f0f8ff;
}

.edit-input {
    width: 100%;
    padding: 6px;
    border: 1px solid #2271b1;
    border-radius: 3px;
    box-sizing: border-box;
}

.editable-cell {
    min-width: 200px;
    white-space: nowrap;
}

.tab-content {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-top: none;
    padding: 20px;
}

/*This part is all for a tickertape feature*/

.sfwa-ticker-master {
    max-width: 750px;
    margin: 20px auto;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    overflow: hidden;
}

.ticker-header {
    background: #f6f7f7;
    padding: 10px 15px;
    border-bottom: 1px solid #dcdcde;
}

.ticker-header h3 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #50575e;
}

.sfwa-ticker-container {
    width: 100%;
    height: 90px !important; /* Fixed height to prevent flickering */
    position: relative;
    background: #fff;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.sfwa-ticker-container:hover {
    border-color: #321866;
    cursor: pointer;
}

.sfwa-ticker-container:not(.swiper-initialized) .swiper-slide:not(:first-child) {
    display: none;
}

.ticker-card {
    display: flex !important;
    align-items: center;
    padding: 0 20px;
    height: 100% !important;
    box-sizing: border-box;
}

.ticker-photo {
    flex: 0 0 60px;
    height: 60px;
    margin-right: 20px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid #ccd0d4;
    line-height: 0;
}

.ticker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.ticker-photo a:hover img {
    transform: scale(1.05);
    border-color: #ffca28;
    box-shadow: 0 0 10px rgba(50, 24, 102, 0.2);
}

.ticker-content {
    flex: 1;
    position: relative;
    max-height: 55px; /* Clipping text height */
    font-size: 0.95rem;
    line-height: 1.3;
    color: #2c3338;
    overflow: hidden;
}

.ticker-content b, .ticker-content strong {
    color: #321866;
}

.ticker-content::after {
    content: "Read More...";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(transparent, #ffffff 80%);
    text-align: right;
    font-size: 0.75rem;
    font-weight: bold;
    color

@media (max-width: 900px) { .nebula-grid-two-column { grid-template-columns: 1fr !important; }}