/* ==========================================================
   🌐 გლობალური საერთო სტილები (ბაზისური დიზაინი)
   ========================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-tap-highlight-color: transparent; /* მობილურზე კლიკისას ლურჯი ჩრდილის მოცილება */
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #fde2e2; /* შენი დიზაინის ნაზი ვარდისფერი ფონი */
    color: #333333;
}

/* 📦 ფორმების და ინფუთების საერთო სტილი (ყველა გვერდისთვის) */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    background-color: #ffffff;
    color: #333333;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #ff4757;
}

/* 🔘 საერთო სტანდარტული ღილაკის ბაზა */
.btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background-color: #ff4757;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s, opacity 0.2s;
}

.btn-primary:hover {
    background-color: #ff2f44;
}

.btn-primary:disabled {
    background-color: #cccccc;
    color: #888888;
    cursor: not-allowed;
    opacity: 0.7;
}

/* ==========================================================
   🔔 NOTIFICATIONS & CHATS LIST STYLES
   ========================================================== */

.section-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.section-box h3 {
    font-size: 18px;
    color: #ff4757;
    margin-bottom: 15px;
    border-bottom: 2px solid #fde2e2;
    padding-bottom: 8px;
}

/* ❤️ ლაიკების ელემენტები */
.like-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f1f2f6;
    border-radius: 8px;
    transition: background 0.2s ease;
    margin-bottom: 5px;
}

.like-item:last-child {
    border-bottom: none;
}

.chat-link {
    text-decoration: none;
    background: #ff4757;
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    box-shadow: 0 3px 8px rgba(255, 71, 87, 0.3);
    transition: transform 0.2s, background 0.2s;
}

.chat-link:hover {
    background: #e0404e;
    transform: scale(1.05);
}

/* 💬 ჩატების სიის ელემენტები */
.chat-row-item {
    text-decoration: none;
    color: #333333;
    display: block;
    padding: 15px;
    border-bottom: 1px solid #f1f2f6;
    border-radius: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    transition: all 0.2s ease;
}

.chat-row-item:hover {
    background: #fff5f6;
    transform: translateX(3px);
}

.chat-row-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-partner-name {
    font-weight: 700;
    font-size: 16px;
    color: #2f3542;
}

.chat-last-message {
    color: #747d8c;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* თუ გრძელი მესიჯია, ბოლოში სამ წერტილს დასვამს */
}

/* ⚡ ჰედერის ხატულების ციმციმის ანიმაცია (Blink) */
.blink-active {
    animation: pulse-glow 1.2s infinite alternate;
    position: relative;
}

.blink-active::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: #ff4757;
    border-radius: 50%;
    border: 2px solid #ffffff;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.15);
        opacity: 1;
    }
}

/* ეს არის ის, რაც შენს CSS-ს აკლია, რომ ღილაკები ლამაზად დალაგდეს */
#auth-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

#auth-screen h1 {
    margin-bottom: 20px;
}

/* პროფილის შევსების კონტეინერის შეზღუდვა */
#profile-form-container { /* დარწმუნდი რომ შენს HTML-ში ამ დივს ეს ID აქვს */
    max-width: 500px;    /* მაქსიმალური სიგანე, რომ არ გაიწელოს */
    margin: 0 auto;      /* ეკრანის ცენტრში დაყენება */
    padding: 20px;
}

/* რომ ტექსტები და ინფუთები ერთმანეთის ქვეშ იყოს */
.form-group {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.terms-container {
    max-width: 800px;    /* ტექსტი არ გაიწელება ძალიან განიერად */
    margin: 40px auto;   /* ცენტრში დაყენება */
    padding: 30px;
    background: #ffffff; /* თეთრი ფონი ვარდისფერ ფონზე */
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    line-height: 1.6;    /* ხაზებს შორის დაშორება წაკითხვადობისთვის */
}

.terms-container h1 {
    color: #ff4757;
    margin-bottom: 20px;
}

.terms-container p {
    margin-bottom: 15px;
}

/* ეს სტილი ეხება მხოლოდ მოდურ ფანჯარას */
#terms-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(253, 226, 226, 0.95); /* შენი ფონი */
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ეს აკონტროლებს შიდა კონტენტს */
#terms-modal .modal-content {
    background: #ffffff;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    padding: 30px;
    border-radius: 20px;
    overflow-y: auto; /* ეს აჩენს სქროლს */
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    text-align: center;
}

#welcome-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    text-align: center;
    padding: 20px;
}

/* 1. ეს არის ის, რაც შენს CSS-ს აკლია: "ბარათის" სტილი */
#registration-screen {
    background: #ffffff;
    max-width: 450px;
    margin: 40px auto;
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); /* ეს ჩრდილი აძლევს მოცულობას */
    text-align: center;
}

/* 2. სურათზე ნაჩვენები "Add Photo" წრის სტილი */
.profile-pic-placeholder {
    width: 100px;
    height: 100px;
    background: #f1f2f6;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ff4757;
    cursor: pointer;
}

/* 3. ფორმის ღილაკების დაშორება */
#reg-submit-btn {
    background: #ff4757;
    color: white;
    margin-top: 20px;
}