
[v-cloak] {
    opacity: 0;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    background: rgba(3, 80, 80, 0.15);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(3, 80, 80, 0.1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.icon-btn {
    background: none;
    border: none;
    color: #035050;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn:hover {
    color: #166a6a;
    transform: scale(1.1);
}

.icon-btn:focus {
    outline-offset: 2px;
    border-radius: 4px;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header-logo {
    height: 40px;
    width: auto;
}

.brand-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #CC5500;
    margin-left: 0.5rem;
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #f56200;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Main Content */
main {
    flex: 1;
    padding: 2rem;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* Writing Card */
.writing-card {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

/* Form Fields */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: inherit;
}

.form-input:hover {
    border-color: #166a6a;
    background-color: white;
}

.form-input:focus {
    outline: none;
    border-color: #166a6a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(22, 106, 106, 0.1);
}

.form-input:disabled {
    background-color: #f0f0f0;
    color: #999999;
    cursor: not-allowed;
}

/* Text Editor */
.text-editor {
    width: 100%;
    min-height: 300px;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.8;
    transition: all 0.3s ease;
    background-color: #fafafa;
    font-family: inherit;
    resize: vertical;
}

.text-editor:hover {
    border-color: #166a6a;
    background-color: white;
}

.text-editor:focus {
    outline: none;
    border-color: #166a6a;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(22, 106, 106, 0.1);
}

/* Word Counter */
.word-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.word-count {
    font-weight: 600;
}

.word-count.normal {
    color: #166a6a;
}

.word-count.warning {
    color: #f56200;
}

.word-count.danger {
    color: #d32f2f;
}

.word-message {
    font-size: 0.85rem;
    color: #666666;
}

/* Author Info */
.author-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4f1059;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.author-details {
    flex: 1;
}

.author-name {
    color: #4f1059;
    font-weight: 600;
    font-size: 1rem;
}

.author-time {
    color: #999999;
    font-size: 0.85rem;
}

/* Go to Press Button */
.go-to-press-btn {
    background-color: #166a6a;
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    box-shadow: 0 4px 12px rgba(22, 106, 106, 0.3);
}

.go-to-press-btn:hover {
    background-color: #033A50;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(3, 58, 80, 0.4);
}

.go-to-press-btn:focus {
    outline-offset: 3px;
}

.go-to-press-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* SEED Popup Overlay */
.seed-popup-overlay {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.seed-popup-overlay.active {
    display: flex;
}

.seed-popup {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    max-width: 650px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.popup-close:hover {
    background: #f5f5f5;
    color: #333333;
}

.popup-close:focus {
}

.popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 1.5rem;
}

/* SEED List */

.seed-create-btn {
    background-color: #166a6a;
    color: white;
    border: none;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.seed-create-btn:hover {
    background-color: #033A50;
}

.seed-create-btn:focus {
    outline-offset: 2px;
}

.seed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.seed-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #166a6a;
    border-radius: 10px;
    background: #f9fafa;
}

.seed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #166a6a;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.seed-content {
    flex: 1;
}

.seed-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.25rem;
}

.seed-subtitle {
    font-size: 0.85rem;
    color: #666666;
}

/* Add SEED Section */
.add-seed-section {
    border: 2px solid #f56200;
    border-radius: 10px;
    padding: 1.5rem;
    background: #fff9f5;
    margin-bottom: 1rem;
}

.add-seed-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.add-seed-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f56200;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.add-seed-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
}

.seed-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.seed-input {
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.seed-input:focus {
    outline: none;
    border-color: #f56200;
    box-shadow: 0 0 0 3px rgba(245, 98, 0, 0.1);
}

.seed-help-text {
    font-size: 0.85rem;
    color: #666666;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.add-seed-btn {
    background-color: #f56200;
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-seed-btn:hover {
    background-color: #CC5500;
    transform: translateY(-1px);
}

.add-seed-btn:focus {
    outline-offset: 2px;
}

.add-seed-btn:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
    transform: none;
}

.seed-limit-message {
    color: #666666;
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem;
}

/* Popup Action Buttons */
.popup-actions {
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e0e0e0;
}

.publish-btn {
    flex: 1;
    background-color: #035050;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.publish-btn:hover {
    background-color: #033A50;
    transform: translateY(-1px);
}

.publish-btn:focus {
    outline-offset: 2px;
}

.save-draft-btn {
    flex: 1;
    background-color: #4f1059;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.save-draft-btn:hover {
    background-color: #3f0450;
    transform: translateY(-1px);
}

.save-draft-btn:focus {
    outline-offset: 2px;
}

/* Footer */

footer a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #166a6a;
}

footer a:focus {
    outline-offset: 2px;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    .header-left,
    .header-right {
        gap: 1rem;
    }

    .brand-text {
        display: none;
    }

    .back-link span {
        display: none;
    }

    main {
        padding: 1.5rem;
    }

    .writing-card {
        padding: 1.5rem;
    }

    .text-editor {
        min-height: 250px;
        font-size: 1rem;
    }

    .seed-popup {
        padding: 2rem 1.5rem;
    }

    .popup-actions {
        flex-direction: column;
    }

    footer {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .seed-item {
        flex-wrap: wrap;
    }

    .go-to-press-btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }
}