

.poem-result-layout {
    gap: 40px;
}

.poem-result-content {
    background: var(--bg-white);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.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;
    background: var(--text-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.poem-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.poem-date, .poem-style, .poem-length {

    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);

}

.poem-display {
    background: linear-gradient(135deg, #f8faff, #f0f4ff);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    min-height: 300px;
    position: relative;
    text-align: center;
}

.poem-container {
    max-width: 600px;
    margin: 0 auto;
}

.poem-content-wrapper {
    position: relative;
    padding: 30px 40px;
    margin: 20px 0;
    padding-bottom: 50px;
    z-index: 3;

    background-image: url('../assets/img/Line%202.png');
    background-repeat: repeat-x;
    background-size: auto 4px;
    background-position: left bottom;
}

.poem-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;
}

.poem-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;
}

.poem-content {
    font-family: 'Gowun Dodum', sans-serif;
    font-size: 18px;
    line-height: 2;
    color: var(--text-primary);
    white-space: pre-line;
    font-weight: 400;
    letter-spacing: 0.5px;
    text-align: center;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    padding-bottom: 20px;
}

.poem-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 200px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 80px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.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;
}

.additional-actions {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.additional-btn {
    display: flex;
    align-items: center;
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 20px 25px;
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
    width: 100%;
    text-decoration: none;
}

.additional-btn:hover {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.additional-btn .btn-icon {
    font-size: 24px;
    margin-right: 20px;
    min-width: 24px;
}

.additional-btn .btn-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.additional-btn .btn-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.additional-btn.new-style-btn .btn-icon {
    background: linear-gradient(135deg, #ff6b6b, #feca57);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.additional-btn.new-poem-btn .btn-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.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;
}

.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;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}

.feature-icon {
    margin-right: 10px;
    font-size: 16px;
}

.feature-icon.yes {
    color: #10b981;
}

.feature-icon.no {
    color: #ef4444;
}

.promotion-action {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.promotion-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.upgrade-btn {
    background: linear-gradient(135deg, rgba(186, 225, 255, 0.2), rgba(255, 179, 186, 0.2));
    color: #2C3E50;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.upgrade-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 20px 0 15px 0;
    padding-bottom: 8px;
}

.section-title:first-of-type {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .page-header {
        width: 90%;
        max-width: 500px;
    }

    .poem-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;
    }

    .poem-result-content {
        padding: 20px;
        margin: 20px;
        border-radius: 16px;
    }

    .page-title {
        font-size: 2em;
    }

    .poem-info {
        gap: 10px;
    }

    .poem-display {
        padding: 30px 20px;
    }

    .poem-text {
        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;
    }

    .additional-btn {
        padding: 15px 20px;
    }

    .additional-btn .btn-icon {
        font-size: 20px;
        margin-right: 15px;
    }

    .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;
    }

    .style-selection {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
    }

    .cancel-btn, .confirm-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .page-header {
        width: 95%;
        padding-bottom: 20px;
    }

    .page-title {
        font-size: 1.8em;
    }

    .poem-display-section {
        width: 95%;
        padding: 30px 20px;
        margin: 15px auto 6%;
        border: 8px solid transparent;
        border-image: url('../assets/img/frame.png') 8 stretch;
    }

    .poem-display-section::before {
        width: 60px;
        height: 60px;
        top: -35px;
        left: -35px;
    }

    .poem-display-section::after {
        width: 80px;
        height: 80px;
        bottom: -45px;
        right: -45px;
    }

    .poem-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;
    }

}

.poem-result-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.poem-display-section {
    background: linear-gradient(135deg, #fefefe 0%, #f9f9f9 100%);
    border: 15px solid transparent;
    border-radius: 15px;
    padding: 60px 50px;
    margin: 40px 40px 10% 40px;
    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);
}

.poem-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;
}

.poem-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;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(30deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(30deg); }
}

.poem-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;
}

.poem-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;
}

.poem-date::before {
    margin-right: 4px;
}

.poem-style::before {
    margin-right: 4px;
}

.poem-author::before {
    margin-right: 4px;
}

.poem-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-top: 0;
    margin-bottom: 25px;
    position: relative;
    z-index: 3;
}

