/* 
 * styles.css
 * Sett.ai Brand Theme (Light/Cream)
 */

@font-face {
    font-family: 'MarsCondensed';
    src: url('MarsCondensed.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('Manrope.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    /* Color Palette - Sett.ai Warm Light */
    --bg-app: #FFFCF5;
    /* Cream */
    --bg-sidebar: #FFFCF5;
    --bg-card: #ffffff;
    --bg-hover: #F2EFE9;

    --text-primary: #1C1B1F;
    /* Near Black */
    --text-secondary: #585858;

    --accent-color: #F49D37;
    /* Sett Orange */
    --accent-hover: #E88D2A;

    --border-color: #E0DCD5;
    --border-dark: #1C1B1F;

    /* Spacing & Layout */
    --sidebar-width: 280px;
    --border-radius: 24px;

    /* Typography */
    --font-heading: 'MarsCondensed', sans-serif;
    --font-main: 'Manrope', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    overflow: hidden;
    height: 100vh;
}

/* Layout */
.app-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    flex-shrink: 0;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 4.5rem;
    padding-bottom: 1.5rem;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background-color: #1C1B1F;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #FFFCF5;
    font-size: 1.2rem;
}

.brand-text h2 {
    font-size: 1.4rem;
    font-family: var(--font-heading);
    font-weight: 400;
    /* Condensed fonts typically bold by default design */
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
.nav-links {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.5rem;
}

.nav-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.2rem;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}

.nav-btn:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.nav-btn.active {
    background-color: var(--accent-color);
    color: #1C1B1F;
    border-color: var(--border-dark);
    box-shadow: none;
}

.nav-btn-link {
    text-decoration: none;
    background: linear-gradient(135deg, #1C1B1F 0%, #3a3840 100%);
    border: 1px solid #1C1B1F;
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--border-radius);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.3);
    justify-content: space-between;
}

.nav-btn-link:hover {
    background: linear-gradient(135deg, #2d2b32 0%, #4a4850 100%);
    box-shadow: 3px 3px 0px rgba(0,0,0,0.4);
    transform: translateY(-1px);
    color: #fff !important;
}

/* Nav Groups */
.nav-separator {
    height: 1px;
    background: var(--border-color);
    margin: 0.6rem 1rem;
    opacity: 0.4;
}

.nav-header {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0.8rem 1.2rem 0.3rem;
    opacity: 0.6;
}

.nav-group-header {
    list-style: none;
}

.nav-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-secondary);
    font-family: inherit;
    transition: all 0.2s ease;
    margin-bottom: 0.25rem;
}

.nav-group-toggle:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-dark);
}

.nav-group-arrow {
    font-size: 0.6rem;
    opacity: 0.5;
}

.nav-group-items {
    list-style: none;
}

.nav-group-list {
    list-style: none;
    padding: 0 0 0 0.75rem;
    margin: 0;
    border-left: 2px solid var(--border-color);
    margin-left: 0.5rem;
    margin-bottom: 0.5rem;
}

.nav-group-list.collapsed {
    display: none;
}

/* Pinned bottom links (e.g. Playable Catalogue) */
.sidebar-bottom-links {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 1.5rem;
}

.sidebar-bottom-links .nav-btn-link {
    margin-top: auto;
    gap: 1rem;
    justify-content: flex-start;
}

.sidebar-footer {
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

/* Accordion & Interactive Cards */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.interactive-section {
    gap: 1rem;
}

.interactive-card {
    display: block;
    width: 100%;
    background-color: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

.interactive-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(244, 157, 55, 0.2);
}

.interactive-card.completed {
    border-color: #10b981;
    background-color: #F0FDF5;
}

.interactive-card.completed .accordion-header h3::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('thumb-up.svg') no-repeat center center;
    background-size: contain;
    margin-right: 0.8rem;
    vertical-align: middle;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.accordion-header {
    padding: 1.5rem 2rem;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: inherit;
    text-align: left;
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.4rem;
}

.accordion-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: var(--text-primary);
    background: #f0f0f0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.interactive-card.open .accordion-icon {
    transform: rotate(180deg);
    background: var(--accent-color);
    color: #000;
}

.accordion-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #fafafa;
    overflow: hidden;
}

.interactive-card.open .accordion-content {
    grid-template-rows: 1fr;
    border-top: 1px solid var(--border-color);
}

.accordion-inner {
    min-height: 0;
    overflow: hidden;
}

.accordion-padder {
    padding: 1.5rem 2rem 2rem;
}

.content-inner {
    padding: 0;
}

.top-bar {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    /* Align to left */
    padding: 0 4rem;
    background-color: rgba(255, 252, 245, 0.9);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-color);
}

/* Progress Bar (Updated Style) */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 250px;
}

.progress-label {
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    justify-content: space-between;
}

.progress-bar-bg {
    width: 100%;
    height: 12px;
    background-color: #ebdccc;
    /* Darker cream */
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-dark);
}

.progress-bar-fill {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--border-dark);
}

.content-body {
    flex-grow: 1;
    padding: 3rem 4rem;
    overflow-y: auto;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Typography & Elements in Content */
h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    /* Larger for condensed font */
    margin-bottom: 1.5rem;
    font-weight: 400;
    /* MarsCondensed is usually bold by nature or single weight */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-primary);
    line-height: 1;
}

h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-top: 2rem;
    margin-bottom: 1.2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

h3 {
    font-family: var(--font-heading);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 2rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

h4 {
    font-family: var(--font-heading);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 400;
    text-transform: uppercase;
}

p {
    line-height: 1.6;
    color: var(--text-secondary);
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: background 0.2s;
    font-weight: 700;
}

a:hover {
    background-color: var(--accent-color);
}

/* Interactive Elements (Checkboxes etc.) */
.task-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s;
}

.task-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.task-checkbox {
    appearance: none;
    -webkit-appearance: none;
    min-width: 24px;
    height: 24px;
    border: 2px solid var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    margin-top: 2px;
    background: white;
    filter: none;
}

.task-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--border-dark);
    filter: none;
    transform: none;
}

.task-checkbox:checked::after {
    content: '✓';
    display: block;
    position: absolute;
    color: #1C1B1F;
    font-size: 16px;
    top: -1px;
    left: 4px;
    font-weight: 800;
}

.task-label {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
}

.task-checkbox:checked+.task-label {
    text-decoration: line-through;
    opacity: 0.5;
}

.highlight-box {
    background: #FFF8E1;
    /* Light Yellow */
    border: 1px solid var(--accent-color);
    padding: 2rem;
    border-radius: 16px;
    margin: 2rem 0;
    position: relative;
    box-shadow: 4px 4px 0 var(--accent-color);
}

.highlight-box h3 {
    margin-top: 0;
    color: #1C1B1F;
}

/* Code Blocks */
/* Code Blocks */
pre {
    background: #1C1B1F !important;
    color: #FFFCF5 !important;
    border-radius: 8px;
    border: none !important;
    font-family: 'Manrope', monospace;
    overflow-x: auto;
}

/* Inline Code */
code {
    background: #FFF1F2 !important;
    /* Light pink/grey mix */
    color: #BE123C !important;
    /* Deep Pink/Red */
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-family: 'Manrope', monospace;
    border: 1px solid #FECDD3 !important;
    /* Soft pink border */
    font-size: 0.9em;
}

/* Reset for code inside pre */
pre code {
    background: transparent !important;
    color: inherit !important;
    border: none !important;
    padding: 0;
    font-size: inherit;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-app);
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 5px;
    border: 2px solid var(--bg-app);
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Circle Steps Styling */
.step-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.step-number {
    background: var(--accent-color);
    color: #000;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    border: 1px solid var(--border-dark);
    box-shadow: 2px 2px 0 var(--border-dark);
}

.step-content {
    flex-grow: 1;
}

.step-bullet {
    color: var(--accent-color);
    font-size: 1rem;
    line-height: 1.5;
    margin-right: 0.5rem;
    font-weight: bold;
}

.step-content h4 {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.4s ease-out forwards;
}

/* Cards (Static) */
.card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 0 rgba(244, 157, 55, 0.2);
}

/* Image & Video Premium Interactions */
img,
video {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: zoom-in;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 100;
}

.step-item img,
.step-item video {
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

/* Section Picker (Tabs) for Monday Guide */
.section-picker {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: #F1F5F9;
    padding: 0.5rem;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow-x: auto;
}

.picker-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    border: none;
    background: transparent;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748B;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    text-align: center;
}

.picker-btn:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.picker-btn.active {
    background: white;
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-pane.active {
    display: block;
}

/* Tools Section Grid Layer */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.tool-card-internal {
    padding: 1.2rem !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.tools-grid .interactive-card h3 a {
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent-color);
    transition: all 0.2s;
}

.tools-grid .interactive-card h3 a:hover {
    background: var(--accent-color);
    color: #1C1B1F;
}

.tool-link {
    display: none;
}

/* 🖼️ Image Lightbox (Zoom Feature) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active img {
    transform: scale(1);
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 4rem;
    line-height: 1;
    cursor: pointer;
    font-family: Arial, sans-serif;
    opacity: 0.7;
}

.close-lightbox:hover {
    opacity: 1;
}

.content-body img {
    cursor: zoom-in !important;
}

/* 🔐 Auth Overlay Styling */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-app);
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-container {
    background: white;
    padding: 3.5rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(28, 27, 31, 0.08);
    max-width: 500px;
    width: 100%;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

.auth-logo {
    height: 50px;
    margin-bottom: 2rem;
}

.auth-container h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.auth-container p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

#google-btn-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.auth-error {
    background: #FEF2F2;
    color: #DC2626;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid #FCA5A5;
    margin-top: 1.5rem;
    font-size: 0.95rem;
    display: none;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

.auth-footer {
    margin-top: 3rem;
    font-size: 0.85rem;
    color: #A1A1AA;
}

/* Simplified Workflow Document Styles */
.workflow-content {
    padding: 2rem 0;
}

.workflow-section {
    margin-bottom: 4rem;
}

.workflow-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.workflow-section h3 {
    font-size: 1.45rem;
    margin: 2.5rem 0 1.2rem 0;
    color: var(--text-primary);
    font-weight: 700;
}

.workflow-section h4 {
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: none;
    color: var(--accent-color);
    letter-spacing: -0.2px;
    margin-bottom: 0.8rem;
}

.workflow-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin: 1.5rem 0;
}

.workflow-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.workflow-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.workflow-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

.workflow-status-box {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--border-color);
    background: transparent;
}

.status-success {
    border-color: #22C55E;
}

.status-info {
    border-color: #3B82F6;
}

.workflow-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.workflow-table th {
    text-align: left;
    padding: 1.2rem 1rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1rem;
    text-transform: none;
    font-weight: 700;
}

.workflow-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border-color);
    line-height: 1.5;
}

.workflow-table tr:last-child td {
    border-bottom: none;
}
