

.novel-result-container {
    padding: 20px;
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
}

.page-header {
    text-align: center;
    width: 100%;
    max-width: 600px;
    margin: auto;
    padding-bottom: 28px;
}

.page-title {
    font-size: 2.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
}

.novel-display-section {
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    border: 15px solid transparent;
    border-radius: 15px;
    padding: 60px 50px;
    position: relative;
    overflow: visible;
    margin: auto;
    max-width: 760px;
    width: 100%;

    border-image: url('../assets/img/frame.png') 15 stretch;

    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.novel-display-section::before {
    content: '';
    position: absolute;
    top: -55px;
    left: -55px;
    width: 100px;
    height: 100px;
    background-image: url('../assets/img/image23.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    opacity: 0.9;
}

.novel-display-section::after {
    content: '';
    position: absolute;
    bottom: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    background-image: url('../assets/img/image22.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 15;
    opacity: 0.9;
}

.novel-metadata {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.novel-metadata::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background-image: url('../assets/img/Line2.png');
    background-repeat: repeat-x;
    background-size: auto 4px;
    background-position: left center;
}

#novelTitle,
.novel-title {
    text-align: center;
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 30px;
    line-height: 1.4;
}

.novel-content-wrapper {
    position: relative;
    padding: 30px 40px;
    margin: 20px 0;
    padding-bottom: 50px;
    z-index: 3;

    background-image: url('../assets/img/Line 2.png');
    background-repeat: repeat-x;
    background-size: auto 4px;
    background-position: left bottom;
}

.novel-content-wrapper::before {
    content: '';
    position: absolute;
    top: -77px;
    left: 30px;
    width: 30px;
    height: 30px;
    background-image: url('../assets/img/quotes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 5;
}

.novel-content-wrapper::after {
    content: '';
    position: absolute;
    padding-top: 20px;
    bottom: 10px;
    right: 30px;
    width: 30px;
    height: 30px;
    background-image: url('../assets/img/quotes.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: rotate(180deg); 
    z-index: 5;
}

#novelContent,
.novel-content {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: left;
    white-space: pre-wrap;
    word-break: keep-all;
    overflow-wrap: break-word;
    margin-bottom: 0;
    min-height: 200px;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-light);
}

.action-btn {
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.action-btn.copy-btn,
.action-btn.save-text-btn,
.action-btn.save-diary-btn,
.action-btn.save-image-btn {
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    border: 1px solid transparent;
    border-radius: 50px;
    color: #2C3E50;
    position: relative;
    overflow: visible;
    width: 200px;
    text-align: center;
    border: 2px solid;

    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.action-btn.copy-btn:hover,
.action-btn.save-text-btn:hover,
.action-btn.save-diary-btn:hover,
.action-btn.save-image-btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 25px rgba(0, 0, 0, 0.1),
        0 6px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.btn-icon {
    font-size: 16px;
}

.btn-text {
    font-weight: 600;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner-large {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

.loading-text {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.signup-promotion {
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    border: 15px solid transparent;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    overflow: visible;
    max-width: 760px;
    width: 100%;
    margin: auto;
    border-image: url('../assets/img/frame.png') 15 stretch;
    visibility: visible !important;
}

.promotion-badge {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.4), 
        rgba(255, 107, 107, 0.4));
    color: var(--bg-white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 20px;
    display: inline-block;
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.comparison-column {
    padding: 20px;
    border-radius: 16px;
    background: var(--bg-light);
}

.comparison-column.highlight {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(168, 85, 247, 0.1));
    border: 2px solid var(--primary-color);
}

.comparison-title {
    font-size: 1.1em;
    font-weight: 700;
    margin-bottom: 15px;
    text-align: center;
}

.comparison-title.guest {
    color: var(--text-secondary);
}

.comparison-title.member {
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.feature-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.feature-icon.yes {
    color: #4caf50;
}

.feature-icon.no {
    color: #f44336;
}

@media (max-width: 768px) {
    .page-header {
        width: 90%;
        max-width: 500px;
    }

    .novel-display-section {
        width: 90%;
        max-width: 600px;
        padding: 40px 30px;
        margin: 20px auto 8%;
        border: 10px solid transparent;
        border-image: url('../assets/img/frame.png') 10 stretch;
    }

    .novel-result-container {
        padding: 20px;
    }

    .page-title {
        font-size: 2em;
    }

    .novel-title {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .novel-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .action-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .novel-content-wrapper::before {
        width: 25px;
        height: 25px;
        top: -72px;
        left: 25px;
    }

    .novel-content-wrapper::after {
        width: 25px;
        height: 25px;
        bottom: 8px;
        right: 25px;
    }

    .signup-promotion {
        width: 90%;
        max-width: 600px;
        margin: 20px auto;
        padding: 20px;
        border: 10px solid transparent;
        border-image: url('../assets/img/frame.png') 10 stretch;
    }

    .comparison-table {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .comparison-column {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .page-header {
        width: 95%;
        padding-bottom: 20px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .novel-display-section {
        width: 95%;
        padding: 30px 20px;
        margin: 15px auto 6%;
        border: 8px solid transparent;
        border-image: url('../assets/img/frame.png') 8 stretch;
    }

    .novel-display-section::before {
        width: 60px;
        height: 60px;
        top: -35px;
        left: -35px;
    }

    .novel-display-section::after {
        width: 80px;
        height: 80px;
        bottom: -45px;
        right: -45px;
    }

    .novel-content {
        font-size: 16px;
        line-height: 1.8;
    }

    .action-buttons {
        gap: 15px;
        margin-top: 40px;
    }

    .action-btn {
        max-width: 280px;
        padding: 12px 20px;
        font-size: 13px;
    }

    .signup-promotion {
        width: 95%;
        margin: 15px auto;
        padding: 20px 15px;
        border: 6px solid transparent;
        border-image: url('../assets/img/frame.png') 6 stretch;
    }

    .promotion-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin-bottom: 15px;
    }

    .comparison-column {
        padding: 15px;
    }
}