/**
 * Kawaii Özel Stilleri
 * Animasyonlar, emojiler ve kawaii efektler
 */

/* Kawaii Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes sparkle {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.7; transform: scale(1.2) rotate(180deg); }
}

@keyframes slideInLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

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

@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Kawaii Classes */
.kawaii-bounce {
    animation: bounce 2s ease-in-out infinite;
}

.kawaii-spin {
    animation: spin 3s linear infinite;
}

.kawaii-heartbeat {
    animation: heartbeat 1.5s ease-in-out infinite;
}

.kawaii-sparkle {
    animation: sparkle 2s ease-in-out infinite;
}

.kawaii-slide-left {
    animation: slideInLeft 0.5s ease-out;
}

.kawaii-slide-right {
    animation: slideInRight 0.5s ease-out;
}

.kawaii-fade-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Kawaii Decorations */
.kawaii-border {
    border: 3px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    background: rgba(255, 255, 255, 0.9);
}

.kawaii-border::before {
    content: '🎀';
    position: absolute;
    top: -15px;
    left: 20px;
    background: var(--background-color);
    padding: 0 10px;
    font-size: 20px;
}

.kawaii-box {
    background: linear-gradient(135deg, rgba(255, 105, 180, 0.1), rgba(147, 112, 219, 0.1));
    border: 2px solid var(--accent-color);
    border-radius: var(--border-radius);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.kawaii-box::after {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    animation: sparkle 3s ease-in-out infinite;
}

/* Emoji Decorations */
.emoji-float {
    position: fixed;
    font-size: 30px;
    animation: float 10s linear infinite;
    opacity: 0.6;
    z-index: -1;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* Kawaii Cards with Emojis */
.card-emoji-header {
    font-size: 40px;
    text-align: center;
    margin-bottom: 15px;
}

/* Kawaii Buttons with Emojis */
.btn-emoji-left::before {
    content: '🌸 ';
}

.btn-emoji-right::after {
    content: ' 💖';
}

/* Kawaii Input with Icons */
.input-kawaii {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ff69b4" width="20" height="20"><path d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"/></svg>');
    background-repeat: no-repeat;
    background-position: 15px center;
    padding-left: 45px;
}

/* Kawaii Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Kawaii Selection */
::selection {
    background: var(--primary-color);
    color: white;
}

/* Kawaii Loading Spinner */
.kawaii-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid var(--accent-color);
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

/* Kawaii Checkbox */
.kawaii-checkbox {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.kawaii-checkbox:checked {
    background: var(--primary-color);
}

.kawaii-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 16px;
}

/* Kawaii Radio */
.kawaii-radio {
    appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.kawaii-radio:checked {
    background: var(--primary-color);
    box-shadow: inset 0 0 0 4px white;
}

/* Kawaii Tags */
.kawaii-tag {
    display: inline-block;
    padding: 5px 15px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 700;
    margin: 5px;
    box-shadow: 0 2px 8px rgba(255, 105, 180, 0.3);
}

/* Kawaii Avatar */
.kawaii-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    box-shadow: 0 0 0 6px rgba(255, 105, 180, 0.2);
    transition: var(--transition);
    object-fit: cover;
}

.kawaii-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(255, 105, 180, 0.3);
}

/* Kawaii Notification Badge */
.kawaii-badge {
    position: relative;
    display: inline-block;
}

.kawaii-badge::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--error-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    animation: heartbeat 2s ease-in-out infinite;
}

/* Kawaii Divider */
.kawaii-divider {
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), var(--secondary-color), transparent);
    border: none;
    margin: 30px 0;
    border-radius: 2px;
}

/* Kawaii Tooltip */
.kawaii-tooltip {
    position: relative;
    display: inline-block;
}

.kawaii-tooltip .tooltip-text {
    visibility: hidden;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 10px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 14px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3);
}

.kawaii-tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--primary-color) transparent transparent transparent;
}

.kawaii-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Kawaii Progress Bar */
.kawaii-progress {
    width: 100%;
    height: 20px;
    background: var(--background-color);
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--accent-color);
}

.kawaii-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 10px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.kawaii-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    z-index: 1;
    background-size: 50px 50px;
    animation: move 2s linear infinite;
}

@keyframes move {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Kawaii Stars Background */
.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}
