/* ========================================
   ROAST MY CONVERSATION — PAGE STYLES
   ======================================== */

.roast-main {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Hero ---- */
.roast-hero {
    text-align: center;
    padding: 120px 16px 40px;
}

.roast-warning-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(231, 76, 60, 0.08);
    border: 2px solid rgba(231, 76, 60, 0.25);
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 24px;
    animation: float 3s ease-in-out infinite;
}

.roast-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.roast-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.roast-hero-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.roast-stat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border-radius: 9999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text);
}


/* ---- Roast Level Selector ---- */
.roast-level-section {
    padding: 24px 0 40px;
}

.roast-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
}

.roast-levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.roast-level-card {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
}

.roast-level-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.roast-level-card.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 77, 143, 0.15), var(--shadow-md);
}

.roast-level-card[data-level="savage"].active {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15), var(--shadow-md);
}

.level-emoji {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.roast-level-card h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.roast-level-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
}

.recommended-tag {
    position: absolute;
    top: -10px;
    right: 16px;
    background: var(--gradient-primary);
    color: white;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}


/* ---- Upload ---- */
.roast-upload-section {
    padding: 24px 0 40px;
}

.roast-upload-hint {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.roast-input-toggle {
    display: flex;
    justify-content: center;
    gap: 8px;
    background: rgba(231, 76, 60, 0.05);
    padding: 6px;
    border-radius: 30px;
    width: fit-content;
    margin: 0 auto 24px;
}

.roast-toggle-btn {
    background: transparent;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.roast-toggle-btn.active {
    background: white;
    color: #e74c3c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.roast-drop-zone {
    background: white;
    border: 3px dashed rgba(231, 76, 60, 0.25);
    border-radius: var(--radius-xl);
    padding: 48px 24px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.roast-drop-zone:hover,
.roast-drop-zone.drag-over {
    border-color: #e74c3c;
    background: rgba(231, 76, 60, 0.02);
    transform: scale(1.01);
}

.roast-upload-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
}

.roast-drop-zone h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.roast-drop-zone p {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.roast-browse-btn {
    margin-top: 16px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    font-family: var(--font-body);
}

.roast-browse-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.3);
}

.roast-file-types {
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-top: 12px;
}

.roast-text-zone {
    width: 100%;
}

.roast-text-input {
    width: 100%;
    min-height: 200px;
    padding: 20px;
    border: 2px solid rgba(231, 76, 60, 0.2);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    resize: vertical;
    transition: all 0.3s ease;
    background: white;
}

.roast-text-input:focus {
    outline: none;
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.1);
}

/* Preview */
.roast-preview {
    background: white;
    border-radius: var(--radius-xl);
    padding: 16px;
    margin-top: 16px;
    box-shadow: var(--shadow-md);
}

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

.roast-preview-header h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.roast-preview-clear {
    background: none;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 600;
    transition: all var(--transition-base);
}

.roast-preview-clear:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #e74c3c;
}

.roast-preview-image {
    border-radius: var(--radius-md);
    overflow: hidden;
    max-height: 400px;
    display: flex;
    justify-content: center;
    background: var(--color-bg);
}

.roast-preview-image img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

/* Submit */
.roast-submit-btn {
    width: 100%;
    margin-top: 24px;
    padding: 16px 32px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.25);
}

.roast-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(231, 76, 60, 0.35);
}

.roast-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}


/* ---- Loading ---- */
.roast-loading {
    text-align: center;
    padding: 60px 24px;
}

.roast-loading-inner {
    max-width: 400px;
    margin: 0 auto;
}

.roast-loading-emoji {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

.roast-loading h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.roast-loading-tip {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.roast-loading-bar {
    width: 100%;
    height: 6px;
    background: rgba(231, 76, 60, 0.15);
    border-radius: 3px;
    overflow: hidden;
}

.roast-loading-progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #FF6B6B);
    border-radius: 3px;
    animation: roastProgress 8s ease-out forwards;
}

@keyframes roastProgress {
    0% {
        width: 0%;
    }

    20% {
        width: 30%;
    }

    50% {
        width: 60%;
    }

    80% {
        width: 85%;
    }

    100% {
        width: 95%;
    }
}


/* ---- Results ---- */
.roast-results {
    padding: 24px 0 60px;
}

.roast-results-header {
    text-align: center;
    margin-bottom: 32px;
}

.roast-results-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Cringe Meter */
.cringe-meter-container {
    text-align: center;
    margin-bottom: 40px;
}

.cringe-meter {
    width: 180px;
    height: 180px;
    margin: 0 auto 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cringe-meter svg {
    transform: rotate(-90deg);
    width: 180px;
    height: 180px;
}

.cringe-meter circle {
    fill: none;
    stroke-width: 10;
    stroke-linecap: round;
}

.cringe-meter .meter-bg {
    stroke: rgba(0, 0, 0, 0.06);
}

.cringe-meter .meter-fill {
    stroke: #e74c3c;
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    transition: stroke-dashoffset 2s ease-out;
}

.cringe-score-display {
    position: absolute;
    text-align: center;
}

.cringe-score-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 900;
    color: #e74c3c;
    line-height: 1;
}

.cringe-score-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cringe-verdict {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Roast cards */
.roast-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.roast-card.fire {
    border-left-color: #e74c3c;
}

.roast-card.warning {
    border-left-color: #f39c12;
}

.roast-card.success {
    border-left-color: #00D9A3;
}

.roast-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.roast-card-content {
    color: var(--color-text);
    line-height: 1.7;
    font-size: 0.95rem;
}

.roast-card-content ul {
    list-style: none;
    padding: 0;
}

.roast-card-content li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.roast-card-content li:last-child {
    border-bottom: none;
}

.roast-card-content li::before {
    content: '•';
    color: var(--color-primary);
    font-weight: 700;
    flex-shrink: 0;
}

.roast-lines-list {
    list-style: none !important;
    padding: 0 !important;
}

.roast-lines-list li {
    font-style: italic;
    font-size: 1rem;
    padding: 10px 0 !important;
    color: #b91c1c;
    font-weight: 500;
}

.roast-lines-list li::before {
    content: '🔥' !important;
}

/* Rewritten response */
.rewrite-box {
    background: rgba(0, 217, 163, 0.06);
    border: 2px solid rgba(0, 217, 163, 0.2);
    border-radius: var(--radius-md);
    padding: 20px;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    margin-top: 12px;
    position: relative;
}

.rewrite-label {
    position: absolute;
    top: -10px;
    left: 16px;
    background: white;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #00B894;
    text-transform: uppercase;
}

/* Final Verdict */
.final-verdict-card {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.04), rgba(255, 107, 107, 0.04));
    border: 2px solid rgba(231, 76, 60, 0.15);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    margin-bottom: 24px;
}

.final-verdict-card .roast-card-title {
    font-size: 1.3rem;
}

.final-verdict-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
}

/* Actions */
.roast-result-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.roast-action-btn {
    flex: 1;
    min-width: 140px;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    font-family: var(--font-body);
    border: none;
}

.roast-action-btn.primary {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.roast-action-btn.secondary {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--color-text);
}

.roast-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}


/* ---- How It Works ---- */
.roast-how-it-works {
    padding: 60px 0;
}

.roast-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.roast-step-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 28px 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
    position: relative;
}

.roast-step-card:hover {
    transform: translateY(-4px);
}

.roast-step-number {
    position: absolute;
    top: -12px;
    left: 20px;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.roast-step-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.roast-step-card h4 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.roast-step-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.4;
}


/* ---- Footer ---- */
.roast-footer {
    text-align: center;
    padding: 32px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.roast-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.roast-footer a:hover {
    text-decoration: underline;
}


/* ========================================
   MOBILE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .roast-hero {
        padding: 90px 16px 32px;
    }

    .roast-hero-stats {
        flex-direction: column;
        align-items: center;
    }

    .roast-levels-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .roast-level-card {
        padding: 20px 16px;
    }

    .level-emoji {
        font-size: 2rem;
    }

    .roast-drop-zone {
        padding: 32px 16px;
    }

    .roast-text-input {
        font-size: 16px;
    }

    .cringe-meter {
        width: 150px;
        height: 150px;
    }

    .cringe-meter svg {
        width: 150px;
        height: 150px;
    }

    .cringe-score-number {
        font-size: 2.5rem;
    }

    .roast-card {
        padding: 20px 16px;
    }

    .roast-result-actions {
        flex-direction: column;
    }

    .roast-steps-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .roast-steps-grid {
        grid-template-columns: 1fr;
    }
}