/* Stili suplimentare pentru Centru Medical Specializat - Corectarea Greutății */

/* Stiluri pentru placeholder-uri și gestionarea erorilor de imagine */
.content-image img,
.doctor-image img {
    transition: all 0.3s ease;
}

.content-image img[src*="placeholder"],
.doctor-image img[src*="placeholder"] {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
}

/* Stiluri pentru cazul când imaginea nu se încarcă */
.content-image img:not([src]),
.doctor-image img:not([src]) {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #adb5bd;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    padding: 20px;
}

/* Animații de încărcare */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes heartbeat {
    0% {
        transform: scale(1);
    }
    14% {
        transform: scale(1.1);
    }
    28% {
        transform: scale(1);
    }
    42% {
        transform: scale(1.1);
    }
    70% {
        transform: scale(1);
    }
}

/* Aplicarea animațiilor */
.hero h1 {
    animation: fadeInUp 1.2s ease-out;
}

.hero p {
    animation: fadeInUp 1.2s ease-out 0.3s both;
}

.cta-button {
    animation: fadeInUp 1.2s ease-out 0.6s both;
}

.feature-icon {
    animation: pulse 2s infinite;
}

/* Efecte hover îmbunătățite pentru carduri */
.feature-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.1), transparent);
    transition: left 0.6s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

/* Umbre îmbunătățite */
.feature-card {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    box-shadow: 0 20px 50px rgba(52, 152, 219, 0.2);
    transform: translateY(-10px) scale(1.02);
}

/* Stilizarea scrollbar-ului */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
}

/* Butoane îmbunătățite */
.cta-button {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3498db, #2980b9);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 400px;
    height: 400px;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.5);
}

/* Imagini adaptive */
.content-image {
    background: linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.content-image:hover {
    transform: scale(1.02);
}

.content-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(52, 152, 219, 0.1) 50%, transparent 70%);
    animation: shimmer 3s infinite;
    z-index: 1;
}

.content-image img {
    position: relative;
    z-index: 2;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Tipografie îmbunătățită */
.hero h1 {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Secțiunea statistici */
.stats-section {
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.stat-item {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Cardurile medicilor */
.doctor-card {
    position: relative;
    overflow: hidden;
}

.doctor-image {
    position: relative;
    overflow: hidden;
}

.doctor-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(52, 152, 219, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.doctor-card:hover .doctor-image::before {
    opacity: 1;
}

.doctor-image img {
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.1);
}

.doctor-info {
    position: relative;
    z-index: 2;
}

/* Testimoniale */
.testimonial {
    position: relative;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border-color: #3498db;
}

.testimonial::before {
    font-size: 5rem;
    top: 5px;
    left: 25px;
    color: #3498db;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.testimonial:hover::before {
    opacity: 0.6;
}

/* Secțiunea contacte */
.contact-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.contact-card:hover::before {
    opacity: 0.1;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.2);
}

.contact-icon {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Header-ul fix îmbunătățit */
header {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Navigația */
nav a {
    position: relative;
    padding: 8px 0;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3498db;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover::after {
    transform: scaleX(1);
}

/* Responsive pentru dispozitive mobile */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .content-section {
        padding: 50px 0;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .doctor-card {
        margin-bottom: 30px;
    }
}

/* Tema întunecată (opțional) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .feature-card {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444;
    }
    
    .content-section {
        background: #2d2d2d;
    }
    
    .testimonial {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444;
    }
    
    .contact-card {
        background: #2d2d2d;
        color: #ffffff;
        border-color: #444;
    }
}

/* Animații pentru elemente la încărcare */
.loading-animation {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.loading-animation:nth-child(1) { animation-delay: 0.1s; }
.loading-animation:nth-child(2) { animation-delay: 0.2s; }
.loading-animation:nth-child(3) { animation-delay: 0.3s; }
.loading-animation:nth-child(4) { animation-delay: 0.4s; }
.loading-animation:nth-child(5) { animation-delay: 0.5s; }
.loading-animation:nth-child(6) { animation-delay: 0.6s; }

/* Tranziții îmbunătățite */
* {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stiluri pentru focus (accesibilitate) */
.cta-button:focus,
nav a:focus,
.feature-card:focus {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* Stări de încărcare */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Efecte speciale pentru secțiunea medici */
.doctor-card .doctor-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 3px solid transparent;
    transition: all 0.3s ease;
}

.doctor-card:hover .doctor-info {
    border-top-color: #3498db;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
}

/* Îmbunătățiri pentru secțiunea statistici */
.stats-section {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1f5f8b 100%);
}

.stat-item p {
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Efecte pentru iconițele funcționalităților */
.feature-icon {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
}

/* Îmbunătățiri pentru footer */
footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9, #1f5f8b);
}

/* Efecte pentru link-urile footer-ului */
.footer-section a {
    position: relative;
    transition: color 0.3s ease;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.footer-section a:hover::before {
    width: 100%;
}
