body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f9f9f9;
    color: #222;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 999;          /* hər şeyin üstündə qalsın */
}

.menu-toggle {
    font-size: 22px;
    cursor: pointer;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #333;
    color: #fff;
    transition: 0.3s;
    padding: 20px;
}
.side-menu ul { list-style: none; padding: 0; }
.side-menu li { margin: 15px 0; }
.side-menu a { color: #fff; text-decoration: none; }

.slider { margin: 20px 0; }

.shortstory {
    background: #fff;
    margin: 10px;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.shortstory h2 { font-size: 18px; margin: 10px 0; }
.shortstory .meta { font-size: 13px; color: #555; display: flex; gap: 10px; }

.site-footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 20px;
}
.site-footer a { color: #fff; margin: 0 5px; }

/* Yan menyu */
.side-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 250px;
    height: 100%;
    background: #333;
    color: #fff;
    transition: 0.3s;
    padding: 20px;
    z-index: 1000;
}
.side-menu ul { list-style: none; padding: 0; }
.side-menu li { margin: 15px 0; }
.side-menu a { color: #fff; text-decoration: none; display: block; }
.close-btn {
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    position: absolute;
    right: 15px;
    top: 10px;
}

/* Modal login/register */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
}
.modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 20px;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
}
.modal-content h2 {
    margin-top: 0;
    font-size: 20px;
    text-align: center;
}
.modal .close {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

/* Xəbər kartındakı şəkil */
.shortstory img {
    width: 100%;          /* ekran eninə uyğunlaşır */
    height: auto;         /* nisbəti saxlayır */
    max-width: 100%;      /* heç vaxt konteynerdən böyük olmur */
    border-radius: 8px;   /* yumru künc */
    object-fit: cover;    /* şəkil çərçivəyə oturur */
}

/* Fullstory şəkli */
.fullstory img {
    width: 100%;          /* mobil və PC üçün uyğunlaşır */
    max-width: 100%;      /* konteynerin enindən çıxmır */
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 6px;
}

/* Daha kiçik ekranlarda xüsusi qayda */
@media (max-width: 768px) {
    .shortstory img {
        max-height: 200px; /* mobil üçün daha balaca */
    }
    .fullstory img {
        max-height: 400px; /* tam xəbərdə böyük şəkil amma yenə də limitli */
    }
}


.login-page {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.login-page h2 {
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-options a {
    text-decoration: none;
    color: #007bff;
}

.form-submit {
    text-align: center;
}

.btn-login {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.btn-login:hover {
    background: #0056b3;
}

.form-register {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.register-page {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.register-page h2 {
    text-align: center;
    margin-bottom: 20px;
}

.btn-register {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.btn-register:hover {
    background: #1e7e34;
}

.form-login {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.static-page {
    max-width: 900px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.static-page h1 {
    font-size: 26px;
    margin-bottom: 20px;
    text-align: center;
}

.static-content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.static-footer {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

.share-icons {
    margin-top: 10px;
}

.share-icons a {
    color: #007bff;
    text-decoration: none;
    margin: 0 5px;
}

.share-icons a:hover {
    text-decoration: underline;
}

