/**
 * @file cv.css
 * @description CV Hazırlama Sayfası Stilleri
 * @author Erdinç Taze
 */

:root {
    --cv-primary: #28a745;
    --cv-primary-dark: #1e7e34;
    --cv-primary-light: #d4edda;
    --cv-bg-light: #f8fff9;
    --cv-text-dark: #333;
    --cv-text-muted: #6c757d;
}

/* General Layout */
.bg-light-green {
    background-color: var(--cv-bg-light);
}

.section-full {
    padding: 80px 0;
}

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.shadow-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

/* Hero Section */
.cv-hero-section {
    position: relative;
    overflow: hidden;
}

.cv-hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--cv-text-dark);
}

.cv-hero-desc {
    font-size: 1.1rem;
    line-height: 1.6;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

/* Steps Section */
.cv-step-card {
    border: none;
    border-radius: 1rem !important; /* Force border-radius */
    position: relative; /* For pseudo-element positioning */
    z-index: 1;
    overflow: hidden; /* Ensure pseudo-element doesn't spill out */
}

/* Left ribbon line effect */
.cv-step-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--cv-primary);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease-in-out;
    z-index: 2;
}

.cv-step-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.cv-step-icon {
    color: var(--cv-primary);
    /* Transition removed */
}

.cv-step-card:hover .cv-step-icon {
    /* Scale effect removed */
    transform: none;
}

.cv-step-title {
    font-weight: 600;
    color: var(--cv-text-dark);
}

/* Templates Section */
.cv-template-card {
    cursor: pointer;
}

.cv-template-card img {
    transition: transform 0.5s ease;
    height:50vh;
}

/* Removed hover scaling for template images as requested "resim sola kaymasın" */
/* If user meant the "step cards", there are no images there, only icons. */
/* If user meant "template cards" should not move: */
.group:hover .cv-template-card img,
.cv-template-card:hover img {
    transform: none; /* Disable scale/move */
}

.cv-template-overlay {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    transition: all 0.3s ease;
}

.cv-template-card:hover .cv-template-overlay {
    opacity: 1 !important;
}

/* FAQ Accordion */
.custom-accordion .accordion-button {
    background-color: #fff;
    color: var(--cv-text-dark);
    box-shadow: none;
    padding: 1.25rem;
}

.custom-accordion .accordion-button::after {
    display: none; /* Hide default icon */
}

.custom-accordion .accordion-button:not(.collapsed) {
    color: var(--cv-primary);
    background-color: var(--cv-bg-light);
    box-shadow: none;
}

.faq-icon-wrapper {
    width: 32px;
    height: 32px;
    transition: all 0.3s ease;
}

.custom-accordion .accordion-button:not(.collapsed) .faq-icon-wrapper {
    background-color: var(--cv-primary) !important;
    color: #fff !important;
    transform: rotate(180deg);
}

.custom-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,.125);
}

.custom-accordion .accordion-item {
    border: none;
}

/* Blog Section */
.cv-blog-card {
    border: none;
    transition: all 0.3s ease;
}

.cv-blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.175)!important;
}

.cv-blog-img img {
    transition: transform 0.5s ease;
}

.cv-blog-card:hover .cv-blog-img img {
    transform: scale(1.1);
}

.cv-blog-title a {
    transition: color 0.2s ease;
}

.cv-blog-title a:hover {
    color: var(--cv-primary) !important;
}

.read-more:hover {
    text-decoration: underline !important;
    color: var(--cv-primary-dark) !important;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .cv-hero-title {
        font-size: 2.5rem;
    }
    
    .section-full {
        padding: 50px 0;
    }
}

@media (max-width: 768px) {
    .cv-hero-title {
        font-size: 2rem;
    }
    
    .cv-hero-image {
        margin-top: 2rem;
    }
}
