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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    background-color: #f5f5f7;
    font-size: 16px;
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 40px;
}

header h1 {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.95;
}

/* Table of Contents */
.toc {
    background-color: #f9f9fb;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    border: 1px solid #e5e5ea;
}

.toc h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #1d1d1f;
}

.toc ul {
    list-style: none;
}

.toc li {
    margin: 10px 0;
}

.toc a {
    color: #0066cc;
    text-decoration: none;
    font-size: 1.05em;
    display: block;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.toc a:hover {
    background-color: #e8e8ed;
    color: #0051a8;
}

/* Sections */
section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

section h2 {
    font-size: 2em;
    color: #1d1d1f;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
}

section h3 {
    font-size: 1.4em;
    color: #2d2d2f;
    margin-top: 30px;
    margin-bottom: 15px;
}

section p {
    margin-bottom: 15px;
    color: #444;
}

section ul {
    margin: 15px 0;
    padding-left: 25px;
}

section li {
    margin: 10px 0;
    color: #444;
}

section strong {
    color: #1d1d1f;
    font-weight: 600;
}

/* Links */
a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: #0051a8;
    text-decoration: underline;
}

/* Screenshots Section */
#screenshots {
    text-align: center;
}

.screenshot-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s, box-shadow 0.3s;
}

.screenshot-item img:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Contact Section */
.contact-email {
    font-size: 1.15em;
    margin: 20px 0;
}

.note {
    color: #666;
    font-size: 0.95em;
    font-style: italic;
    margin-top: 10px;
}

/* Last Updated */
.last-updated {
    margin-top: 30px;
    color: #666;
    font-size: 0.95em;
    text-align: right;
    font-style: italic;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 1px solid #e5e5ea;
    color: #666;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        box-shadow: none;
    }

    header {
        padding: 30px 15px;
        margin-bottom: 30px;
    }

    header h1 {
        font-size: 1.8em;
    }

    header .subtitle {
        font-size: 1em;
    }

    section h2 {
        font-size: 1.6em;
    }

    section h3 {
        font-size: 1.2em;
    }

    .toc {
        padding: 20px;
    }

    .toc h2 {
        font-size: 1.2em;
    }

    .toc a {
        font-size: 1em;
    }

    .screenshot-container {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding: 10px 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .screenshot-container::-webkit-scrollbar {
        display: none;
    }

    .screenshot-item {
        flex: 0 0 70%;
        scroll-snap-align: center;
    }

    .screenshot-item img {
        max-height: 500px;
        width: auto;
        object-fit: contain;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    header h1 {
        font-size: 1.5em;
    }

    section h2 {
        font-size: 1.4em;
    }

    section h3 {
        font-size: 1.1em;
    }

    .screenshot-item {
        flex: 0 0 85%;
    }

    .screenshot-item img {
        max-height: 450px;
    }
}
