/* Vanguard Safe Words Styles */

/* Login Prompt */
.vsw-login-prompt {
    text-align: center;
    padding: 60px 30px;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    border-radius: 16px;
    max-width: 400px;
    margin: 40px auto;
}

.vsw-login-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.vsw-login-prompt h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #333;
}

.vsw-login-prompt p {
    margin: 0 0 25px;
    color: #666;
}

.vsw-login-btn, .vsw-register-btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin: 5px;
    transition: all 0.2s;
}

.vsw-login-btn {
    background: #d63384;
    color: #fff;
}

.vsw-login-btn:hover {
    background: #c22b76;
    color: #fff;
}

.vsw-register-btn {
    background: #fff;
    color: #d63384;
    border: 2px solid #d63384;
}

.vsw-register-btn:hover {
    background: #fdf2f8;
}

/* Submission Form */
.vsw-submission-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.vsw-intro {
    text-align: center;
    margin-bottom: 35px;
}

.vsw-intro h2 {
    font-size: 32px;
    margin: 0 0 15px;
    color: #333;
}

.vsw-intro > p {
    font-size: 17px;
    color: #555;
    margin: 0 0 25px;
}

.vsw-guidelines {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px 25px;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.vsw-guidelines h4 {
    margin: 0 0 12px;
    font-size: 15px;
    color: #333;
}

.vsw-guidelines ul {
    margin: 0;
    padding-left: 20px;
}

.vsw-guidelines li {
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

/* Messages */
.vsw-message {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.vsw-success {
    background: #d1fae5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.vsw-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* Form */
.vsw-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    overflow: hidden;
}

.vsw-form-section {
    padding: 30px;
    border-bottom: 1px solid #eee;
}

.vsw-form-section:last-of-type {
    border-bottom: none;
}

.vsw-form-section h3 {
    margin: 0 0 20px;
    font-size: 18px;
    color: #333;
}

.vsw-section-desc {
    margin: -10px 0 20px;
    font-size: 14px;
    color: #666;
}

.vsw-form-row {
    margin-bottom: 20px;
}

.vsw-form-row:last-child {
    margin-bottom: 0;
}

.vsw-form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.vsw-form-row .required {
    color: #dc2626;
}

.vsw-form-row input[type="text"],
.vsw-form-row textarea,
.vsw-form-row select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vsw-form-row input:focus,
.vsw-form-row textarea:focus,
.vsw-form-row select:focus {
    outline: none;
    border-color: #d63384;
    box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.1);
}

.vsw-form-row textarea {
    resize: vertical;
    min-height: 100px;
}

#vsw_content {
    min-height: 400px;
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
}

.vsw-char-count, .vsw-word-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

.vsw-help {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* Spice Selector */
.vsw-spice-selector {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vsw-spice-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.vsw-spice-option:hover {
    border-color: #f9a8d4;
    background: #fdf2f8;
}

.vsw-spice-option input {
    margin: 0;
}

.vsw-spice-option input:checked + .vsw-spice-label {
    color: #d63384;
}

.vsw-spice-option:has(input:checked) {
    border-color: #d63384;
    background: #fdf2f8;
}

.vsw-spice-label {
    font-weight: 600;
    font-size: 14px;
    min-width: 180px;
}

.vsw-spice-desc {
    font-size: 13px;
    color: #666;
}

/* Checkbox Grid */
.vsw-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.vsw-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.vsw-checkbox:hover {
    background: #f0f0f0;
}

.vsw-checkbox input {
    margin: 0;
}

.vsw-warning-checkbox {
    background: #fef3c7;
}

.vsw-warning-checkbox:hover {
    background: #fde68a;
}

/* Agreement */
.vsw-agreement {
    background: #f8f9fa;
}

.vsw-required-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: #555;
    padding: 0;
    background: none;
}

.vsw-required-check input {
    margin-top: 3px;
}

.vsw-required-check a {
    color: #d63384;
}

/* Submit Actions */
.vsw-form-actions {
    padding: 30px;
    text-align: center;
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
}

.vsw-submit-btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, #d63384, #e91e8c);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.vsw-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(214, 51, 132, 0.4);
}

.vsw-submit-note {
    margin: 15px 0 0;
    font-size: 13px;
    color: #888;
}

/* Stories List */
.vsw-stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vsw-story-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vsw-story-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.vsw-story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.vsw-spice {
    font-size: 14px;
}

.vsw-genre {
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: #666;
}

.vsw-story-title {
    margin: 0 0 8px;
    font-size: 18px;
}

.vsw-story-title a {
    color: #333;
    text-decoration: none;
}

.vsw-story-title a:hover {
    color: #d63384;
}

.vsw-story-author {
    font-size: 13px;
    color: #888;
    margin: 0 0 12px;
}

.vsw-story-excerpt {
    font-size: 14px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 12px;
}

.vsw-story-tropes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.vsw-trope {
    background: #fdf2f8;
    color: #d63384;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.vsw-story-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-bottom: 12px;
}

.vsw-story-warnings {
    background: #fef3c7;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 11px;
    color: #92400e;
    margin-bottom: 12px;
}

.vsw-warning-label {
    font-weight: 600;
}

.vsw-read-btn {
    display: block;
    text-align: center;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    color: #d63384;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s;
}

.vsw-read-btn:hover {
    background: #fdf2f8;
}

/* No Stories */
.vsw-no-stories {
    text-align: center;
    padding: 60px 30px;
    background: #f8f9fa;
    border-radius: 12px;
}

.vsw-no-stories p {
    margin: 0 0 20px;
    color: #666;
}

.vsw-submit-link {
    display: inline-block;
    padding: 12px 25px;
    background: #d63384;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.vsw-submit-link:hover {
    background: #c22b76;
    color: #fff;
}

/* My Stories */
.vsw-my-stories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.vsw-my-stories-header h2 {
    margin: 0;
}

.vsw-new-story-btn {
    padding: 10px 20px;
    background: #d63384;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
}

.vsw-new-story-btn:hover {
    background: #c22b76;
    color: #fff;
}

.vsw-stories-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.vsw-stories-table th,
.vsw-stories-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.vsw-stories-table th {
    background: #f8f9fa;
    font-weight: 600;
    font-size: 13px;
    color: #666;
}

.vsw-stories-table tr:last-child td {
    border-bottom: none;
}

.vsw-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.vsw-status-publish {
    background: #d1fae5;
    color: #065f46;
}

.vsw-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.vsw-status-draft {
    background: #e5e7eb;
    color: #374151;
}

.vsw-pending-note {
    font-size: 12px;
    color: #888;
    font-style: italic;
}

/* Pagination */
.vsw-pagination {
    margin-top: 30px;
    text-align: center;
}

.vsw-pagination a,
.vsw-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border-radius: 6px;
    text-decoration: none;
}

.vsw-pagination a {
    background: #f8f9fa;
    color: #333;
}

.vsw-pagination a:hover {
    background: #d63384;
    color: #fff;
}

.vsw-pagination .current {
    background: #d63384;
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .vsw-stories-grid {
        grid-template-columns: 1fr;
    }
    
    .vsw-checkbox-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .vsw-spice-selector {
        gap: 8px;
    }
    
    .vsw-spice-label {
        min-width: auto;
    }
    
    .vsw-spice-desc {
        display: none;
    }
}

@media (max-width: 480px) {
    .vsw-checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .vsw-stories-table {
        font-size: 14px;
    }
    
    .vsw-stories-table th,
    .vsw-stories-table td {
        padding: 10px;
    }
}
