/**
Theme Name: SFWA 2026
Author: M. L. Clark
Description: A child theme from the Astra Theme.
Version: 1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: red-panda-studios
Template: astra
*/

/* Temporary home of Nebula Finalist Table CSS, before addition to the SFWA Service Console */

.nebula-interface {
    border: 2px solid #321866;
    border-radius: 12px;
    background: #ffffff;
    padding: 20px;
    font-family: sans-serif;
}

.sfwa-portal-card {
    background: #fff;
    border: 1px solid #ddd;
    border-top: 10px solid #321866;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 400px; 
}

.sfwa-portal-card.status-unconfirmed {
    opacity: 0.7;
    filter: grayscale(30%);
    border: 2px dashed #7b61ff;
    background: linear-gradient(135deg, #ffffff 0%, #f3f0ff 100%);
    transition: opacity 0.3s ease;
}

.sfwa-portal-card.status-unconfirmed:hover {
    opacity: 1;
}

.sfwa-portal-card.status-unconfirmed::after {
    content: "Confirmation Pending";
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 10px;
    background: #7b61ff;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    letter-spacing: 1px;
}

.type-finalist { border-left: 1px solid #ddd; }
.type-work { border-left: 5px solid #321866; } 

.card-image-wrapper img {
    width: 100%;
    display: block;
    object-fit: cover;
}
.author-photo { height: 300px; }
.work-cover { height: 450px; }

.card-content { padding: 20px; }
.card-name, .card-work-title { font-family: Georgia, serif; color: #321866; margin: 0 0 10px 0; font-size: 1.4rem; }
.card-audio-row { margin-bottom: 15px; }
.audio-btn { background: #f3f0ff; border: 1px solid #321866; color: #321866; padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 0.8rem; }
.card-bio { font-size: 0.9rem; line-height: 1.5; color: #444; margin-top: 15px; }

.card-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 8px; }
.social-icon { background: #321866; color: #fff !important; padding: 4px 10px; border-radius: 4px; font-size: 0.75rem; text-decoration: none; }
.social-icon.site { background: #D4AF37; }

.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 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 15px;
    text-align: center;
}

.audio-toggle {
    background: #f3f0ff;
    border: 1px solid #321866;
    color: #321866;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.postcard-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #321866;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
}

.nav-indicator, .nav-label {
    color: #ffffff;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.nav-btn {
    background: #f3f0ff;
    color: #321866 !important;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
}

.view-tabs { 
    display: flex; 
    flex-wrap: wrap;
    gap: 5px; 
    margin-bottom: -2px; 
}

.view-tab {
    padding: 10px 20px;
    background: #eeeeee;
    border: 2px solid #321866;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    text-decoration: none;
    color: #321866;
    font-weight: bold;
}

.view-tab.active { 
    background: #321866; 
    color: #ffffff; 
}

.nebula-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.nebula-data-table th {
    background: #321866;
    color: #ffffff;
    text-align: left;
    padding: 12px;
    text-transform: uppercase;
}

.nebula-data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.selected-row {
    background-color: #f3f0ff !important;
}

@media screen and (max-width: 600px) {
    .nebula-grid-container {
        display: block !important;
    }
    .nebula-grid-item {
        width: 100% !important;
        float: none;
    }

    .nebula-data-table thead { display: none; }
    .nebula-data-table td {
        display: block;
        width: 100%;
        padding: 10px;
    }
    .nebula-data-table td::before {
        content: attr(data-label);
        font-weight: bold;
        display: block;
        color: #321866;
        font-size: 0.75rem;
    }
}

.audio-link {
    display: inline-block;
    background: #321866;
    color: #ffffff !important;
    padding: 5px 12px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    margin-top: 5px;
}

.view-tabs { 
    display: flex; 
    flex-wrap: wrap;
    gap: 5px; 
    margin-bottom: -2px; 
}

.view-tab {
    padding: 10px 20px;
    background: #eeeeee;
    border: 2px solid #321866;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    text-decoration: none;
    color: #321866;
    font-weight: bold;
}

.view-tab.active { 
    background: #321866; 
    color: #ffffff; 
}

.nebula-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.9rem;
}

.nebula-data-table th {
    background: #321866;
    color: #ffffff;
    text-align: left;
    padding: 12px;
    text-transform: uppercase;
}

.nebula-data-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
}

.selected-row {
    background-color: #f3f0ff !important;
}

.cell-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stack-item {
    font-size: 0.85rem;
    line-height: 1.3;
    color: #444;
}

.stack-item:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 2px;
}

.select-link {
    color: #321866;
    font-weight: bold;
    text-decoration: underline;
}

.select-link:hover {
    color: #7c5cb1;
}

/*End of temporary code - to be moved to SFWA Service Console */


.sfwa-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #ffffff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin: 20px 0;
}

.sfwa-controls {
    margin-bottom: 20px;
}

#sfwa-search {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

#sfwa-search:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.1);
}

.sfwa-table {
    width: 100%;
    border-collapse: collapse;
}

.sfwa-table th {
    background: #f8f9fa;
    color: #555;
    font-weight: 600;
    padding: 12px 15px;
    text-align: left;
    border-bottom: 2px solid #edf0f2;
}

.sfwa-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #edf0f2;
    color: #333;
    font-size: 14px;
}

.status-pill {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-active {
    background: #e6fffa;
    color: #234e52;
}

.status-inactive {
    background: #fff5f5;
    color: #822727;
}

.sfwa-error {
    background: #fff5f5;
    color: #c53030;
    padding: 15px;
    border-left: 4px solid #c53030;
    margin-bottom: 20px;
}