/* Ek Tasarım İyileştirmeleri */

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 8px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
}

.skeleton-title {
    height: 24px;
    width: 60%;
    margin-bottom: 12px;
}

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

.skeleton-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
}

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

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 400px;
    pointer-events: none;
}

.toast {
    background: #fff;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 400px;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 4px solid;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background: currentColor;
    animation: toastProgress 5s linear forwards;
}

.toast-success {
    border-left-color: var(--success);
    color: #059669;
}

.toast-success::before {
    background: var(--success);
}

.toast-error {
    border-left-color: var(--danger);
    color: #dc2626;
}

.toast-error::before {
    background: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
    color: #d97706;
}

.toast-warning::before {
    background: var(--warning);
}

.toast-info {
    border-left-color: var(--brand);
    color: var(--brand-dark);
}

.toast-info::before {
    background: var(--brand);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 4px;
}

.toast-message {
    font-size: 13px;
    margin: 0;
    opacity: 0.9;
}

.toast-close {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.5;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    opacity: 1;
    background: rgba(0,0,0,0.05);
}

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

@keyframes toastProgress {
    from {
        width: 100%;
    }
    to {
        width: 0%;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutRight {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Badge Styles */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    transition: all 0.2s;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16,185,129,.15), rgba(5,150,105,.1));
    color: #059669;
    border: 1px solid rgba(16,185,129,.2);
}

.badge-warning {
    background: linear-gradient(135deg, rgba(245,158,11,.15), rgba(217,119,6,.1));
    color: #d97706;
    border: 1px solid rgba(245,158,11,.2);
}

.badge-error {
    background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(220,38,38,.1));
    color: #dc2626;
    border: 1px solid rgba(239,68,68,.2);
}

.badge-info {
    background: linear-gradient(135deg, rgba(59,130,246,.15), rgba(37,99,235,.1));
    color: #2563eb;
    border: 1px solid rgba(59,130,246,.2);
}

.badge-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
}

.badge:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

.glass-dark {
    background: rgba(15,23,42,.8);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255,255,255,.1);
    color: #fff;
}

/* Pulse Animation */
.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: .7;
    }
}

/* Smooth Transitions */
* {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: rgba(59,130,246,.2);
    color: var(--text);
}

/* Form Validation States */
.form-group {
    margin-bottom: 20px;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}

.form-error {
    display: block;
    color: var(--danger);
    font-size: 13px;
    margin-top: 6px;
    animation: shake 0.3s;
}

.form-success {
    display: block;
    color: var(--success);
    font-size: 13px;
    margin-top: 6px;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Micro Interactions */
.interactive {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive:hover {
    transform: translateY(-2px);
}

.interactive:active {
    transform: translateY(0);
}

/* Ripple Effect */
.ripple {
    position: relative;
    overflow: hidden;
}

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

.ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Smooth Scroll Indicator */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 10000;
    transition: width 0.1s;
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59,130,246,.1);
    border-top-color: var(--brand);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 20px auto;
}

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

/* Pulse Animation for CTAs */
.pulse-cta {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(59,130,246,.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(59,130,246,0);
    }
}

/* Hover Lift Effect */
.hover-lift {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Gradient Text Animation */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Çerez Onay Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    animation: slideUpBanner 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
}

.cookie-banner.hidden {
    animation: slideDownBanner 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUpBanner {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideDownBanner {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(100%);
        opacity: 0;
    }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cookie-banner-text {
    flex: 1;
    min-width: 280px;
}

.cookie-banner-title {
    font-weight: 700;
    font-size: 16px;
    margin: 0 0 8px 0;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-banner-description {
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    color: var(--muted);
}

.cookie-banner-link {
    color: var(--brand);
    text-decoration: underline;
    transition: color 0.2s;
}

.cookie-banner-link:hover {
    color: var(--brand-dark);
}

.cookie-banner-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.cookie-banner-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-banner-btn-accept {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cookie-banner-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cookie-banner-btn-accept:active {
    transform: translateY(0);
}

.cookie-banner-btn-decline {
    background: var(--surface);
    color: var(--muted);
    border: 2px solid var(--border);
}

.cookie-banner-btn-decline:hover {
    background: var(--border-light);
    border-color: var(--muted);
    color: var(--text);
}

.cookie-banner-btn-decline:active {
    transform: scale(0.98);
}

/* Mobil uyumluluk */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 16px;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cookie-banner-text {
        min-width: 100%;
    }

    .cookie-banner-title {
        font-size: 15px;
    }

    .cookie-banner-description {
        font-size: 13px;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-banner-btn {
        width: 100%;
        padding: 14px 24px;
    }
}

@media (max-width: 480px) {
    .cookie-banner {
        padding: 14px;
    }

    .cookie-banner-title {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .cookie-banner-description {
        font-size: 12px;
    }

    .cookie-banner-btn {
        padding: 12px 20px;
        font-size: 13px;
    }
}

