/* Türkçe Wordle - Custom Styles */

/* Tile States */
.tile {
    user-select: none;
    transition: all 0.2s ease;
}

.tile.filled {
    border-color: #6b7280;
    animation: pop 0.1s ease-in-out;
}

.tile.correct {
    background-color: #6aaa64;
    border-color: #6aaa64;
    color: white;
}

.tile.present {
    background-color: #c9b458;
    border-color: #c9b458;
    color: white;
}

.tile.absent {
    background-color: #787c7e;
    border-color: #787c7e;
    color: white;
}

/* Tile Animations */
@keyframes pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes flip {
    0% {
        transform: rotateX(0);
        background-color: transparent;
    }

    45% {
        transform: rotateX(90deg);
        background-color: transparent;
    }

    55% {
        transform: rotateX(90deg);
    }

    100% {
        transform: rotateX(0);
    }
}

.tile.flip {
    animation: flip 0.6s ease-in-out;
    transform-style: preserve-3d;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    10%,
    30%,
    50%,
    70%,
    90% {
        transform: translateX(-8px);
    }

    20%,
    40%,
    60%,
    80% {
        transform: translateX(8px);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Row shake animation for invalid words */
.row-shake {
    animation: shake 0.5s ease-in-out;
}

/* Bounce animation for winning */
@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.bounce {
    animation: bounce 0.5s ease-in-out;
}

/* Keyboard Styles */
.key {
    min-width: 40px;
    height: 48px;
    padding: 0 8px;
    background-color: #d3d6da;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #1f2937;
    text-transform: uppercase;
}

.key:hover:not(:disabled) {
    background-color: #9ca3af;
    transform: scale(1.05);
}

.key:active:not(:disabled) {
    transform: scale(0.95);
}

.key.key-large {
    min-width: 60px;
    font-size: 16px;
}

.key.key-submit {
    background-color: #22c55e;
    color: white;
    min-width: 120px;
}

.key.key-submit:hover:not(:disabled) {
    background-color: #16a34a;
}

.key.key-delete {
    background-color: #ef4444;
    color: white;
    min-width: 120px;
}

.key.key-delete:hover:not(:disabled) {
    background-color: #dc2626;
}

.key.correct {
    background-color: #6aaa64;
    color: white;
}

.key.correct:hover:not(:disabled) {
    background-color: #5a9a54;
}

.key.present {
    background-color: #c9b458;
    color: white;
}

.key.present:hover:not(:disabled) {
    background-color: #b9a448;
}

.key.absent {
    background-color: #787c7e;
    color: white;
}

.key.absent:hover:not(:disabled) {
    background-color: #686c6e;
}

.key:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Toast Notifications */
.toast {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.3s ease-out;
    min-width: 200px;
    max-width: 400px;
    font-weight: 600;
    z-index: 9999;
    pointer-events: auto;
}

.toast.toast-error {
    background-color: #fee2e2;
    border: 2px solid #fca5a5;
    color: #991b1b;
}

.toast.toast-success {
    background-color: #d1fae5;
    border: 2px solid #6ee7b7;
    color: #065f46;
}

.toast.toast-info {
    background-color: #dbeafe;
    border: 2px solid #93c5fd;
    color: #1e40af;
}

.toast.toast-warning {
    background-color: #fef3c7;
    border: 2px solid #fcd34d;
    color: #92400e;
}

.toast.fade-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%) translateY(-20px);
        opacity: 0;
    }
}

/* Toast container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    pointer-events: none;
}

/* Message Area */
#message-area {
    font-weight: 600;
    font-size: 1.125rem;
}

#message-area.success {
    color: #10b981;
}

#message-area.error {
    color: #ef4444;
}

#message-area.info {
    color: #3b82f6;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .key {
        min-width: 28px;
        height: 38px;
        padding: 0 6px;
        font-size: 16px;
    }

    .key.key-large {
        min-width: 50px;
        font-size: 12px;
    }

    .key.key-submit,
    .key.key-delete {
        min-width: 100px;
        font-size: 11px;
    }
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
    backdrop-filter: blur(2px);
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: scaleIn 0.2s ease-out;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Pulse animation for attention */
@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Fade in animation for page loads */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}

/* Smooth transitions */
.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Game Grid Centering */
#game-grid>div {
    margin: 0 auto;
    width: fit-content;
}

/* Help Button */
#help-button {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#help-button:hover {
    transform: scale(1.1);
}

#help-button:active {
    transform: scale(0.95);
}

/* Help Modal Specific Styles */
#help-modal .modal-content {
    max-width: 600px;
}

#help-modal h2 {
    color: #1f2937;
}

#help-modal h3 {
    color: #374151;
    font-size: 1.125rem;
}

#help-modal ul {
    color: #4b5563;
}

#help-modal .modal-content>div>div {
    border-radius: 0.5rem;
}

/* Close button hover effect */
#close-help-modal {
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
}

#close-help-modal:hover {
    background-color: #f3f4f6;
}

/* Start playing button animation */
#start-playing {
    transition: all 0.2s ease;
}

#start-playing:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#start-playing:active {
    transform: translateY(0);
}

/*
 Cookie Consent Banner */
#cookie-consent-banner {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
}

#cookie-consent-banner h3 {
    margin: 0;
}

#cookie-consent-banner p {
    margin: 0;
}

/* Cookie banner responsive adjustments */
@media (max-width: 768px) {
    #cookie-consent-banner {
        padding: 1rem 0;
    }

    #cookie-consent-banner h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #cookie-consent-banner p {
        font-size: 0.875rem;
    }
}

/* Cookie banner animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cookie-consent-banner.show {
    animation: slideUp 0.3s ease-out forwards;
}

/* Combined Cookie & Notification Consent Banner */
#combined-consent-banner {
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1), 0 -2px 4px -1px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    /* iOS Safari için özel düzeltmeler */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
    position: fixed !important;
}

#combined-consent-banner .consent-icon {
    transition: transform 0.2s ease;
}

#combined-consent-banner .consent-icon:hover {
    transform: scale(1.1);
}

#combined-consent-banner .consent-button {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    /* iOS Safari için özel düzeltmeler */
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#combined-consent-banner .consent-button:hover,
#combined-consent-banner .consent-button:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    outline: none;
}

/* iOS Safari için touch feedback */
#combined-consent-banner .consent-button:active,
#combined-consent-banner .consent-button.touching {
    transform: translateY(0);
    background-color: rgba(0, 0, 0, 0.05);
}

#combined-consent-banner .consent-button:active {
    transform: translateY(0);
}

/* Reject button specific styles */
#reject-all-consent {
    border: 1px solid #fca5a5;
}

#reject-all-consent:hover {
    background-color: #fecaca !important;
    border-color: #f87171;
}

/* Notification permission status indicator */
.notification-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.notification-status.granted {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #6ee7b7;
}

.notification-status.denied {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.notification-status.default {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Combined banner responsive adjustments */
@media (max-width: 768px) {
    #combined-consent-banner {
        padding: 1rem 0;
    }

    #combined-consent-banner h3 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    #combined-consent-banner p {
        font-size: 0.875rem;
    }

    #combined-consent-banner .consent-button {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    /* Mobile'da butonları dikey sırala */
    #combined-consent-banner .flex.flex-col.sm\\:flex-row {
        flex-direction: column;
    }

    #combined-consent-banner .consent-button {
        width: 100%;
        text-align: center;
    }
}

/* Fade out animation for banner */
@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#combined-consent-banner.hide {
    animation: fadeOut 0.3s ease-out forwards;
}

#combined-consent-banner.show {
    animation: slideUp 0.3s ease-out forwards;
}

/* Timer Display Styles */
#timer-display {
    animation: fadeInUp 0.5s ease-out;
}

#timer-display .inline-flex {
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

#timer-display .inline-flex:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

#timer-text {
    color: #374151;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

/* Timer pulse animation when game is active */
.timer-active #timer-text {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Timer styles for different states */
.timer-warning #timer-text {
    color: #f59e0b;
}

.timer-danger #timer-text {
    color: #ef4444;
}

/* Responsive timer adjustments */
@media (max-width: 640px) {
    #timer-display .inline-flex {
        padding: 0.5rem 0.75rem;
    }

    #timer-text {
        font-size: 1rem;
    }
}

/*
 Toast Notification Styles */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 8px;
    padding: 12px 16px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-left: 4px solid #3b82f6;
    max-width: 350px;
    font-size: 14px;
    line-height: 1.4;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-warning {
    border-left-color: #f59e0b;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-info {
    border-left-color: #3b82f6;
}

.toast.fade-out {
    animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Mobile toast adjustments */
@media (max-width: 640px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        max-width: none;
        font-size: 13px;
    }
}/* Ba
nner gizleme için güçlü CSS */
#combined-consent-banner.hidden {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(100%) !important;
}

/* Banner gösterme için güçlü CSS */
#combined-consent-banner.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
}