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

:root {
    --primary-color: #2563eb;
    --secondary-color: #7c3aed;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

ul {
    list-style-position: inside;
    margin-bottom: 1rem;
}

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

/* Navigation */
.navbar {
    background-color: var(--bg-white);
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
}

.nav-menu a {
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero .subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero .speakers {
    margin: 2rem 0;
    font-size: 1.1rem;
}

.hero .session-info {
    margin-top: 2rem;
}

.hero .session-info p {
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Sections */
.section {
    padding: 4rem 0;
}

.section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.bg-light {
    background-color: var(--bg-light);
}

.intro {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-light);
}

/* Cards */
.card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card .icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card h3 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card ul {
    list-style: none;
}

.card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.card ul li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Grids */
.comparison-grid, .benefits-grid, .warning-grid, .use-cases-grid, .platforms-grid, .examples-grid, .resources-grid {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.warning-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.use-cases-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.platforms-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.examples-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.resources-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* Callout */
.callout {
    background-color: var(--primary-color);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: 2rem 0;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.callout p {
    margin: 0;
    font-size: 1.1rem;
}

/* Benefit Cards */
.benefit-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Warning Cards */
.warning-card {
    background: var(--bg-white);
    border-left: 4px solid var(--danger-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.warning-card h3 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.warning-card .emphasis {
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 1rem;
}

/* Ethical Principle */
.ethical-principle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.ethical-principle h3 {
    color: white;
    margin-bottom: 1rem;
}

.ethical-principle p {
    margin: 0;
    font-size: 1.1rem;
}

/* Checklist */
.checklist {
    max-width: 900px;
    margin: 2rem auto;
}

.checklist-item {
    background: var(--bg-white);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.checklist-item h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Use Case Cards */
.use-case-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.use-case-card.green {
    border-top: 4px solid var(--success-color);
}

.use-case-card.green h3 {
    color: var(--success-color);
}

.use-case-card.red {
    border-top: 4px solid var(--danger-color);
}

.use-case-card.red h3 {
    color: var(--danger-color);
}

.use-case-card ul {
    list-style: none;
}

.use-case-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.use-case-card.green ul li:before {
    content: "✓";
    color: var(--success-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.use-case-card.red ul li:before {
    content: "✗";
    color: var(--danger-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* General Rule */
.general-rule {
    background-color: var(--accent-color);
    color: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    text-align: center;
}

.general-rule p {
    margin: 0;
    font-weight: 600;
}

/* Prompt Steps */
.prompt-steps {
    display: grid;
    gap: 1.5rem;
    max-width: 900px;
    margin: 2rem auto;
}

.step-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    display: flex;
    gap: 1.5rem;
    align-items: start;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-lg);
}

.step-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Golden Rule */
.golden-rule {
    background: var(--danger-color);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin: 3rem auto;
    max-width: 800px;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.golden-rule h3 {
    color: white;
    margin-bottom: 1rem;
}

.golden-rule p {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Platform Cards */
.platform-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.platform-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.platform-card ul {
    list-style: none;
    margin: 1rem 0;
}

.platform-card ul li {
    padding: 0.25rem 0;
}

.platform-note {
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 0.5rem;
}

/* Recipe Cards */
.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.recipe-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.recipe-number {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 1rem;
}

.recipe-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Example Cards */
.example-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.example-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.example-card h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.example-card ul {
    list-style: none;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.example-card ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.example-card ul li:before {
    content: "→";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.example-card .btn-secondary {
    margin-top: auto;
    display: inline-block;
    text-align: center;
}

/* Next Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.next-step-card {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform 0.3s ease;
}

.next-step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.step-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto 1rem;
}

.next-step-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Remember Box */
.remember-box {
    background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.remember-box h3 {
    color: white;
    margin-bottom: 1rem;
}

.remember-box p {
    margin: 0;
    font-size: 1.1rem;
}

/* Resource Section */
.resource-section {
    background: var(--bg-white);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.resource-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.resource-section ul {
    list-style: none;
}

.resource-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.resource-section ul li:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    background-color: var(--text-dark);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

footer p {
    margin: 0.5rem 0;
}

footer a {
    color: var(--accent-color);
}

footer a:hover {
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .comparison-grid,
    .benefits-grid,
    .warning-grid,
    .use-cases-grid,
    .platforms-grid,
    .examples-grid,
    .recipes-grid,
    .steps-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 1rem;
    }

    .step-card {
        flex-direction: column;
        text-align: center;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .benefit-card, .warning-card, .platform-card, .recipe-card, .example-card {
    animation: fadeIn 0.6s ease-out;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }
}

/* Active Navigation State */
.nav-menu a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* External Link Icon */
.external-icon {
    font-size: 0.8em;
    opacity: 0.7;
}

/* Print Button */
.print-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.print-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Fade-in animation class added by JavaScript */
.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Loading state for links */
a[target="_blank"] {
    position: relative;
}

/* Print Styles */
@media print {
    .navbar, footer, .back-to-top, .print-btn, .hamburger {
        display: none;
    }

    .section {
        page-break-inside: avoid;
    }

    body {
        font-size: 12pt;
    }

    a {
        text-decoration: underline;
        color: #000;
    }

    a[href]:after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}
