/* Base Reset */
body {
    font-family: 'Vilna', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 95%;
    max-width: 900px;
    margin: auto;
    padding: 0 15px;
}

/* Header & Navigation */
header {
    background: #2c3e50;
    color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: #fff;
    padding: 2px;
    object-fit: contain;
}

header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

header ul {
    padding: 0;
    margin: 0;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
}

header a {
    color: #ecf0f1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

header a:hover {
    color: #e67e22;
}

/* Components */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 20px;
    border: 1px solid #eee;
}

.hero-card {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f1f4f8 100%);
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.btn-small {
    background: #34495e;
    color: #fff;
    border: 1px solid #5d6d7e;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-family: inherit;
}

.btn-primary {
    background: #2c3e50;
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    transition: transform 0.1s, background 0.2s;
    font-family: inherit;
}

.btn-primary:hover {
    background: #34495e;
}

.btn-primary:active {
    transform: scale(0.98);
}

.link-styled {
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #d6eaf8;
}

/* Sections */
section {
    padding: 20px 0;
}

h2 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 20px;
}

/* Centering intro paragraphs globally in hero and feedback */
.hero-card p,
#feedback p {
    text-align: center;
}

/* Changelog */
.changelog-item {
    background: #fff;
    margin-bottom: 10px;
    padding: 20px;
    border-left: 5px solid #e8491d;
    border-radius: 4px;
}

/* RTL Specifics */
[dir="rtl"] {
    direction: rtl;
}

.version-list[dir="rtl"] {
    text-align: right;
}

/* Form Styling */
.form-group {
    margin-bottom: 18px;
    text-align: left; /* Keep labels left-aligned for LTR */
}

[dir="rtl"] .form-group {
    text-align: right; /* Align labels right for RTL */
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    font-size: 15px;
    box-sizing: border-box;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

/* Status Messages */
#form-status {
    margin-top: 15px;
    font-weight: 600;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
}

.status-success { color: #27ae60; background: #eafaf1; }
.status-error { color: #c0392b; background: #fdedec; }
.status-loading { color: #7f8c8d; background: #f4f6f7; }

/* Footer */
footer {
    padding: 30px 0;
    text-align: center;
    color: #7f8c8d;
    font-size: 13px;
}

/* Mixed Language Flow */
.yi {
    unicode-bidi: embed;
}

/* Responsive */
@media(max-width: 600px) {
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    header ul {
        width: 100%;
        justify-content: center;
    }
}
