/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background: #fff;
    color: #000;
}

/* Navbar */
.navbar {
    display: flex;
    align-items: center;
    padding: 0.5rem 2rem;
    background: #0D223F;
    color: white;
}

.navbar-left, .navbar-center, .navbar-right {
    display: flex;
    align-items: center;
}

.navbar-center {
    flex: 1;
    justify-content: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-stack {
    position: relative;
    width: 60px;
    height: 60px;
}

.logo-stack img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.logo-icon {
    width: 40px;
    height: 40px;
    z-index: 1;
}

.logo-circle {
    width: 60px;
    height: 60px;
    z-index: 0;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 400;
    color: white;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-size: 1rem;
}

.settings img {
    width: 40px;
    height: 40px;
}

.settings-text {
    margin-left: 48px;
    margin-top: 24px;
    font-family: inherit;
    font-weight: 400;
    color: rgb(0, 0, 0);
    font-size: 3rem;
}

.content {
    max-width: 800px;
    margin: 2rem auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Question section */
.question-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.question-text h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.question-text p {
    font-size: 1rem;
}

.next-btn {
    background: #0D223F;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

/* Record button */
.record-btn {
    margin-top: 2rem;
    background: #98EF85;
    border: none;
    border-radius: 20px;
    padding: 0.5rem;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background 0.3s;
    width: 240px;
    margin: 2rem auto 0 auto; /* top margin + auto left/right */
}

.record-btn img {
    width: 42px;
    height: 32px;
}

.record-btn:hover {
    background: #7fd86c;
}

.record-btn.recording:hover {
    background: #e64c4c;
}

.record-btn.recording {
    background: #ff4d4d;
}

.feedback-card {
    width: 100%;           /* full width of parent */
    max-width: 100%;       /* remove previous max-width */
    margin-left: 0;        /* align to left */
    padding: 16px;         /* internal spacing */
    background: white;
    box-shadow: 0px 1px 2px -1px rgba(0,0,0,0.1);
    border-radius: 14px;
    outline: 0.8px #E5E7EB solid;
    outline-offset: -0.8px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}


.feedback-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-circle {
    width: 64px;
    height: 64px;
    background: #00A63E;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.rating-circle-text {
    font-family: 'Source Serif Pro', serif;
    font-size: 28px;
    font-weight: 400;
    color: white;
    line-height: 42px;
}

.title-container {
    margin-left: 16px;
    flex: 1;
}

.title-container .title {
    font-family: 'Source Serif Pro', serif;
    font-size: 20px;
    font-weight: 400;
    color: black;
    line-height: 30px;
}

/* Expanded feedback text below row, hidden by default */
.feedback-expanded-text {
    font-family: 'Source Serif Pro', serif;
    font-size: 14px;
    color: #6A7282;
    line-height: 21px;
    margin-top: 12px; 
    display: none; /* hidden initially */

    /* Preserve formatting from text file */
    white-space: pre-wrap;
}


/* Show expanded text instantly when card is expanded */
.feedback-card.expanded .feedback-expanded-text {
    display: block;
}

.feedback-extra-icon {
    transform: rotate(-90deg);
}

/* Arrow rotation */
.feedback-extra-icon img {
    transition: transform 0.3s ease;
}

.feedback-card.expanded .feedback-extra-icon img {
    transform: rotate(90deg);
}

.video-feed {
    position: relative;
    width: 100%;
    max-width: 900px; /* optional max width */
    margin: 2rem auto; /* center horizontally */
}

.video-placeholder {
    background: black;
    color: white;
    height: 400px;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    font-weight: 400;
}

.video-placeholder img {
    width: 100%;           /* fill width of placeholder */
    height: 100%;          /* fill height of placeholder */
    object-fit: cover;     /* preserve aspect ratio, crop if needed */
    border-radius: 10px;   /* match placeholder rounding */
    display: block;
}

/* Settings page styles */
.settings-page .page-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 1rem 0 1.25rem 0;
    color: #0b2740;
}

.settings-container {
    /* Allow wider display on large screens while staying responsive */
    max-width: 1100px;
    width: min(1100px, 94%);
    margin: 0 auto 48px auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.settings-card {
    background: #f3f3f3;
    padding: 22px 28px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    outline: 1px solid rgba(0,0,0,0.04);
}

.settings-card h3 {
    font-family: 'Source Serif Pro', serif;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: 400;
    color: #111111;
}

.setting-row {
    display: grid;
    /* give the control column more space on wide layouts */
    grid-template-columns: 1fr 360px;
    align-items: center;
    gap: 12px 24px;
    padding: 12px 0;
}

.setting-row label {
    font-family: inherit; /* use same font as site */
    font-size: 1rem;
    color: #222;
}

.setting-row .control select {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    background: #e9e9e9;
    font-size: 0.95rem;
    appearance: none; /* remove default arrow styling */
}

.recording { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.thumb { width: 160px; height: auto; border-radius: 6px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.recording-info { flex: 1; }

/* Make labels stack on small screens */
@media (max-width: 760px) {
    .setting-row { grid-template-columns: 1fr; }
    .setting-row .control { margin-top: 6px; }
}

