/**
 * Diş Kliniği Web Sitesi
 * Kartlar Bileşeni CSS
 */

/* Temel Kart Stilleri */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    background-color: #fff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
}

.card-text {
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Hizmet Kartları */
.service-card {
    text-align: center;
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card:hover::before {
    height: 10px;
}

.service-card .service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    font-size: 32px;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.service-card p {
    color: var(--text-color-light);
    margin-bottom: 20px;
}

/* Doktor Kartları */
.doctor-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.doctor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.doctor-card .doctor-img {
    position: relative;
    overflow: hidden;
}

.doctor-card .doctor-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.doctor-card:hover .doctor-img img {
    transform: scale(1.1);
}

.doctor-card .doctor-info {
    padding: 20px;
    text-align: center;
}

.doctor-card .doctor-info h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-color);
}

.doctor-card .doctor-info p {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.doctor-card .doctor-social {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.doctor-card .doctor-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--light-bg);
    color: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.doctor-card .doctor-social a:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Hasta Yorumları Kartları */
.testimonial-card {
    padding: 30px;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 24px;
    color: var(--primary-color-light);
    opacity: 0.3;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.7;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-card .testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-card .testimonial-author-info h5 {
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.testimonial-card .testimonial-author-info p {
    font-style: normal;
    margin-bottom: 0;
    font-size: 14px;
    color: var(--text-color-light);
}

/* Blog Kartları */
.blog-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    background-color: #fff;
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.blog-card .blog-img {
    position: relative;
    overflow: hidden;
}

.blog-card .blog-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.blog-card:hover .blog-img img {
    transform: scale(1.1);
}

.blog-card .blog-date {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 500;
}

.blog-card .blog-content {
    padding: 25px;
}

.blog-card .blog-content h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.blog-card:hover .blog-content h4 {
    color: var(--primary-color);
}

.blog-card .blog-content p {
    color: var(--text-color-light);
    margin-bottom: 20px;
    line-height: 1.6;
}

.blog-card .blog-meta {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.blog-card .blog-meta span {
    display: flex;
    align-items: center;
    margin-right: 20px;
    color: var(--text-color-light);
    font-size: 14px;
}

.blog-card .blog-meta span i {
    margin-right: 5px;
    color: var(--primary-color);
}

/* Responsive Stiller */
@media (max-width: 991.98px) {
    .service-card {
        padding: 20px;
    }
    
    .doctor-card .doctor-img img {
        height: 250px;
    }
}

@media (max-width: 767.98px) {
    .card-img-top {
        height: 180px;
    }
    
    .blog-card .blog-img img {
        height: 200px;
    }
}
