/**
 * COMPONENTS.CSS - UI Components
 * Buttons, Cards, Badges, Stats
 * Mobile-First & Performance Optimized
 * @version 2.0
 */

/* ============================================ */
/* BUTTONS - Touch Optimized */
/* ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    font-family: inherit;
    line-height: 1.4;
    min-height: 44px; /* Touch target */
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-600), var(--primary-500));
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, var(--primary-700), var(--primary-600));
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: white;
    color: var(--primary-600);
    border: 2px solid var(--primary-600);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--primary-600);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-600), var(--accent-500));
    color: white;
}

.btn-accent:hover,
.btn-accent:focus {
    background: linear-gradient(135deg, var(--accent-700), var(--accent-600));
    color: white;
}

.btn-whatsapp {
    background-color: var(--whatsapp);
    color: white;
}

.btn-whatsapp:hover,
.btn-whatsapp:focus {
    background-color: var(--whatsapp-dark);
    color: white;
}

.btn-lg {
    padding: 14px 24px;
    font-size: 1rem;
    min-height: 48px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 16px 32px;
        font-size: 1.125rem;
    }
    
    .btn-primary:hover,
    .btn-accent:hover,
    .btn-whatsapp:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
    }
    
    .btn-primary:active,
    .btn-accent:active,
    .btn-whatsapp:active {
        transform: translateY(-1px);
    }
}

/* ============================================ */
/* SERVICE CARDS - Mobile Optimized */
/* ============================================ */

.service-card {
    background-color: white;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card:hover,
.service-card:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-400);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #3b82f6 0%, #fb923c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
    padding: 16px; /* Icon için padding */
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* White icon effect */
}

.service-icon svg {
    width: 36px;
    height: 36px;
    color: white;
}

.service-title {
    margin-bottom: 12px;
    font-size: 1.125rem;
}

.service-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition-fast);
}

.service-title a:hover,
.service-title a:focus {
    color: var(--accent-500);
    outline: none;
}

.service-description {
    margin-bottom: 16px;
    color: var(--text-medium);
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.65;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-600);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.service-link:hover,
.service-link:focus {
    gap: 10px;
    color: var(--accent-700);
    outline: none;
}

.service-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .service-card {
        padding: 35px 25px;
    }
    
    .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }
    
    .service-icon {
        width: 80px;
        height: 80px;
        padding: 18px;
    }
    
    .service-icon svg {
        width: 40px;
        height: 40px;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .service-description {
        font-size: 1rem;
    }
    
    .service-link {
        font-size: 1rem;
    }
}

/* ============================================ */
/* WHY US CARDS */
/* ============================================ */

.why-us-item {
    text-align: center;
    padding: 25px 20px;
    background-color: white;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
}

.why-us-item:hover,
.why-us-item:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-500);
}

.why-us-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6 0%, #fb923c 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    box-shadow: var(--shadow-sm);
}

.why-us-icon svg {
    width: 40px;
    height: 40px;
}

.why-us-item h3 {
    font-size: 1.125rem;
    margin-bottom: 10px;
}

.why-us-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .why-us-item {
        padding: 30px 20px;
    }
    
    .why-us-item:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
    
    .why-us-icon {
        width: 100px;
        height: 100px;
    }
    
    .why-us-icon svg {
        width: 48px;
        height: 48px;
    }
}

/* ============================================ */
/* TESTIMONIAL CARDS */
/* ============================================ */

.testimonial-card {
    background-color: white;
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover,
.testimonial-card:focus-within {
    box-shadow: var(--shadow-md);
    border-color: var(--accent-400);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    color: var(--accent-500);
}

.testimonial-stars svg {
    width: 18px;
    height: 18px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-medium);
    margin-bottom: 20px;
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonial-author strong {
    color: var(--text-dark);
    font-size: 1rem;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .testimonial-card {
        padding: 30px;
    }
    
    .testimonial-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-xl);
    }
    
    .testimonial-stars svg {
        width: 20px;
        height: 20px;
    }
    
    .testimonial-text {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .testimonial-author strong {
        font-size: 1.05rem;
    }
}

/* ============================================ */
/* BADGES */
/* ============================================ */

.badge-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: 500;
    font-size: 0.875rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.4;
}

.badge-item svg {
    flex-shrink: 0;
    color: var(--accent-400);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    width: 18px;
    height: 18px;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .badge-item {
        gap: 8px;
        padding: 12px 16px;
        font-size: 0.95rem;
    }
    
    .badge-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================ */
/* STATS */
/* ============================================ */

.hero-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    text-align: center;
    min-width: 70px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.3;
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .hero-stats {
        gap: 40px;
        margin-bottom: 2rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
}

/* ============================================ */
/* SIDEBAR CARDS */
/* ============================================ */

.sidebar-card {
    background-color: white;
    padding: 25px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    margin-bottom: 25px;
}

.sidebar-card h3 {
    font-size: 1.125rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.sidebar-card p {
    margin-bottom: 16px;
    color: var(--text-medium);
    font-size: 0.95rem;
}

.sidebar-cta {
    background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
    border-color: var(--primary-200);
}

/* Tablet & Desktop */
@media (min-width: 768px) {
    .sidebar-card {
        padding: 30px;
        margin-bottom: 30px;
    }
    
    .sidebar-card h3 {
        font-size: 1.25rem;
        margin-bottom: 20px;
    }
    
    .sidebar-card p {
        margin-bottom: 20px;
        font-size: 1rem;
    }
}