/* Evyap Kariyer Sitesi - Ortak Bileşenler CSS */

/* ================================================
   CARD COMPONENTS
   ================================================ */

.card-base {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: var(--transition-fast);
}

.card-base:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

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

.card-content {
    padding: 32px 24px;
}

/* ================================================
   CAROUSEL COMPONENTS
   ================================================ */

.carousel-base {
    position: relative;
    overflow: hidden;
}

.carousel-wrapper-base {
    display: flex;
    gap: 16px;
    transition: transform var(--transition-normal);
}

.carousel-item-base {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    position: relative;
    transition: var(--transition-fast);
}

.carousel-controls-base {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 15px;
    z-index: var(--z-overlay);
}

/* ================================================
   MODAL COMPONENTS
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--text-white);
    border-radius: var(--border-radius);
    max-width: 90vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: var(--transition-fast);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-lexend);
    font-weight: 400;
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--dark-color);
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--secondary-color);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 0 24px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 16px;
}

/* ================================================
   LOADING COMPONENTS
   ================================================ */

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--text-white);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
    border-radius: 4px;
}

.skeleton-title {
    height: 1.5em;
    width: 70%;
    margin-bottom: 1em;
    border-radius: 4px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

/* ================================================
   NOTIFICATION COMPONENTS
   ================================================ */

.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: var(--z-tooltip);
    pointer-events: none;
}

.notification {
    background: var(--text-white);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border-left: 4px solid;
    font-family: var(--font-lexend);
    font-size: 14px;
    max-width: 300px;
    opacity: 0;
    transform: translateX(100%);
    transition: var(--transition-fast);
    pointer-events: auto;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification.success {
    border-left-color: #28a745;
    background-color: #d4edda;
    color: #155724;
}

.notification.error {
    border-left-color: #dc3545;
    background-color: #f8d7da;
    color: #721c24;
}

.notification.warning {
    border-left-color: #ffc107;
    background-color: #fff3cd;
    color: #856404;
}

.notification.info {
    border-left-color: #17a2b8;
    background-color: #d1ecf1;
    color: #0c5460;
}

/* ================================================
   BADGE COMPONENTS
   ================================================ */

.badge-base {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--border-radius-button);
    font-family: var(--font-lexend);
    font-weight: 400;
    font-size: 12px;
    line-height: 1;
}

.badge-primary {
    background-color: var(--primary-color);
    color: var(--text-white);
}

.badge-secondary {
    background-color: var(--secondary-color);
    color: var(--text-white);
}

.badge-success {
    background-color: #28a745;
    color: var(--text-white);
}

.badge-warning {
    background-color: var(--yellow-color);
    color: var(--dark-color);
}

.badge-info {
    background-color: #17a2b8;
    color: var(--text-white);
}

.badge-light {
    background-color: var(--gray-light);
    color: var(--dark-color);
}

/* ================================================
   ACCORDION COMPONENTS
   ================================================ */

.accordion-base {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background: var(--text-white);
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    user-select: none;
}

.accordion-header:hover {
    background: var(--gray-light);
}

.accordion-title {
    font-family: var(--font-lexend);
    font-weight: 400;
    font-size: 16px;
    color: var(--dark-color);
    margin: 0;
}

.accordion-icon {
    transition: var(--transition-fast);
    color: var(--primary-color);
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    background: var(--text-white);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-fast);
}

.accordion-item.active .accordion-content {
    max-height: 500px;
}

.accordion-body {
    padding: 0 24px 24px;
    font-family: var(--font-lexend);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.7;
    color: var(--dark-color);
}

/* ================================================
   TAB COMPONENTS
   ================================================ */

.tabs-base {
    background: var(--text-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.tabs-nav {
    display: flex;
    background: var(--gray-light);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.tab-button {
    background: none;
    border: none;
    padding: 16px 24px;
    font-family: var(--font-lexend);
    font-weight: 400;
    font-size: 14px;
    color: var(--dark-color);
    cursor: pointer;
    transition: var(--transition-fast);
    border-bottom: 3px solid transparent;
    flex: 1;
}

.tab-button:hover {
    background: rgba(16, 35, 144, 0.1);
}

.tab-button.active {
    background: var(--text-white);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.tab-content {
    padding: 24px;
    display: none;
}

.tab-content.active {
    display: block;
}

/* ================================================
   TOOLTIP COMPONENTS
   ================================================ */

.tooltip-base {
    position: relative;
    display: inline-block;
}

.tooltip-base::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-color);
    color: var(--text-white);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-lexend);
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip-base::after {
    content: '';
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--dark-color);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    z-index: var(--z-tooltip);
}

.tooltip-base:hover::before,
.tooltip-base:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ================================================
   PROGRESS COMPONENTS
   ================================================ */

.progress-base {
    background: var(--gray-light);
    border-radius: var(--border-radius-button);
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    height: 100%;
    border-radius: inherit;
    transition: width var(--transition-normal);
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: progress-shimmer 2s infinite;
}

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

/* ================================================
   PROCESS STEPS COMPONENTS
   ================================================ */

.process-steps-section {
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.process-step {
    background: transparent;
    padding: 30px 20px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 40px;
}

.process-step:hover {
    transform: scale(1.02);
}

/* Step 1 - Primary theme */
.step-1 .step-title {
    color: var(--primary-color);
}

/* Step 2 - Secondary theme */
.step-2 .step-title {
    color: var(--secondary-color);
}

/* Step 3 - Primary theme */
.step-3 .step-title {
    color: var(--primary-color);
}

/* Step 4 - Secondary theme */
.step-4 .step-title {
    color: var(--secondary-color);
}

.step-icon {
    margin-right: 20px;
    margin-bottom: 0;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.process-step:hover .step-icon {
    transform: scale(1.1);
}

.step-icon svg {
    filter: none;
}

.step-icon svg path,
.step-icon svg circle {
    stroke: var(--primary-color);
}

.step-2 .step-icon svg path,
.step-2 .step-icon svg circle {
    stroke: var(--secondary-color);
}

.step-4 .step-icon svg path,
.step-4 .step-icon svg circle {
    stroke: var(--secondary-color);
}

.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-family: var(--font-lexend);
    font-weight: 500;
    font-size: 20px;
    margin-bottom: 8px;
    line-height: 1.3;
}

.step-description {
    font-family: var(--font-lexend);
    font-weight: 300;
    font-size: 14px;
    line-height: 1.5;
    color: var(--dark-color);
    margin: 0;
    max-width: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .process-steps-section {
        padding: 60px 0;
    }
    
    .process-step {
        padding: 20px 15px;
        margin-bottom: 30px;
        flex-direction: column;
        text-align: center;
    }
    
    .step-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .step-title {
        font-size: 18px;
    }
    
    .step-description {
        font-size: 13px;
    }
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 768px) {
    .modal-content {
        margin: 20px;
        max-width: calc(100vw - 40px);
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 16px;
    }
    
    .notification {
        max-width: calc(100vw - 40px);
        margin-left: 20px;
        margin-right: 20px;
    }
    
    .tabs-nav {
        flex-direction: column;
    }
    
    .accordion-header,
    .accordion-body {
        padding: 16px;
    }
}
