/* Vue.js Application Styles - Versiune combinată și îmbunătățită */

/* Reset și bază */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
}

/* Loading Screen */
#vue-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.3s ease-in-out;
}

#vue-app {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

#vue-app.loaded {
    opacity: 1;
}

/* Header Styling */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-branding {
    display: flex;
    align-items: center;
}

.site-logo-svg {
    flex-shrink: 0;
}

.site-title-wrapper {
    margin-left: 1rem;
}

.site-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.site-description {
    margin: 0;
    color: #6c757d;
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Navigation */
.navbar-light .navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #0d6efd;
}

.navbar-light .navbar-nav .nav-link.active {
    color: #0d6efd;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 4px;
}

/* Home Icon */
.navbar-nav .nav-link i.bi-house-door-fill {
    font-size: 1.2rem;
}

/* Dropdown Menu */
.navbar-nav .dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 0.5rem;
}

.navbar-nav .dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #0d6efd;
}

.navbar-nav .dropdown-toggle::after {
    margin-left: 0.5rem;
}

/* Dropdown on hover (desktop) */
@media (min-width: 992px) {
    .navbar-nav .dropdown:hover .dropdown-menu {
        display: block;
    }
    
    .navbar-nav .dropdown-menu {
        margin-top: 0;
    }
}

/* Search Input */
.header-search .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Featured Section */
.featured-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-post {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.featured-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Cards */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #0d6efd;
}

/* Card Images */
.card img,
.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover img,
.article-card:hover .article-image img {
    transform: scale(1.05);
}

/* Article Cards */
.article-card {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #0d6efd;
}

.article-image {
    height: 200px;
    overflow: hidden;
}

/* Single Article */
.single-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    padding-bottom: 2rem;
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.article-featured-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 2rem;
}

/* Article Content */
.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.article-content p {
    margin-bottom: 1.5rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
}

/* Article Meta */
.article-meta {
    color: #6c757d;
    font-size: 0.9rem;
}

.article-meta i {
    margin-right: 0.25rem;
}

/* Badge Styling */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Footer */
.site-footer {
    background: #212529;
    color: #fff;
    margin-top: 4rem;
}

.site-footer a {
    color: #adb5bd;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: white;
}

.site-footer h5 {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Social Icons */
.social-icons a {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #0d6efd;
}

/* Utilities */
.text-silver {
    color: #adb5bd;
}

/* Smooth Transitions */
.fade-enter-active, .fade-leave-active {
    transition: opacity 0.3s;
}

.fade-enter, .fade-leave-to {
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .site-header .row > div {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .site-header .col-md-3 {
        margin-bottom: 0;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .site-title {
        font-size: 1.25rem;
    }
    
    .featured-img {
        height: 200px;
    }
    
    .article-image {
        height: 150px;
    }
}

/* Animation pentru loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.spinner-border {
    animation: spin 1s linear infinite;
}

/* Breaking News Styles */
.breaking-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 8px 15px;
    z-index: 10;
}

.breaking-text {
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    animation: pulse 2s infinite;
}

.breaking-banner-small {
    background: #dc3545;
    padding: 5px 10px;
    border-radius: 4px 4px 0 0;
}

.breaking-banner-large {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 15px 20px;
    border-radius: 8px;
    text-align: center;
}

.breaking-text-large {
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Main Article Card */
.main-article-card {
    position: relative;
    overflow: hidden;
}

.main-article-card .breaking-banner {
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

/* News Feed Container */
.news-feed-container {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    height: 100%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
}

.news-feed {
    overflow-y: auto;
    flex-grow: 1;
    padding-right: 10px;
}

.news-feed::-webkit-scrollbar {
    width: 6px;
}

.news-feed::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 10px;
}

.news-feed::-webkit-scrollbar-thumb {
    background: #6c757d;
    border-radius: 10px;
}

.news-feed::-webkit-scrollbar-thumb:hover {
    background: #495057;
}

/* News Item */
.news-item {
    padding: 15px 0;
    transition: background-color 0.3s ease;
}

.news-item:hover {
    background-color: rgba(13, 110, 253, 0.05);
    border-radius: 4px;
    padding-left: 10px;
    padding-right: 10px;
}

.news-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.news-title {
    color: #333;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-link:hover .news-title {
    color: #0d6efd;
}

.breaking-badge {
    margin-bottom: 8px;
}

.breaking-badge .badge {
    animation: flashBadge 2s infinite;
}

@keyframes flashBadge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Section Blocks */
.section-block {
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 30px;
}

.section-block:last-child {
    border-bottom: none;
}

.section-header h3 {
    font-weight: 700;
    color: #333;
    position: relative;
    padding-bottom: 10px;
}

.section-header h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #0d6efd;
}

.section-header h3 a:hover {
    color: #0d6efd !important;
}

/* Section News */
.section-news {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.news-item-small {
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
}

.news-item-small:last-child {
    border-bottom: none;
}

.news-title-small {
    color: #333;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.news-title-small:hover {
    color: #0d6efd;
}

.breaking-badge-small {
    margin-bottom: 5px;
}

/* Tabs */
.nav-tabs .nav-link {
    color: #6c757d;
    font-weight: 500;
    border: none;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    color: #0d6efd;
    border-color: #0d6efd;
}

.nav-tabs .nav-link.active {
    color: #0d6efd;
    border-color: #0d6efd;
    background: none;
}

/* Spin Animation for Refresh Button */
.spin {
    animation: spin 1s linear infinite;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .news-feed-container {
        max-height: 400px;
        margin-top: 20px;
    }
    
    .main-article-card img {
        height: 300px !important;
    }
}

@media (max-width: 576px) {
    .breaking-text {
        font-size: 0.75rem;
    }
    
    .breaking-banner {
        padding: 6px 10px;
    }
    
    .news-feed-container {
        padding: 15px;
    }
}

/* ============================================
   LIVE NEWS BANNER - Homepage
   ============================================ */

.live-news-banner {
    background: #dc3545;
    color: white;
    padding: 15px 0;
    animation: slideDown 0.5s ease-out;
    position: relative;
    overflow: hidden;
}

.live-news-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.live-banner-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 20px;
    flex-shrink: 0;
}

.live-dot {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}

.live-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.live-update-info {
    flex: 1;
}

.live-link {
    text-decoration: none;
    color: white;
    display: block;
    transition: opacity 0.3s;
}

.live-link:hover {
    opacity: 0.9;
}

.live-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.live-latest {
    margin: 0 0 5px 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.live-time {
    opacity: 0.8;
    font-size: 0.85rem;
}

.live-see-more {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    opacity: 0.9;
    text-decoration: underline;
}

/* ============================================
   LIVE NEWS PAGE
   ============================================ */

.live-news-page {
    background: #f8f9fa;
    min-height: 100vh;
}

.live-header {
    background: #dc3545;
    color: white;
    padding: 40px 0;
    margin-bottom: 30px;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.live-header-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.live-indicator-large {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    margin-bottom: 20px;
}

.live-dot-large {
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.live-text-large {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.live-page-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.live-page-description {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.live-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    opacity: 0.9;
}

.live-auto-refresh {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   TIMELINE UPDATE-URI
   ============================================ */

.live-updates-timeline {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.live-update-card {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-left: 4px solid #dc3545;
    transition: all 0.3s;
    position: relative;
}

.live-update-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.live-update-card:first-child {
    border-left-color: #dc3545;
    border-left-width: 6px;
    background: linear-gradient(to right, rgba(220, 53, 69, 0.03), white);
}

.update-timestamp {
    flex-shrink: 0;
    width: 100px;
    text-align: right;
}

.update-time {
    font-weight: 700;
    font-size: 1.1rem;
    color: #dc3545;
    margin-bottom: 5px;
}

.update-time-ago {
    font-size: 0.75rem;
    color: #666;
}

.update-content {
    flex: 1;
}

.update-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #333;
}

.update-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 15px 0;
    white-space: pre-wrap;
}

.update-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #666;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.update-author {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-enter-active, .fade-leave-active {
    transition: all 0.5s;
}

.fade-enter {
    transform: translateY(-20px);
    opacity: 0;
}

.fade-leave-to {
    transform: translateY(20px);
    opacity: 0;
}

.spin {
    animation: spin 1s linear infinite;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .live-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .live-page-title {
        font-size: 1.8rem;
    }
    
    .live-update-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .update-timestamp {
        width: auto;
        text-align: left;
    }
    
    .live-meta {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================
   FIRST UPDATE HIGHLIGHT
   ============================================ */

.live-update-card:first-child::before {
    content: 'NOU';
    position: absolute;
    top: -10px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}