/* =============================================================
   VOCA — styles.css
   ============================================================= */

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, sans-serif;
}

body {
    background-color: #000000;
    color: #FFFFFF;
    line-height: 1.5;
    overflow-x: hidden;
}

/* =============================================================
   START SCREEN
   ============================================================= */
#start-screen {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background-color: #0055FF;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#start-btn {
    background-color: #FFD500;
    color: #000;
    font-size: 2.5rem;
    font-weight: 900;
    border: none;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    height: 50%;
    cursor: pointer;
    box-shadow: 0 10px 0 #CCAA00;
    animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* =============================================================
   HEADER
   ============================================================= */
header {
    text-align: center;
    padding: 20px 10px;
    background-color: #111;
    border-bottom: 4px solid #FFD500;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

h1 {
    font-size: 3rem;
    color: #FFD500;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.4rem;
    margin-top: 10px;
    color: #FFF;
    font-weight: bold;
    min-height: 2.2rem;
    padding: 0 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

/* =============================================================
   MAIN LAYOUT
   ============================================================= */
main {
    padding: 15px;
}

/* =============================================================
   GRID: 4 GIANT BUTTONS
   ============================================================= */
.grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

.giant-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    text-align: center;
    padding: 15px;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.giant-btn:active,
.large-btn:active {
    transform: scale(0.95) translateY(4px);
    box-shadow: none !important;
}

.giant-btn .icon {
    font-size: 4.5rem;
    margin-bottom: 12px;
    line-height: 1;
}

.giant-btn .text {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.2;
}

/* COLOURS */
.yellow { background-color: #FFD500; color: #000000; box-shadow: 0 8px 0 #CCAA00; }
.blue   { background-color: #0055FF; color: #FFFFFF; box-shadow: 0 8px 0 #003399; }
.green  { background-color: #00AA00; color: #FFFFFF; box-shadow: 0 8px 0 #006600; }
.red    { background-color: #CC0000; color: #FFFFFF; box-shadow: 0 8px 0 #880000; }
.black  { background-color: #222222; color: #FFFFFF; border: 4px solid #FFFFFF; box-shadow: 0 8px 0 #000; }
.white  { background-color: #FFFFFF; color: #000000; border: 4px solid #000000; box-shadow: 0 8px 0 #CCCCCC; }

.hidden-input { display: none; }

/* =============================================================
   ADDITIONAL FEATURES ROW
   ============================================================= */
.additional-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.large-btn {
    width: 100%;
    padding: 30px 20px;
    font-size: 2rem;
    font-weight: bold;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.large-btn .icon {
    font-size: 2.5rem;
    line-height: 1;
}

/* =============================================================
   PANELS (appointment + emergency settings)
   ============================================================= */
.panel {
    background-color: #1a1a1a;
    border: 3px solid #FFD500;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.panel-title {
    font-size: 2rem;
    font-weight: 900;
    color: #FFD500;
    margin-bottom: 20px;
    text-align: center;
}

.panel-label {
    display: block;
    font-size: 1.4rem;
    font-weight: bold;
    color: #FFF;
    margin-bottom: 10px;
}

.panel-sublabel {
    font-size: 1.5rem;
    font-weight: bold;
    color: #FFD500;
    margin-bottom: 12px;
    border-bottom: 2px solid #333;
    padding-bottom: 8px;
}

.panel-input {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    border-radius: 10px;
    border: none;
    margin-bottom: 12px;
    background: #fff;
    color: #000;
}

.panel-row {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.panel-row .small-btn {
    flex: 1;
}

/* =============================================================
   BIG ACTION BUTTON (inside panel)
   ============================================================= */
.big-action-btn {
    width: 100%;
    padding: 30px 20px;
    font-size: 2rem;
    font-weight: 900;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    line-height: 1.3;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease;
    margin-bottom: 15px;
}

.big-action-btn:active {
    transform: scale(0.96);
}

/* =============================================================
   TRANSCRIPT PREVIEW (while mic is listening)
   ============================================================= */
.transcript-preview {
    font-size: 1.4rem;
    color: #FFD500;
    min-height: 2rem;
    text-align: center;
    margin-bottom: 10px;
    word-wrap: break-word;
}

/* =============================================================
   TYPE INSTEAD / SPEAK INSTEAD LINK
   ============================================================= */
.type-instead-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.4rem;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    text-decoration: underline;
    -webkit-tap-highlight-color: transparent;
}

.type-instead-link:active {
    color: #FFD500;
}

/* =============================================================
   APPOINTMENT TEXTAREA
   ============================================================= */
.apt-textarea {
    width: 100%;
    padding: 15px;
    font-size: 1.6rem;
    border-radius: 10px;
    border: none;
    margin-bottom: 12px;
    background: #fff;
    color: #000;
    resize: vertical;
    min-height: 100px;
}

/* =============================================================
   SAVED APPOINTMENT ROWS
   ============================================================= */
.apt-row {
    background: #222;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 12px;
    border-left: 6px solid #00AA00;
}

.apt-row-text {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.apt-btn {
    margin-right: 8px;
    margin-top: 4px;
    width: auto;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.2rem;
}

/* =============================================================
   SMALL BUTTONS
   ============================================================= */
.small-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.08s ease;
}

.small-btn:active { transform: scale(0.97); }

.small-btn.yellow { background-color: #FFD500; color: #000; }
.small-btn.grey   { background-color: #444;    color: #fff; }

/* =============================================================
   HOW IT WORKS SECTION
   ============================================================= */
.content-section {
    background-color: #FFF;
    color: #000;
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 30px;
}

.content-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    border-bottom: 4px solid #FFD500;
    padding-bottom: 10px;
}

.content-section ul {
    list-style-type: none;
}

.content-section li {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-left: 20px;
    border-left: 8px solid #0055FF;
}

/* =============================================================
   FOOTER
   ============================================================= */
footer {
    text-align: center;
    padding: 30px;
    font-size: 1.2rem;
    color: #888;
    background-color: #111;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 600px) {
    .giant-btn .icon { font-size: 3.5rem; }
    .giant-btn .text { font-size: 1.4rem; }
    .large-btn { font-size: 1.7rem; padding: 25px 15px; }
}

@media (max-width: 360px) {
    .giant-btn { min-height: 200px; }
    .giant-btn .text { font-size: 1.2rem; }
    .big-action-btn { font-size: 1.7rem; padding: 25px 15px; }
}
