:root {
    --footer-bg: #c2410c;
    --header-bg: #c2410c;
    --main-bg: #fca65e;
    --card-bg: rgba(255,255,255,0.18);
    --border-radius: 20px;
    --primary: #ffe271;
    --brand-yellow: #ffd900;
    --text-main: #fff;
    --text-yellow: #ffe271;
    --text-muted: #ffe3ad;
    --stat-bg: rgba(255,255,255,0.14);
    --shadow: 0 2px 32px 0 rgba(0,0,0,0.12);
}
.outlined-yellow {
    color: #ffd900;
    text-shadow:
      -2px -2px 0 #c2410c,
      2px -2px 0 #c2410c,
      -2px 2px 0 #c2410c,
      2px 2px 0 #c2410c,
      0 2px 0 #c2410c,
      2px 0 0 #c2410c,
      0 -2px 0 #c2410c,
      -2px 0 0 #c2410c;
    font-weight: 900;
}

.outlined-black {
    color: #fffbe7; 
    text-shadow:
      -2px -2px 0 #111,
      2px -2px 0 #111,
      -2px 2px 0 #111,
      2px 2px 0 #111,
      0 2px 0 #111,
      2px 0 0 #111,
      0 -2px 0 #111,
      -2px 0 0 #111;
    font-weight: 900;
    letter-spacing: 1.2px;
}

/* Body and Main BG */
body {
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--main-bg);
    color: var(--text-main);
    min-height: 100vh;
}
html, body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--main-bg) !important;
    width: 100vw;
    overflow-x: hidden;
    box-sizing: border-box;
}

/* Header */
.header {
    width: 100%;
    background: var(--header-bg);
    border-bottom: 2px solid #ffe271;
    box-shadow: 0 2px 18px 0 #e56a0033;
    position: relative;
    z-index: 100;
    display: flex;
    justify-content: center;
}
.header-inner {
    width: 100%;
    max-width: 1280px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 3vw;
    box-sizing: border-box;
    gap: 24px;
}
.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.logo-img {
    width: 36px;
    height: 36px;
}
.brand-title {
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.5rem;
    color: var(--brand-yellow);
    margin-right: 8px;
    display: block;
}
.brand-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.01em;
    display: block;
}
.nav-links {
    display: flex;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    flex-wrap: nowrap;
}
.nav-links li {
    display: block;
}
.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--brand-yellow);
    text-shadow: 0 1.5px 12px #ffe27122;
}

/* Headline Section */
.headline-section {
    text-align: center;
    margin: 38px 0 24px 0;
    padding: 0 2vw;
}
.headline-icon {
    font-size: 3rem;
}
h1 {
    font-family: 'Luckiest Guy', cursive;
    font-size: 2.7rem;
    color: #fff;
    margin: 0.4em 0 0.3em 0;
    text-shadow: 0 2px 10px #ffae6640;
}
.highlight {
    color: var(--brand-yellow);
    font-weight: bold;
}
.chick-emoji {
    font-size: 2rem;
    vertical-align: -0.2em;
}
.coming-soon-banner {
    background: #fff6e5;
    color: #c2410c;
    border: 1.5px solid #ffd29b;
    border-radius: 13px;
    margin: 18px auto 18px auto;
    padding: 12px 0;
    font-size: 1.22rem;
    text-align: center;
    box-shadow: 0 2px 14px #ffedbb33;
    max-width: 600px;
    font-weight: bold;
}

/* How It Works Card */
.how-it-works-card {
    background: #fffdfa;
    border: 1.5px solid #ffe9b8;
    border-radius: 13px;
    margin: 0 auto 30px auto;
    padding: 22px 30px 6px 30px;
    text-align: center;
    color: #c2410c;
    font-size: 1.17rem;
    box-shadow: 0 2px 14px #ffedbb33;
    max-width: 700px;
}
.how-emoji {
    font-size: 1.2rem;
    vertical-align: middle;
    margin-right: 4px;
}
.how-emoji-bottom {
    font-size: 2rem;
    margin-top: 10px;
    text-align: center;
}

/* Main Content */
.main-content {
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 16px 2vw 30px 2vw;
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}
.card {
    background: #c2410c;
    border-radius: 18px;
    box-shadow: 0 4px 24px 0 rgba(44,19,6,0.11);
    border: 2px solid #d15b13;
    padding: 28px 32px;
    max-width: 600px;
    min-width: 260px;
    flex: 1 1 320px;
    color: #fffbe7;
    margin-bottom: 16px;
    box-sizing: border-box;
}
.roast-form-card h2, .roast-output-card h2 {
    text-align: center;
    margin-bottom: 18px;
    font-size: 1.35rem;
    color: #fff8e1;
    font-family: 'Luckiest Guy', cursive;
}
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.upload label, .form-group label {
    font-size: 1rem;
    margin-bottom: 6px;
}
.image-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border: 2px dashed var(--primary);
    border-radius: 14px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.11);
    transition: background 0.2s;
    margin-bottom: 6px;
}
.image-upload-area:hover {
    background: rgba(255,255,255,0.2);
}
.upload-note {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-top: 4px;
}
textarea, select {
    border-radius: 10px;
    border: none;
    padding: 12px;
    font-size: 1rem;
    resize: vertical;
    background: rgba(255,255,255,0.09);
    color: #222;
    margin-bottom: 4px;
    width: 100%;
    box-sizing: border-box;
}
select {
    background: rgba(255,255,255,0.18);
    font-weight: 700;
}
.roast-btn {
    width: 100%;
    padding: 14px 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #ffe271 0%, #ffae66 100%);
    color: #ae7210;
    font-size: 1.15rem;
    font-weight: 900;
    font-family: 'Luckiest Guy', cursive;
    border: none;
    margin: 12px 0 8px 0;
    cursor: pointer;
    box-shadow: 0 1px 8px #ffc08522;
    transition: background 0.2s, color 0.2s;
}
.roast-btn:hover {
    background: #ffe9b8;
    color: #b94c12;
}
.warning-note {
    margin-top: 6px;
    color: #ffd6a0;
    font-size: 0.9rem;
    text-align: center;
}
.roast-output-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffe9c6;
    font-size: 1.05rem;
    text-align: center;
    min-height: 160px;
}
.pro-tip {
    color: var(--primary);
}
.roast-message-box {
    background: rgba(0,0,0,0.10);
    border-radius: 10px;
    padding: 18px 16px;
    margin-bottom: 0;
    text-align: left;
}
.roast-message-flex {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.roast-icon {
    font-size: 2.2rem;
    margin-right: 8px;
}
.roast-message-text {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
}
textarea::placeholder {
    color: #ffe271 !important;         
    font-family: 'Luckiest Guy', cursive;
    font-size: 0.97em;
    font-style: italic;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 1;
}
select {
    background: linear-gradient(90deg, #fffbe6 0%, #fff3ea 100%);
    color: #c2410c;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.1em;
    font-weight: 700;
    border-radius: 10px;
    border: none;
    box-shadow: 0 3px 14px #ffd29b33;
    padding: 12px;
}
select option, select optgroup {
    font-family: 'Luckiest Guy', cursive;
    color: #c2410c;
    background: #fffbe6;
    font-size: 1em;
    font-style: italic;
}
select option[disabled] {
    color: #ffd900 !important; 
    font-style: normal;
}
.roast-chat-thread {
    display: flex;
    flex-direction: column;
    height: 420px;
    position: relative;
    padding-bottom: 56px;
}

.roast-messages-scroll {
    overflow-y: auto;
    flex: 1 1 auto;
    padding-right: 4px; 
}

.roast-message-box {
    margin-bottom: 16px; 
    background: rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 14px 16px;
    text-align: left;
    box-shadow: 0 1px 5px rgba(194,65,12,0.10);
}

.roast-actions-bottom {
    position: absolute;
    bottom: 14px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding: 0 22px;
}

.copy-btn, .comeback-btn {
    background: #ffe271;
    color: #c2410c;
    border: none;
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.07em;
    border-radius: 8px;
    padding: 8px 18px;
    cursor: pointer;
    font-weight: 600;
    box-shadow: 0 1px 8px #ffc08522;
    transition: background 0.2s, color 0.2s;
}
.copy-btn:hover, .comeback-btn:hover {
    background: #fffbe6;
}

/* Disclaimer Card */
.disclaimer-card {
    background: linear-gradient(90deg, #fffbe6 0%, #fff3ea 100%);
    border: 2px solid #ffd4a8;
    border-radius: 14px;
    margin: 36px auto 24px auto;
    padding: 22px 34px 18px 34px;
    box-shadow: 0 3px 14px #ffd29b33;
    max-width: 900px;
    color: #c2410c;
}
.disclaimer-card > div:first-child {
    font-weight: 700;
    font-size: 1.18rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.disclaimer-emoji {
    font-size: 1.3rem;
    margin-right: 6px;
}
.disclaimer-text {
    font-size: 1.09rem;
    margin-top: 3px;
    color: #d75125;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 18px 0 28px 0;
    flex-wrap: wrap;
}
.stat-card {
    background: var(--stat-bg);
    border-radius: 16px;
    padding: 10px 18px;
    box-shadow: var(--shadow);
    color: #b8821d;
    font-size: 1rem;
    min-width: 110px;
    max-width: 150px;
    flex: 0 1 150px;
    margin-bottom: 10px;
}
.stat-value {
    color: var(--brand-yellow);
    font-family: 'Luckiest Guy', cursive;
    font-size: 1.25rem;
}
.stat-label {
    color: var(--text-yellow);
}

/* Footer New */
.footer-new {
    background: var(--footer-bg);
    color: #fffbe7;
    padding: 30px 0 0 0;
    margin-top: 0;
    font-size: 1rem;
    width: 100vw;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 46px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3vw;
    flex-wrap: wrap;
}
.footer-col {
    flex: 1 1 290px;
    min-width: 240px;
    padding: 0 10px;
}
.footer-brand-row {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    gap: 6px;
    font-family: 'Luckiest Guy', cursive;
    margin-bottom: 7px;
}
.footer-brand-icon, .footer-brand-fun {
    font-size: 1.45em;
}
.footer-brand-name {
    color: #ffd900;
    font-weight: bold;
}
.footer-desc {
    color: #ffe3ad;
    margin-bottom: 8px;
    font-size: 1.07rem;
    font-family: inherit;
}
.footer-section-title {
    font-weight: bold;
    color: #ffe271;
    font-size: 1.16rem;
    margin-bottom: 6px;
}
.footer-stats-list {
    margin-bottom: 8px;
}
.stat-row {
    display: flex;
    justify-content: space-between;
    color: #ffe3ad;
    font-size: 1rem;
    margin-bottom: 1.5px;
}
.footer-love-note {
    font-size: 0.97rem;
    color: #ffe3ad;
}
.footer-wisdom-quote {
    background: rgba(255,255,255,0.10);
    border-radius: 9px;
    padding: 13px 19px;
    font-size: 1.12rem;
    color: #fffde7;
    font-style: italic;
    margin-bottom: 8px;
    margin-top: 8px;
}
.footer-divider {
    border: none;
    border-top: 1.5px solid #ffd29b;
    margin: 19px 0 12px 0;
}
.footer-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.98rem;
    color: #fffbe7;
    padding: 0 3vw 12px 3vw;
    max-width: 1400px;
    margin: 0 auto;
}
@media (max-width: 950px) {
    .footer-content {
        flex-direction: column;
        gap: 24px;
    }
    .footer-bottom-row {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .nav-links {
        gap: 18px;
        font-size: 0.95rem;
    }
    .brand-title {
        font-size: 1.35rem;
    }
    .header {
        padding: 12px 2vw;
    }
}
@media (max-width: 900px) {
    .header-inner {
        padding: 10px 2vw;
        gap: 12px;
    }
    .brand-title {
        font-size: 1.15rem;
    }
    .nav-links {
        gap: 14px;
        font-size: 0.97rem;
    }
}
@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 7px 2vw;
        gap: 6px;
    }
    .logo-container {
        margin-bottom: 2px;
    }
    .nav-links {
        gap: 10px;
        font-size: 0.9rem;
    }
    .footer-content {
        padding: 0 1vw;
    }
    .footer-bottom-row {
        padding: 0 1vw 12px 1vw;
    }
}
@media (max-width: 440px) {
    .brand-title {
        font-size: 0.89rem;
    }
    .nav-links {
        gap: 6px;
        font-size: 0.81rem;
    }
}
.user-msg {
    align-self: flex-end;
    background: rgba(255,255,255,0.06);
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255,255,255,0.10);
}

.user-align {
    flex-direction: row-reverse;
}

.bot-align {
    flex-direction: row;
}

.user-text {
    text-align: right;
}
#thumbnail-preview {
    object-fit: contain;
    border: 1px dashed #ffe271;
    padding: 4px;
    background: rgba(255, 255, 255, 0.1);
}
.chat-thumbnail-img {
    width: 60px;    
    height: auto;
    max-height: 60px;
    border-radius: 6px;
    object-fit: cover;
}

.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: #ffffff;
    color: #333;
    padding: 12px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideIn 0.4s ease, fadeOut 0.4s ease 3s forwards;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    border-left: 5px solid #ff9800;
}

.toast-success {
    border-color: #4caf50;
}

.toast-error {
    border-color: #f44336;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}
