/* Base Reset */
body {
    font-family: 'david', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #3c4043;
    background-color: #ffffff;
}

.container {
    width: 95%;
    max-width: 1000px;
    margin: auto;
    padding: 0 15px;
}

/* Header & Navigation (Google Sites Style) */
header {
    background: #ffffff;
    color: #3c4043;
    padding: 12px 0;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

header h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    color: #3c4043;
    white-space: nowrap;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

header li {
    display: flex;
    align-items: center;
}

header a {
    color: #5f6368;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

header a:hover {
    color: #202124;
    background: #f1f3f4;
}

/* Header Toggle Button */
#lang-toggle {
    background: transparent;
    color: #1a73e8;
    border: 1px solid #dadce0;
    padding: 6px 16px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    margin-left: 8px;
    transition: background 0.2s;
}

#lang-toggle:hover {
    background: #f8fbff;
    border-color: #1a73e8;
}

/* Components */
.card {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    margin-bottom: 24px;
}

.hero-card {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    margin: 20px 0;
}

.btn-primary {
    background: #1a73e8;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    width: auto;
    transition: background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #1765cc;
    box-shadow: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
}

.link-styled {
    color: #1a73e8;
    text-decoration: none;
}

.link-styled:hover {
    text-decoration: underline;
}

/* Sections */
section {
    padding: 40px 0;
}

h2 {
    text-align: center;
    color: #202124;
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
}

/* Centering intro paragraphs */
.hero-card p,
#feedback p {
    text-align: center;
    color: #5f6368;
}

/* Changelog */
.changelog-item {
    border-left: none;
}

/* Preview Embed */
.preview-card {
    text-align: center;
}

.preview-frame {
    width: min(90vw, 700px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 1px solid #dadce0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.preview-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Form Styling */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #3c4043;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #dadce0;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    font-family: inherit;
    color: #3c4043;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #1a73e8;
    border-width: 2px;
    padding: 11px; /* Adjust for border width change */
}

/* Footer (Google Sites Style) */
footer {
    padding: 40px 0;
    text-align: center;
    color: #5f6368;
    font-size: 12px;
    border-top: 1px solid #dadce0;
    margin-top: 40px;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* Mixed Language Flow */
.yi {
    unicode-bidi: embed;
}

/* Responsive */
@media(max-width: 768px) {
    header h1 {
        font-size: 18px;
    }
    header .container {
        flex-direction: column;
        gap: 12px;
    }
    header ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
