@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800;900&display=swap');

html, body {
    margin: 0; padding: 0; width: 100%; height:100vh;
    background: #f0f4f8; font-family: 'Inter', 'sans-serif';
    display: flex; justify-content: center; align-items: center;
    overflow-x: hidden; cursor:pointer;
}

/* --------- Auth Styles --------- */
.auth-container {
    width: 90%; max-width:380px; background: #ffffff;
    color: #111111; border-radius: 24px; padding: 40px 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3); text-align: center;
}

.auth-container h3 {
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 25px;
    letter-spacing: -1px;
}

.alert {
    background: #ffe6e6; color: #d93025; border: 2px solid #f5c2c7;
    padding: 12px; border-radius: 16px; margin-bottom: 20px;
    font-size: 0.95rem; font-weight: 800;
}

input {
    width: 100%; padding: 16px 20px; margin-bottom: 16px;
    box-sizing: border-box; outline:none;
    font-family: 'Inter', 'sans-serif'; font-size: 1rem; font-weight: 600;
    transition: all 0.2s ease;
}

input:focus {
    border-color: #111;
    background: #fff;
}

input::placeholder {
    color: #999;
    font-weight: 600;
}

.btn {
    width: 100%; padding: 16px; border: none; border-radius: 16px;
    font-size: 1.1rem; font-weight: 800; cursor: pointer; margin-bottom: 12px;
    transition: all 0.2s ease;
}

.btn-login {
    background: #111;
    color: #fff;
}
.btn-login:hover {
    background: #333;
}

.btn-register {
    background: #111;
    color: #fff;
    border: 2px solid transparent;
}
.btn-register:hover {
    background: #ccc;
}

/* --------- Feed Styles --------- */
#feed {
    width: 100%; max-width: 500px; display: flex;
    flex-direction: column; align-items: center;
}

.post {
    width: 90%; aspect-ratio: 4/5; border-radius: 24px;
    overflow: hidden; background: #fff; position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.post-img {
    width: 100%; height: 100%; object-fit: cover;
}

.info {
    position: absolute; bottom: 20px; left: 20px; right: 20px;
    padding: 20px; background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px); border-radius: 20px; pointer-events: none;
}

.title {
    font-size: 1.6rem; font-weight: 900; color: #111;
    margin-bottom: 5px; letter-spacing: -0.5px;
}

.desc {
    font-size: 0.8rem; color: #007aff; font-weight: 800;
    display: block; margin-top: 8px; text-transform: uppercase; letter-spacing: 0.5px;
}

.logout-btn {
    position: absolute; top: 20px; right: 20px; background: #fff;
    color: #111; padding: 10px 18px; border-radius: 20px;
    text-decoration: none; font-size: 0.95rem; font-weight: 800;
    z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* --------- Modal & Upload Styles --------- */
.add-btn {
    position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px;
    background: #111; color: #fff; border-radius: 50%; font-size: 40px;
    text-align: center; line-height: 55px; cursor: pointer; z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: transform 0.2s ease;
}

.add-btn:hover {
    transform: scale(1.05);
}

.upload-modal {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.95); z-index: 2000; justify-content: center; align-items: center;
}

.upload-modal.active {
    display: flex;
}

.upload-content {
    width: 90%; max-width: 400px; background: #fff; padding: 30px;
    border-radius: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); position: relative;
}

.upload-content h3 {
    margin-top: 0; margin-bottom: 20px; font-weight: 900;
}

.close-btn {
    position: absolute; top: 15px; right: 20px; font-size: 24px;
    cursor: pointer; font-weight: bold; color: #555;
}

.close-btn:hover {
    color: #000;
}

.file-input {
    border: 1px solid #ccc; padding: 12px; cursor: pointer;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 800;
    color: #555;
    margin-bottom: 6px;
    padding-left: 4px;
}

input[type="file"] {
    display: none;
}

.custom-file-upload {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 0.95rem;
    color: #9ca3af;
    font-weight: 600;
    transition: all 0.2s ease;
    background: #f9fafb;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
}

.custom-file-upload:hover {
    border-color: #111;
    color: #111;
    background: #fff;
}

.form-group input[type="text"] {
    margin-bottom: 0;
}

.btn-publish {
    background: #f3f4f6;
    color: #4b5563;
    border: none;
    margin-top: 10px;
}

.btn-publish:hover {
    background: #e5e7eb;
    color: #111;
}

/* --------- LIkes btn --------- */

.post-actions {
    margin-top: 10px;
    pointer-events: auto;
}

.like-button {
    background: transparent;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.2rem;
    color: #333;
    padding: 5px 10px;
    border-radius: 20px;
    transition: background-color 0.2s ease;
}

.like-button:hover {
    background-color: #f0f0f0;
}

.heart-icon {
    width: 24px;
    height: 24px;
    fill: transparent;
    stroke: #ff4b4b;
    stroke-width: 2px;
    transition: fill 0.3s ease, transform 0.2s ease;
}

.heart-icon.liked {
    fill: #ff4b4b;
    transform: scale(1.1);
}

.like-button:hover .heart-icon {
    transform: scale(1.1);
}

/*--- ---*/
