/* Design System: The Modern Archivist */
/* Editorial, publication-inspired couples counseling interface */

/* Material Icons Setup */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined', sans-serif;
    font-variation-settings: 'FILL' 0, 'wght' 300, 'GRAD' 0, 'opsz' 24;
    display: inline-block;
    line-height: 1;
}

/* Typography System */
body {
    font-family: 'Be Vietnam Pro', sans-serif;
    background-color: #fcf9ef;
    color: #1c1c16;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Newsreader', serif;
    color: #2c1714;
    font-weight: 600;
    margin: 0;
}

h1 {
    font-size: clamp(2rem, 8vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.75rem, 6vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h3 {
    font-size: clamp(1.25rem, 4vw, 1.875rem);
    line-height: 1.2;
}

h4 {
    font-size: 1.125rem;
    line-height: 1.3;
}

/* Small Caps for Labels */
.label, .tracking-label, .metadata {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 500;
    color: #596153;
    font-family: 'Be Vietnam Pro', sans-serif;
}

/* Sidebar Navigation */
.sidebar {
    width: 16rem;
    height: 100vh;
    background-color: #2D3428;
    color: #ebe8de;
    padding: 3rem 1.5rem;
    position: fixed;
    left: 0;
    top: 0;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    z-index: 50;
}

.sidebar.active {
    display: flex;
}

@media (min-width: 768px) {
    .sidebar {
        display: flex;
    }
}

.sidebar-brand {
    margin-bottom: 3rem;
}

.sidebar-brand h1 {
    font-size: 1.25rem;
    color: #fcf9ef;
    font-style: italic;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    font-family: 'Newsreader', serif;
}

.sidebar-brand p {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(235, 232, 222, 0.5);
}

.sidebar-nav {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(235, 232, 222, 0.6);
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 2px solid transparent;
}

.sidebar-nav a:hover {
    color: #fcf9ef;
    background-color: rgba(252, 249, 239, 0.05);
}

.sidebar-nav a.active {
    border-left: 2px solid #596153;
    padding-left: 1.25rem;
    color: #fcf9ef;
    font-weight: 500;
    transform: translateX(4px);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid rgba(235, 232, 222, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-footer-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #e5e2d9;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-footer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) opacity(0.8);
}

.sidebar-footer-info p:first-child {
    font-size: 0.75rem;
    font-weight: 500;
    color: #fcf9ef;
    margin: 0;
}

.sidebar-footer-info p:last-child {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(235, 232, 222, 0.4);
    margin: 0;
}

/* Main Content Layout */
main {
    flex-grow: 1;
    background-color: #fcf9ef;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    main {
        margin-left: 16rem;
        padding-bottom: 0;
    }
}

/* Top App Bar */
.top-app-bar {
    height: 5rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 3rem;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 40;
    gap: 2rem;
}

.top-app-bar button {
    background: none;
    border: none;
    color: #2c1714;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.top-app-bar button:hover {
    color: #596153;
}

/* Content Container */
.content-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2rem 2rem;
    padding-bottom: 6rem;
}

@media (min-width: 768px) {
    .content-container {
        padding: 2rem 4rem;
    }
}

/* Section Header */
.section-header {
    margin-bottom: 5rem;
}

.section-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #596153;
    margin-bottom: 1rem;
    display: block;
    font-weight: 500;
}

.section-title {
    font-family: 'Newsreader', serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    color: #2c1714;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.section-description {
    max-width: 42rem;
    color: #454841;
    font-size: 1.125rem;
    line-height: 1.7;
}

/* Featured Content Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .featured-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.featured-item {
    display: flex;
    flex-direction: column;
}

.featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #f1eee4;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2);
    transition: transform 0.7s ease;
}

.featured-item:hover .featured-image img {
    transform: scale(1.05);
}

.featured-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.featured-text h3 {
    font-family: 'Newsreader', serif;
    font-size: 1.875rem;
    font-style: italic;
    color: #2c1714;
    margin-bottom: 0.5rem;
}

.featured-text p {
    color: #454841;
    font-size: 0.95rem;
}

.featured-button {
    background-color: #2c1714;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.featured-button:hover {
    background-color: #442c28;
}

.featured-aside {
    background-color: #f7f4e9;
    padding: 2rem;
    border-left: 1px solid rgba(197, 199, 191, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-aside .material-symbols-outlined {
    font-size: 2rem;
    color: #596153;
    margin-bottom: 1.5rem;
}

.featured-aside h4 {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    color: #2c1714;
    margin-bottom: 1rem;
}

.featured-aside p {
    color: #454841;
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.featured-accent {
    width: 3rem;
    height: 0.125rem;
    background-color: #596153;
    opacity: 0.3;
    margin-bottom: 0;
}

/* Session/Data List */
.list-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(197, 199, 191, 0.1);
}

.list-header h3 {
    font-family: 'Newsreader', serif;
    font-size: 2.25rem;
    color: #2c1714;
}

.list-header .label {
    color: #596153;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.list-item {
    padding: 3rem 0;
    border-bottom: 1px solid rgba(197, 199, 191, 0.1);
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    transition: background-color 0.3s ease;
}

.list-item:hover {
    background-color: rgba(252, 249, 239, 0.5);
}

@media (min-width: 768px) {
    .list-item {
        grid-template-columns: 1fr 1fr 2fr;
    }
}

.list-item-column {
    display: flex;
    flex-direction: column;
}

.list-item-label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #596153;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.list-item-date {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    color: #2c1714;
}

.list-item-subtitle {
    color: #454841;
    font-weight: 500;
}

.list-item-title {
    font-family: 'Newsreader', serif;
    font-size: 1.5rem;
    color: #2c1714;
    margin-bottom: 1rem;
}

.list-item-description {
    color: #454841;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.list-item-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.list-item-link {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #2c1714;
    text-decoration: underline;
    text-decoration-color: rgba(89, 97, 83, 0.3);
    text-underline-offset: 0.4rem;
    transition: text-decoration-color 0.3s ease;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.list-item-link:hover {
    text-decoration-color: #596153;
}

.list-item-status {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #596153;
}

/* Footer Decorative */
.footer-decoration {
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-line {
    width: 6rem;
    height: 1px;
    background-color: rgba(197, 199, 191, 0.3);
    margin-bottom: 2rem;
}

.footer-text {
    font-family: 'Newsreader', serif;
    font-style: italic;
    color: #596153;
    text-align: center;
    opacity: 0.4;
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5rem;
    background-color: #ebe8de;
    border-top: 1px solid rgba(69, 72, 65, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 50;
}

@media (min-width: 768px) {
    .bottom-nav {
        display: none;
    }
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    text-decoration: none;
    color: #596153;
    opacity: 0.6;
    transition: all 0.3s ease;
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bottom-nav a.active {
    color: #2c1714;
    opacity: 1;
    font-weight: 600;
}

.bottom-nav .material-symbols-outlined {
    font-size: 1.5rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #2c1714;
    margin-bottom: 0.5rem;
    text-transform: none;
    letter-spacing: normal;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(69, 72, 65, 0.2);
    background-color: #fcf9ef;
    color: #1c1c16;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: #596153;
    background-color: #f7f4e9;
}

.form-button {
    background-color: #2c1714;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    border: none;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: background-color 0.3s ease;
}

.form-button:hover {
    background-color: #442c28;
}

.form-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-button-secondary {
    background-color: transparent;
    color: #2c1714;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2c1714;
    cursor: pointer;
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.form-button-secondary:hover {
    background-color: #f7f4e9;
}

/* Message/Chat Bubbles */
.message-bubble {
    padding: 1rem;
    margin-bottom: 1rem;
    max-width: 24rem;
}

.message-bubble.counselor {
    background-color: #f1eee4;
    border-left: 3px solid #596153;
}

.message-bubble.partner {
    background-color: #fcf9ef;
    border: 1px solid #e5e2d9;
}

.message-sender {
    font-weight: 600;
    color: #2c1714;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.message-content {
    color: #454841;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Buttons */
button {
    cursor: pointer;
    transition: all 0.3s ease;
}

.button-primary {
    background-color: #2c1714;
    color: #ffffff;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.button-primary:hover {
    background-color: #442c28;
}

.button-secondary {
    background-color: transparent;
    border: 2px solid #2c1714;
    color: #2c1714;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
}

.button-secondary:hover {
    background-color: #fcf9ef;
}

/* Utility Classes */
.tracking-wide {
    letter-spacing: 0.1em;
}

.tracking-wider {
    letter-spacing: 0.15em;
}

.tracking-widest {
    letter-spacing: 0.2em;
}

.uppercase {
    text-transform: uppercase;
}

.italic {
    font-style: italic;
}

.serif {
    font-family: 'Newsreader', serif;
}

.error-message {
    background-color: #ffdad6;
    border: 1px solid #ba1a1a;
    color: #93000a;
    padding: 1rem;
    margin-bottom: 1rem;
}

.success-message {
    background-color: #d6e7da;
    border: 1px solid #596153;
    color: #1c1c16;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Loading and States */
.loading {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1eee4;
}

::-webkit-scrollbar-thumb {
    background: #c5c7bf;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: #757871;
}
