/* --- ცვლადები და ბაზისური სტილები --- */
:root {
    --primary: #6366f1;
    --grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --glass: rgba(255, 255, 255, 0.85);
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --dark: #0f172a;
}

body {
    background: #f8fafc;
    background-image: radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%);
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin: 0;
    padding: 0;
}

/* --- ჰედერი (Home.php) --- */
.vibe-header {
    background: var(--glass);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
    padding: 12px 0;
}
.vibe-logo { 
    background: var(--grad); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    font-weight: 800;
}
.badge-dot { width: 8px; height: 8px; background: #ef4444; border-radius: 50%; position: absolute; top: 0; right: 0; border: 2px solid white; }

/* --- ავტორიზაციის გვერდები (Login/Register) --- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    background: white;
    border-radius: 35px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 420px;
}
.form-control {
    border-radius: 18px;
    padding: 14px 20px;
    border: 2px solid #f1f5f9;
    background: #f8fafc;
    transition: 0.3s;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
    background: white;
}
.btn-vibe {
    background: var(--grad);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 15px;
    font-weight: 700;
    width: 100%;
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
    transition: 0.3s;
}
.btn-vibe:hover { transform: translateY(-2px); box-shadow: 0 15px 25px rgba(99, 102, 241, 0.3); color: white; }

/* --- სთორები (Squircle) --- */
.story-ring { width: 70px; height: 70px; border-radius: 24px; padding: 3px; background: var(--grad); }
.story-ring img { width: 100%; height: 100%; border-radius: 21px; border: 3px solid white; object-fit: cover; }
.add-story-sq { 
    width: 70px; height: 70px; border-radius: 24px; background: #f1f5f9; 
    border: 2px dashed #cbd5e1; display: flex; align-items: center; 
    justify-content: center; color: #64748b; font-size: 24px; 
}

/* --- სწრაფი ღილაკები (Quick Actions) --- */
.quick-action-card { 
    background: white; border-radius: 20px; padding: 12px; text-align: center; 
    border: 1px solid #f1f5f9; box-shadow: 0 4px 12px rgba(0,0,0,0.03); 
    flex: 1; min-width: 100px; text-decoration: none; color: inherit; 
}
.action-icon { 
    width: 45px; height: 45px; border-radius: 14px; display: flex; 
    align-items: center; justify-content: center; margin: 0 auto 8px; 
    font-size: 20px; color: white; 
}
.pulse-dot-white { 
    width: 8px; height: 8px; background: white; border-radius: 50%; 
    animation: pulse 2s infinite; 
}

/* --- პოსტების ბარათები --- */
.vibe-card { 
    background: white; border-radius: 30px; border: 1px solid #f1f5f9; 
    box-shadow: var(--shadow); margin-bottom: 25px; overflow: hidden; 
}
.interaction-pill { 
    background: #f1f5f9; border-radius: 100px; padding: 8px 16px; 
    display: inline-flex; align-items: center; gap: 8px; font-weight: 700; 
    font-size: 13px; color: #475569; 
}
.interaction-pill.liked { color: #ff416c; background: #fff1f2; }

/* --- ნავიგაცია (Glow Nav) --- */
.glow-nav { 
    position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); 
    width: 92%; max-width: 450px; background: var(--dark); border-radius: 30px; 
    padding: 10px 15px; display: flex; justify-content: space-around; 
    align-items: center; z-index: 2000; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.4); 
}
.nav-link-custom { color: #64748b; font-size: 22px; text-decoration: none; }
.nav-link-custom.active { color: white; }
.center-add-btn { 
    background: var(--grad); width: 55px; height: 55px; border-radius: 20px; 
    display: flex; align-items: center; justify-content: center; 
    color: white; font-size: 26px; margin-top: -45px; border: 5px solid #f8fafc; 
}

.chat-container {
    height: calc(100vh - 160px); /* აკლდება ჰედერის და ნავბარის სიმაღლე */
    display: flex;
    flex-direction: column;
}
#chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

/* --- Private & Global Chat Layout --- */
.chat-wrapper {
    height: calc(100vh - 180px); /* სიმაღლე ჰედერსა და ნავბარს შორის */
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

#direct-chat-box, #chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.msg-bubble { 
    max-width: 75%; 
    padding: 10px 15px; 
    border-radius: 20px; 
    margin-bottom: 8px; 
    font-size: 14px; 
    word-wrap: break-word;
    font-weight: 500;
}

.msg-mine { 
    align-self: flex-end; 
    background: var(--grad); 
    color: white; 
    border-bottom-right-radius: 4px; 
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.2);
}

.msg-others { 
    align-self: flex-start; 
    background: white; 
    color: var(--dark); 
    border-bottom-left-radius: 4px; 
    border: 1px solid #f1f5f9; 
}

.chat-input-holder {
    background: white;
    padding: 15px;
    border-top: 1px solid #f1f5f9;
    position: sticky;
    bottom: 0;
}

.chat-user-header {
    background: white;
    border-bottom: 1px solid #f1f5f9;
    padding: 10px 15px;
}

.scale-up {
    transform: scale(1.3);
    transition: transform 0.2s ease-in-out;
}
.like-btn i {
    transition: 0.2s;
}
.action-icon .bg-danger {
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
    animation: blink-red 1.5s infinite;
}

@keyframes blink-red {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

.comment-input:focus {
    box-shadow: none;
    border-color: #6366f1;
}
.comments-container::-webkit-scrollbar {
    width: 4px;
}
.comments-container::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}
.send-comment {
    transition: all 0.2s ease;
}

.send-comment:hover {
    transform: scale(1.1);
    background-color: #4f46e5; /* ოდნავ მუქი ფერი ჰოვერზე */
}

.send-comment:active {
    transform: scale(0.9);
}
.vibe-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* შუშის ეფექტი */
    z-index: 1030;
}


.search-box input:focus {
    background-color: #fff !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.1);
    border: 1px solid #6366f1 !important;
}
.vibe-logo {
    white-space: nowrap;
}

/* პოსტის ნახვის გვერდის ინფუთის სტილი */
.post-view-comment-input {
    outline: none !important;
    box-shadow: none !important;
    background-color: #f2f4f7 !important;
}

.post-view-comment-input:focus {
    background-color: #fff !important;
    border: 1px solid #6366f1 !important;
}
.story-circle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.border-dashed {
    border: 2px dashed #6366f1;
}

.border-vibe {
    border: 2px solid #6366f1; /* აქტიური სთორის ფერი */
    padding: 2px;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.story-card {
    min-width: 70px;
}
@media (max-width: 576px) {
    .vibe-header .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    .vibe-logo {
        color: #6366f1 !important; /* მობილურზე ლოგოს ფერი რომ გამოიკვეთოს */
    }
}

/* მობილურზე ინფუთის ფონტი რომ არ "გაიბეროს" */
@media (max-width: 576px) {
    .vibe-header .form-control {
        font-size: 13px !important;
    }
}
/* --- დამხმარე კლასები --- */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
@keyframes pulse { 
    0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); } 
    70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 
    100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } 
}