/* Ghost Quote / Follow-Up Generator Styles */

/* 1. Mad Libs Form Styling */
.mad-libs-form {
    font-size: 1.25rem;
    line-height: 2.6;
    color: #495057;
}

.mad-libs-sentence {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
}

/* Custom Input Wrapper */
.input-wrapper {
    position: relative;
    display: inline-block;
    min-width: 150px;
    border-bottom: 2px solid #ced4da;
    transition: border-color 0.2s ease;
}

.input-wrapper:focus-within {
    border-bottom-color: #0d6efd;
}

.input-wrapper.short {
    min-width: 70px;
    width: 70px;
    text-align: center;
}

/* The actual input field */
.mad-input {
    border: none;
    background: transparent;
    padding: 0 0.5rem;
    font-weight: 700;
    color: #000;
    width: 100%;
    text-align: center;
    box-shadow: none !important;
    height: auto;
}

.mad-input::placeholder {
    color: #adb5bd;
    font-weight: 400;
    font-size: 1rem;
}

/* Floating label/placeholder effect */
.floating-label-placeholder {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 2px;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 2. Output Card Icons */
.icon-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
}

/* 3. Result Cards */
.email-body {
    white-space: pre-wrap;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

[contenteditable="true"]:focus {
    outline: 2px solid #cfe2ff;
    background-color: #fff;
    border-radius: 4px;
}

/* Tone Selection Button Tweaks */
.btn-check:checked + .btn-outline-danger {
    background-color: #dc3545;
    color: white;
}
.btn-check:checked + .btn-outline-warning {
    background-color: #ffc107;
    color: black;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .mad-libs-form {
        font-size: 1.1rem;
    }
    .input-wrapper {
        min-width: 100%;
        margin-bottom: 1rem;
    }
    .input-wrapper.short {
        min-width: 100px;
    }
    .floating-label-placeholder {
        text-align: left;
        padding-left: 0.5rem;
    }
    .mad-input {
        text-align: left;
    }
    .card-header .btn-group {
        margin-top: 0.5rem;
        width: 100%;
    }
    .card-header .btn-group .btn {
        flex: 1;
    }
}