/* ============================================
   Loc801: Website Localization for Beginners
   Main Stylesheet
   ============================================ */

/* CSS Variables */
:root {
    --pink: #ef91c6;
    --light-blue: #50A5E6;
    --medium-blue: #2b7bb9;
    --dark-blue: #1c6399;
    --alabaster: #F5F7F9;
    --text-dark: #1a1a1a;
    --text-medium: #4a4a4a;
    --text-light: #6a6a6a;
}

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

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--alabaster);
    color: var(--text-dark);
    line-height: 1.7;
}

/* Page Layout */
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content-wrapper {
    flex: 1;
    width: 100%;
}

.main-content {
    width: 100%;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.logo {
    height: 40px;
    width: auto;
    display: block;
}

.course-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.course-title:hover {
    color: var(--medium-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

/* Outline Button */
.outline-btn {
    padding: 0.5rem 1.25rem;
    background: white;
    border: 2px solid var(--light-blue);
    color: var(--dark-blue);
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.outline-btn:hover {
    background: var(--light-blue);
    color: white;
}

/* Language Picker */
.lang-picker {
    display: flex;
    gap: 0.5rem;
    background: var(--alabaster);
    padding: 0.5rem;
    border-radius: 8px;
}

.lang-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-medium);
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.lang-btn.active {
    background: white;
    color: var(--dark-blue);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lang-btn:hover:not(.active) {
    color: var(--dark-blue);
}

/* Main Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

.breadcrumb a {
    color: var(--medium-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: var(--dark-blue);
}

.breadcrumb-separator {
    color: #d1d5db;
}

/* Topic Header */
.topic-header {
    background: linear-gradient(135deg, #ff1493 0%, var(--light-blue) 100%);
    padding: 4rem;
    border-radius: 16px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.page-header {
    background: linear-gradient(135deg, #FF69B4 0%, var(--light-blue) 100%);
    padding: 4rem;
    border-radius: 16px;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.topic-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.2) 0%, transparent 50%);
    pointer-events: none;
}

.topic-number {
    display: inline-block;
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.topic-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.topic-description {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    line-height: 1.8;
    max-width: 800px;
}

/* Content Sections */
.content-section {
    background: white;
    padding: 3.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #ffcce7, #bcddf5);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.p-w-padding {
    padding-top: 1rem;
}

/* Objectives List */
.objectives-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.objective-item {
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.objective-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 6px;
    color: var(--pink);
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 28px;
    text-align: center;
}

/* Workflow List */
.workflow-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.workflow-item {
    padding-left: 2.5rem;
    position: relative;
    font-size: 1.05rem;
    color: var(--text-dark);
}

.workflow-item::before {
    content: '➔';
    position: absolute;
    left: 0;
    width: 28px;
    height: 28px;
    background: var(--light-blue);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Activities Grid */
.activities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* 2x2 Activities Grid - for pages with 4 activities */
.activities-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.activity-card {
    background: var(--alabaster);
    padding: 2rem;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.activity-card:hover {
    border-color: var(--light-blue);
    transform: translateY(-2px);
}

.activity-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--medium-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.activity-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.activity-description {
    font-size: 0.95rem;
    color: var(--text-medium);
    line-height: 1.6;
}

/* Info Box */
.info-box {
    background: linear-gradient(135deg, rgba(239, 145, 198, 0.1), rgba(80, 165, 230, 0.1));
    border-left: 4px solid var(--pink);
    padding: 2rem;
    border-radius: 8px;
    margin-top: 2.5rem;
}

.info-box-title {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.info-box-content {
    color: var(--text-medium);
    line-height: 1.7;
}

/* Tip Box */
.tip-box {
    background: #fff9e6;
    border-left: 4px solid #ffa500;
    padding: 2rem;
    border-radius: 8px;
    margin-top: 16px;
    margin-bottom: 11.2px;
}

.tip-box-title {
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.tip-box-content {
    color: var(--text-medium);
    line-height: 1.7;
}

.tip-box h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.tip-box p {
    margin-top: 0;
    margin-bottom: 0;
}

.tip-box p:last-child {
    margin-top: 0;
    margin-bottom: 0;
}

/* Navigation */
.topic-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    gap: 2rem;
}

.nav-btn {
    padding: 1.5rem 2rem;
    background: white;
    border: 2px solid var(--light-blue);
    color: var(--dark-blue);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    white-space: nowrap;
}

.nav-btn:hover {
    background: var(--light-blue);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(80, 165, 230, 0.3);
}

.nav-btn.next {
    margin-left: auto;
}

.nav-btn.prev {
    margin-right: auto;
}

/* Outline Page Styles */
.outline-header {
    background: linear-gradient(135deg, #ff1493 0%, var(--light-blue) 100%);
    padding: 3rem 2rem;
    border-radius: 16px;
    margin-bottom: 3rem;
    text-align: center;
}

.outline-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.outline-header p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.95);
    max-width: 700px;
    margin: 0 auto;
}

.outline-topics {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.outline-topic {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.outline-topic:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.outline-topic-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.outline-topic-number {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--pink), var(--light-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.outline-topic-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-blue);
}

.outline-topic-pages {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.outline-page-link {
    display: block;
    padding: 1rem 1.25rem;
    background: var(--alabaster);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.outline-page-link:hover {
    background: rgba(80, 165, 230, 0.1);
    border-left-color: var(--light-blue);
    color: var(--dark-blue);
}

/* Footer */
.site-footer {
    background: white;
    border-top: 1px solid #e5e7eb;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.footer-column h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-logo {
    height: auto;
    width: 60px;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-brand:hover {
    color: var(--medium-blue);
}

.footer-tagline {
    color: var(--text-medium);
    font-size: 0.95rem;
    font-style: italic;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-links:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: var(--text-medium);
    text-decoration: none;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: var(--dark-blue);
}

/* Language Toggle */
.lang-content {
    display: none;
}

.lang-content.active {
    display: block;
}

/* Content Page Styles */
.intro-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.regular-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
}

.regular-text-w-top-padding {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    padding-top: 1rem;
}

.regular-text-w-bottom-padding {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    padding-bottom: 1rem;
}

.conclusion-text {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.8;
    margin-top: 1.5rem;
}

.inline-link {
    color: var(--medium-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.inline-link:hover {
    color: var(--dark-blue);
}

/* Instruction Steps */
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.instructions-section .section-title {
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #d1d5db;
    margin-bottom: 2rem;
}

.instruction-step {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 1rem;
    align-items: start;
}

.step-number {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--pink), var(--light-blue));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    grid-row: 1;
}

.step-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-blue);
    grid-column: 2;
}

.step-content {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 0.75rem;
    grid-column: 2;
}

.step-content:last-child {
    color: var(--text-medium);
    line-height: 1.7;
    grid-column: 2;
    margin-bottom: 0;
}


/* For ordered lists (numbers) - use with <ol> */
.ol-step-list {
    list-style: decimal;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 2;
}

.ol-step-list li {
    color: var(--text-medium);
    line-height: 1.7;
    padding-left: 0.5rem;
}

.ol-step-list li::marker {
    color: var(--light-blue);
    font-weight: 600;
}

/* For unordered lists (bullets) - use with <ul> */
.ul-step-list {
    list-style: none;
    padding-left: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 2;
}

.ul-step-list li {
    color: var(--text-medium);
    position: relative;
    padding-left: 1.5rem;
}

.ul-step-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--light-blue);
}

.ul-step-list li:last-child {
    margin-bottom: 12px;
}

/* Image */
.image {
    display: block;
    width: 100%;
    max-width: 800px;
    border-radius: 8px;
    margin: 1rem auto;
}

/* Resource Box */
.resource-box {
    background: var(--alabaster);
    padding: 2rem;
    border-radius: 10px;
    border-left: 4px solid var(--light-blue);
}

.resource-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--dark-blue);
    margin-bottom: 1rem;
}

.resource-content {
    color: var(--text-medium);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.resource-content:last-child {
    margin-bottom: 0;
}

.resource-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    grid-column: 2;
    margin-top: 1rem;
}

.resource-list li {
    color: var(--dark-blue);
    position: relative;
    padding-left: 1.5rem;
}

.resource-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--light-blue);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 1rem 1.5rem;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .course-title {
        display: none;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .topic-header {
        padding: 2.5rem 1.5rem;
    }

    .topic-title {
        font-size: 1.75rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
    }

    .activities-grid {
        grid-template-columns: 1fr;
    }

    .activities-grid-2x2 {
        grid-template-columns: 1fr;
    }

    .topic-nav {
        flex-direction: column;
    }

    .nav-btn {
        max-width: 100%;
    }

    .outline-header h1 {
        font-size: 1.75rem;
    }

    .outline-topic {
        padding: 1.5rem;
    }

    .outline-topic-title {
        font-size: 1.25rem;
    }

    .outline-topic-pages {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) {
    .header-content {
        padding: 1.5rem 3rem;
    }

    .logo {
        height: 48px;
    }

    .container {
        padding: 4rem 3rem;
    }

    .topic-header {
        padding: 4rem;
    }

    .topic-title {
        font-size: 2.75rem;
    }

    .content-section {
        padding: 3.5rem;
    }
}