﻿:root {
    --navy-blue: #5D688A; /* Butoane, Navbar */
    --soft-peach: #F7A5A5; /* Titluri carduri */
    --soft-beige: #FFDBB6; /* Accente, linii */
    --pastel-bg: #FFF2EF; /* Fundal pagină */
}

html {
    font-size: 14px;
    position: relative;
    min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: var(--pastel-bg);
    font-family: 'Poppins', sans-serif;
    color: #4a4a4a;
}

.navbar {
    background-color: var(--navy-blue) !important;
    box-shadow: 0 4px 10px rgba(93, 104, 138, 0.3);
}

.navbar-brand, .nav-link {
    color: white !important;
    font-weight: 500;
}

.nav-link:hover {
    color: var(--soft-beige) !important; 
}

.btn-primary {
    background-color: var(--navy-blue);
    border-color: var(--navy-blue);
    transition: all 0.3s ease;
}


.btn-primary:hover {
    background-color: #464f6b; 
    border-color: #464f6b;
    transform: translateY(-2px); 
}

a {
    color: var(--navy-blue);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--soft-peach);
}

.form-control:focus {
    border-color: var(--navy-blue);
    box-shadow: 0 0 0 0.25rem rgba(93, 104, 138, 0.25);
}

.custom-card {
    border: none;
    border-radius: 20px;
    background-color: white;
    box-shadow: 0 10px 30px rgba(93, 104, 138, 0.15); 
    overflow: hidden;
}

.custom-card-header {
    background-color: var(--soft-peach); 
    padding: 30px;
    text-align: center;
    color: white;
    border-bottom: 5px solid var(--soft-beige); 
}

.custom-card-header h2 {
    margin: 0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.form-control {
    border-radius: 12px;
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}


.shadow-soft {
    box-shadow: 0 10px 25px -5px rgba(93, 104, 138, 0.15), 0 8px 10px -6px rgba(93, 104, 138, 0.1);
}

/*pentru postari*/
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
     transform: translateY(-5px); 
     box-shadow: 0 20px 30px -10px rgba(93, 104, 138, 0.2);
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--soft-peach); 
}

/* butoane cu Iconițe (Like/Comment) */
.btn-action {
    color: var(--navy-blue);
    background-color: transparent;
    border: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-action:hover {
    color: var(--soft-peach);
    background-color: rgba(247, 165, 165, 0.1); 
    border-radius: 10px;
}

.comments-section {
    background-color: #f9fafb;
    border-radius: 0 0 18px 18px;
}

.insta-feed-container {
    max-width: 560px;
    margin: 0 auto;
}

.insta-post-card {
    border-radius: 18px;
    background-color: #ffffff;
    border: none;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.insta-post-header {
    font-size: 0.9rem;
}

.insta-username {
    font-weight: 600;
    font-size: 0.95rem;
}

.avatar-placeholder {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--soft-peach), var(--soft-beige));
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
}

.insta-post-media {
    background-color: #000000;
    position: relative;
    cursor: pointer;
}

.insta-post-media img,
.insta-post-media video {
    width: 100%;
    max-height: 420px;
    height: auto;
    object-fit: contain;
    display: block;
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.video-thumbnail-overlay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 4rem;
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-thumbnail-overlay:hover .play-button-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-thumbnail-overlay:hover img {
    opacity: 0.7;
}

.insta-post-body {
    font-size: 0.92rem;
}

.insta-post-caption {
    white-space: pre-line;
}

.insta-post-actions {
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .insta-feed-container {
        padding-left: 0;
        padding-right: 0;
    }

    .insta-post-card {
        border-radius: 0;
    }
}

/* Instagram-style grid on profile */
.insta-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.insta-profile-grid-item {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000000;
}

.insta-profile-grid-media,
.insta-profile-grid-text {
    position: absolute;
    inset: 0;
}

.insta-profile-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
}

.profile-video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-loading-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000000;
}

.insta-profile-grid-video-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 999px;
    padding: 2px 6px;
    font-size: 0.75rem;
}

.insta-profile-grid-text {
    font-size: 0.8rem;
    background: linear-gradient(135deg, #ffe3dd, #ffe9cc);
}

.insta-profile-text-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.insta-profile-text-item {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    background-color: #ffffff;
    border: 1px solid rgba(93, 104, 138, 0.15);
}

@media (max-width: 768px) {
    .insta-profile-grid {
        gap: 3px;
    }

    .insta-profile-grid-item {
        border-radius: 4px;
    }
}

.btn-back-simple {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background-color: #ffffff;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    border-radius: 50px; 

    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.btn-back-simple:hover {
     background-color: #f9fafb;
     border-color: #d1d5db;
     color: #111827;
     transform: translateY(-1px);
}

.btn-profile-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 25px;
    border: 2px solid #555b7d;
    background-color: transparent; 

    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

    .btn-profile-edit:hover {
       
        background-color: #555b7d;
        color: #ffffff;
        transform: translateY(-2px); 
        box-shadow: 0 4px 12px rgba(85, 91, 125, 0.2);
    }

    .btn-profile-edit i {
        font-size: 1.1em;
    }

.alert-custom-dark-blue {
    background-color: #4a5a7a !important;
    border-color: #3d4a63 !important;
    color: white !important;
}

.alert-custom-dark-blue .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.nav-link .badge {
    min-width: 18px;
    height: 18px;
    padding: 2px 6px;
    font-size: 0.65rem;
    line-height: 1.2;
}

.nav-link:hover .badge {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* dropdown profil */
.dropdown-toggle::after {
    margin-left: 0.5rem;
}

.dropdown-menu {
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: rgba(93, 104, 138, 0.1);
    color: var(--navy-blue);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.alert-login-required {
    background-color: var(--navy-blue, #0a1f3d);
    color: #ffffff; 
    border: none;
    border-radius: 12px; 
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 
}

    .alert-login-required a {
        color: #F7DFE7;
        text-decoration: underline;
        font-weight: 700;
        transition: color 0.2s;
    }

.alert-login-required a:hover {
     color: #ffffff;
}

/*reactii*/
.reaction-wrapper {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.reactions-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%; 
    left: 0;
    margin-bottom: 10px; 
    background: white;
    padding: 5px 10px;
    border-radius: 50px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    display: flex;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(10px) scale(0.8);
    z-index: 1000;
    border: 1px solid #f0f2f5;
}

.reaction-wrapper:hover .reactions-box {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reaction-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: transform 0.2s;
}

.reaction-circle:hover {
    transform: scale(1.2) translateY(-3px);
}

.btn-trigger {
    background: none;
    border: none;
    padding: 0;
    font-weight: 600;
    color: #65676b; 
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.btn-trigger:hover {
    color: #444; 
}


.text-pastel-blue {
    color: #89CFF0 !important;
}
.text-pastel-red {
    color: #ff6b6b !important;
}
.text-pastel-yellow {
    color: #feca57 !important;
}
.active-reaction i {
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.1));
}

.text-decoration-underline-hover:hover {
    text-decoration: underline;
    cursor: pointer;
}

.btn-comments-toggle:hover {
    text-decoration: underline !important;
    cursor: pointer;
    color: #262626 !important;
}