/* Character Page - Basic Layout Styles */

.first-trial-banner {
    background: #76d7c4;
    color: white;
    text-align: center;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.first-trial-banner .banner-text {
    display: block;
    animation: pulse-text 2s ease-in-out infinite;
}

@keyframes pulse-text {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

.character-info-section {
    padding: 20px 16px;
    text-align: center;
    background: var(--bg-secondary);
}

/* Character name + status badge row */
.character-name-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.character-detail-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
}

.online-badge {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--danger, #ef4444);
    padding: 5px 12px;
    border-radius: 14px;
    animation: online-pulse 2s ease-in-out infinite;
    white-space: nowrap;
}

@keyframes online-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.02);
    }
}

.online-badge.status-pulse {
    animation: statusPulseEffect 0.5s ease-out 3;
}

@keyframes statusPulseEffect {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    50% {
        transform: scale(1.1);
        box-shadow: 0 0 10px 5px rgba(239, 68, 68, 0.4);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

.busy-badge-detail {
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--warning, #f59e0b);
    padding: 5px 12px;
    border-radius: 14px;
    white-space: nowrap;
}

/* Stats area (rating, call count, price) */
.character-detail-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 14px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-divider {
    color: var(--text-light);
    font-weight: 300;
}

.stat-price {
    font-weight: 600;
    color: var(--primary);
}

/* Action buttons */
.character-action-buttons {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.action-btn:hover {
    background: var(--bg-secondary);
    border-color: var(--primary);
    color: var(--primary);
}

.action-btn.following {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.action-btn.following:hover {
    background: var(--primary-dark, #5cbfad);
    color: white;
}

.action-btn svg {
    flex-shrink: 0;
}

.action-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Section common styles */
.character-section {
    padding: 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.character-section-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
}

/* Description section */
.character-description-section {
    padding: 16px;
}

.character-description {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
    word-break: keep-all;
}

/* Quill HTML content styles */
.character-description p {
    margin: 0 0 0.8em 0;
}

.character-description p:last-child {
    margin-bottom: 0;
}

.character-description h1,
.character-description h2,
.character-description h3 {
    color: var(--text);
    margin: 1em 0 0.5em 0;
}

.character-description h1:first-child,
.character-description h2:first-child,
.character-description h3:first-child {
    margin-top: 0;
}

.character-description ul,
.character-description ol {
    margin: 0.5em 0;
    padding-left: 1.5em;
}

.character-description a {
    color: var(--primary);
    text-decoration: underline;
}

.character-description strong {
    font-weight: 600;
    color: var(--text);
}

/* Mobile Responsive Styles */
@media (max-width: 480px) {
    .first-trial-banner {
        padding: 8px 12px;
        font-size: 12px;
    }

    .character-info-section {
        padding: 16px 12px;
    }

    .character-name-row {
        gap: 8px;
        flex-wrap: wrap;
    }

    .character-detail-name {
        font-size: 20px;
    }

    .online-badge,
    .busy-badge-detail {
        font-size: 10px;
        padding: 4px 10px;
    }

    .character-detail-stats {
        font-size: 12px;
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .character-action-buttons {
        gap: 6px;
    }

    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .character-section {
        padding: 14px 12px;
    }

    .character-section-title {
        font-size: 14px;
    }

    .character-description {
        font-size: 13px;
        line-height: 1.6;
    }
}

@media (max-width: 360px) {
    .character-detail-name {
        font-size: 18px;
    }

    .character-detail-stats {
        font-size: 11px;
    }

    .action-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
}
