/* ============================================================================
   styles-common.css
   Stiluri comune independente de temă (layout, animații, tranziții, structuri)
============================================================================ */

@font-face {
  font-family:'Inter';
  src:url('/public/fonts/inter-400.woff2') format('woff2');
  font-weight:400;
  font-style:normal;
  font-display:swap;
}
@font-face {
  font-family:'Inter';
  src:url('/public/fonts/inter-500.woff2') format('woff2');
  font-weight:500;
  font-style:normal;
  font-display:swap;
}
@font-face {
  font-family:'Inter';
  src:url('/public/fonts/inter-600.woff2') format('woff2');
  font-weight:600;
  font-style:normal;
  font-display:swap;
}
@font-face {
  font-family:'Inter';
  src:url('/public/fonts/inter-700.woff2') format('woff2');
  font-weight:700;
  font-style:normal;
  font-display:swap;
}


/* ============================================================================
   2. Animations
============================================================================ */

@keyframes fadeInDark {
    from {
        background-color: #f8f9fa;
        opacity: .9;
    }
    to {
        background-color: #000;
        opacity: 1;
    }
}

@keyframes pulseSuccess {
    0%   { transform: scale(0.8); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes pulseStrong {
    0%   { box-shadow: 0 0 0 0 #dc3545cc; }
    70%  { box-shadow: 0 0 0 20px #dc354500; }
    100% { box-shadow: 0 0 0 0 #dc354500; }
}

@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================================
   3. Header & Navigation - layout only
============================================================================ */

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.title-link {
    position: relative;
    transition: transform .4s ease;
    overflow: hidden;
    display: inline-block;
}

.title-link:hover {
    transform: translateY(-4px);
}

.rca-text {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: .15em;
    margin-left: .15em;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.title-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    margin: 12px 0;
    border-radius: 3px;
}

.dropdown-toggle-custom::after {
    display: none !important;
}

.dropdown-menu {
    min-width: 280px;
    border-radius: 6px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px); /* pentru Safari */
}

.card-body {
    border-radius: 16px;
}

.glass-card {
    backdrop-filter: blur(12px);
    border-radius: 1rem;
} 

/* ============================================================================
   4. Components - Buttons, Icons (doar layout/tranziții)
============================================================================ */

.btn-icon {
    padding: .375rem .75rem;
}


/* ============================================================================
   5. Timeline - structură
============================================================================ */

.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 4px;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-left {
    margin-right: 55%;
    text-align: right;
}

.timeline-right {
    margin-left: 55%;
}

.timeline-badge {
    position: absolute;
    left: 50%;
    margin-left: -20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    z-index: 1;
}

.timeline-content {
    position: relative;
}

/* ============================================================================
   6. Cards & Product/Article components - structură
============================================================================ */

.product-card {
    border-radius: 1rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.product-card.disabled:hover {
    transform: none;
}

.product-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.product-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.coming-soon {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
}

.article-card {
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
}

.article-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.article-body {
    padding: 1.5rem;
}

.article-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.article-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
}

.article-date {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.modal-backdrop {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(4px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(4px) saturate(180%) !important;
}

/* Opțional: animație ușoară la apariția backdrop-ului */
.modal-backdrop.show {
    opacity: 1 !important;
}

/* Asigură că modalul însuși nu primește blur (rămâne clar) */
.modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}


/* Opțional: animație ușoară la apariția backdrop-ului */
.modal-backdrop.show {
    opacity: 1 !important;
}

/* Asigură că modalul însuși nu primește blur (rămâne clar) */
.modal-content {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.sidebar {
    border-radius: 1.25rem;
    backdrop-filter: blur(12px);
}

.nav-tabs .nav-link {
    transition: all 0.5s ease;
}

.nav-tabs .nav-link:hover {
    isolation: isolate; /* previne suprapuneri ciudate */
}

.nav-tabs .nav-link.active {
    transition: all 0.5s ease;
}

.nav-link-cont {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0.75rem;
}

.nav-link-cont:hover,
.nav-link-cont.active {
    transform: translateX(4px);
}

.nav-link-cont:hover .bi,
.nav-link-cont.active .bi {
    opacity: 1;
}

.profile .avatar {
    font-size: 1.9rem;
}

.badge-cont {
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: 8px !important;
}

/* ============================================================================
   7. Notification / Pulse elements
============================================================================ */

.pulse-core {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    animation: pulseStrong 2s infinite;
    pointer-events: none;
}

#pulseCircle {
    cursor: pointer;
    overflow: visible;
}

.transition-icon {
    transition: top .4s ease, transform .4s ease, font-size .4s ease;
}

.transition-count {
    transition: opacity .4s ease;
}

/* ============================================================================
   8. Scroll to top button
============================================================================ */

#scrollToTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 998;
    width: 48px;
    height: 48px;
    background-color: rgba(13, 110, 253, 0.85);
    color: white;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}
#scrollToTopBtn:hover {
    background-color: #0d6efd;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
#scrollToTopBtn.show {
    display: flex;
}

/* ============================================================================
   9. Footer & Links - doar tranziții
============================================================================ */

.footer-link {
    text-decoration: none;
    transition: color .2s ease;
}

.footer-link:hover {
    color: var(--bs-secondary) !important; /* gri (text-secondary) */
}

.footer-link:focus {
    outline-offset: 2px;
}


/* ============================================================================
   12. Logo Marquee
============================================================================ */

.logo-marquee-wrapper {
    position: relative;
    margin: 100px 0 60px;
    overflow: hidden;
}

.logo-marquee-wrapper::before,
.logo-marquee-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: marquee-scroll 50s linear infinite;
    will-change: transform;
}

.logo-marquee:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    margin: 0 30px;
}

.logo-item img {
    height: 30px;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%) opacity(.8);
    transition: filter .3s ease;
}

.logo-item img:hover {
    filter: grayscale(0%) opacity(1);
}

.user-avatar-square {
    width: 56px;
    height: 56px;
    background-size: cover;
    background-position: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}
.user-avatar-square:hover {
    transform: translateY(-2px);
}


.title-link {
    position: relative;
    transition: transform 0.4s ease;
    overflow: hidden;
    display: inline-block;
}
.title-link:hover { transform: translateY(-4px); }

.rca-text {
    font-size: 2.4rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-left: 0.15em;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
    opacity: 1;
}
.title-line {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #0d6efd, #0dcaf0);
    margin: 12px 0;
    border-radius: 3px
}
.subtitle-text {
    font-size: 1rem;
    letter-spacing: 6px;
    margin-left: 6px;
    font-weight: 500;
    opacity: 1;
}

.user-info {font-size: 1.1rem; font-weight: 500;}
.user-info .badge {font-size: 0.75rem;}
.btn-icon {padding: 0.375rem 0.75rem;}
.header-right {display: flex; align-items: center; gap: 12px;}


/* ============================================================================
   13. Typography / Titles - doar dimensiuni
============================================================================ */

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 2.5rem;
}

/* ============================================================================
   15. Media Queries
============================================================================ */

@media (max-width: 992px) {
    .rca-text { font-size: 2.1rem; }
    .subtitle-text { font-size: .95rem; letter-spacing: 5px; }
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-left, .timeline-right {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
    .timeline-badge { left: 0; margin-left: 0; }
    .timeline-content { margin-left: 60px; }

    #scrollToTopBtn {
        width: 44px;
        height: 44px;
        bottom: 100px;
        right: 33px;
        font-size: 1.2rem;
    }

    .header-main {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .user-info { text-align: center; }
    .header-right { justify-content: center; }

    .hero-header h1 { font-size: 2.3rem; }
    .section-title { font-size: 1.9rem; }
    .product-icon { font-size: 3rem; }

    .logo-marquee { gap: 20px; }
    .logo-item img { height: 38px; }
    .logo-marquee-wrapper::before,
    .logo-marquee-wrapper::after { width: 60px; }
}

@media (max-width: 576px) {
    .rca-text { font-size: 1.8rem; }
    .subtitle-text { font-size: .9rem; letter-spacing: 3px; }
    .user-avatar-square {
        width: 50px;
        height: 50px;
        border-width: 4px;
    }

    .row.g-4 > div { margin-bottom: 1.5rem; }
    hr.my-4 { margin: 1.5rem 0; }
}


/* Responsive – pe mobile devine mai mic / colapsabil */
@media (max-width: 991px) {
    .sidebar {
        position: relative;
        top: 0;
        height: auto;
        border-radius: 0;
        box-shadow: none;
    }
}
