/* --- TÜM SAYFADA EL YAZISINI KESİN OLARAK ENGELLEYEN GLOBAL KURAL --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

html, body {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background-color: #0b0f19;
    color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden !important;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    padding: 20px;
    overflow-x: hidden;
}

.screen.visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: scale(1) !important;
    z-index: 15;
}

.screen.hidden {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(1.05);
    z-index: 1;
}

#screen0 {
    background: #0b0f19;
}

#screen2 {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.8)), #0b0f19; 
}

#screen3 {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.7)), url('fotolar/fotograf.jpg') no-repeat center center/cover;
}

#screen4, #screen5, #screen6, #screen7, #screenSinir {
    background: #0b0f19;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    justify-content: flex-start;
    padding: 20px 15px;
    -webkit-overflow-scrolling: touch;
}

.heart-bg {
    position: absolute;
    color: rgba(255, 75, 110, 0.2);
    font-size: 20px;
    animation: fall linear infinite;
    user-select: none;
    z-index: 1;
}

@keyframes fall {
    0% { transform: translateY(-10vh) translateX(0); opacity: 0; }
    50% { opacity: 0.8; }
    100% { transform: translateY(110vh) translateX(20px); opacity: 0; }
}

.scroll-heart {
    position: fixed;
    font-size: 16px;
    pointer-events: none;
    z-index: 9999;
    animation: floatUpFade 0.8s ease-out forwards;
    user-select: none;
}

@keyframes floatUpFade {
    0% { transform: translate(-50%, -50%) scale(0.5); opacity: 1; }
    100% { transform: translate(-50%, -150%) scale(1.2); opacity: 0; }
}

.container {
    z-index: 10;
    width: 100%;
    max-width: 500px;
    padding: 0 10px;
}

.icon-heart {
    font-size: 35px;
    color: #ff3366;
    margin-bottom: 15px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.sub-text {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #d1d5db;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

.password-input {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 14px 20px;
    font-size: 1.1rem;
    border-radius: 50px;
    color: white;
    text-align: center;
    outline: none;
    width: 100%;
    max-width: 260px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.password-input:focus {
    border-color: #ff3366;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.3);
}

.error-msg {
    color: #ff4d4d;
    font-size: 0.9rem;
    margin-top: 10px;
    min-height: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.btn {
    background: linear-gradient(135deg, #ff3366, #ff6b8b);
    color: white;
    border: none;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    z-index: 10;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
}

.btn-secondary {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.btn-secondary:hover {
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-note {
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.btn-note:hover {
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.btn-todo {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 15px;
    display: block;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.btn-todo:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.couple-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

.badge-heart {
    background: #ff3366;
    color: white;
    padding: 6px 10px;
    border-radius: 50%;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 51, 102, 0.5);
}

.counter-box {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    color: #f3f4f6;
    margin-bottom: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    max-width: 100%;
}

.footer-note {
    font-size: 0.9rem;
    color: #e5e7eb;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    margin-top: 15px;
}

.story-container {
    width: 100%;
    max-width: 650px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 20px;
    z-index: 10;
}

.story-card {
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 24px;
    text-align: left;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    width: 100%;
}

.story-card img {
    width: 100%;
    height: auto; 
    max-height: 500px; 
    object-fit: contain; 
    border-radius: 16px;
    margin-bottom: 20px;
    display: block;
    background: #000;
}

.story-date {
    font-size: 0.85rem;
    color: #ff3366;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.story-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.story-text {
    font-size: 1rem;
    color: #e5e7eb;
    line-height: 1.6;
}

.back-btn-container {
    margin-bottom: 15px;
    z-index: 10;
    width: 100%;
    max-width: 650px;
    text-align: left;
}

.bottom-back-btn-container {
    margin-top: 25px;
    margin-bottom: 15px;
    z-index: 10;
    width: 100%;
    max-width: 650px;
    text-align: center;
}

.infinity-footer-section {
    width: 100%;
    max-width: 650px;
    margin-top: 15px;
    margin-bottom: 15px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.infinity-symbol {
    font-size: 2.5rem;
    color: #ff3366;
    margin-bottom: 15px;
    display: inline-block;
    animation: infinityAnim 3s ease-in-out infinite;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
}

@keyframes infinityAnim {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.15) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

.infinity-text {
    font-size: 1rem;
    color: #f3f4f6;
    line-height: 1.6;
    font-weight: 500;
}

.note-box-container {
    width: 100%;
    max-width: 650px;
    background: rgba(17, 24, 39, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 100;
    margin-bottom: 20px;
    text-align: left;
}

.author-select-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.author-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #d1d5db;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.author-btn.active {
    background: linear-gradient(135deg, #ff3366, #ff6b8b);
    color: white;
    border-color: #ff3366;
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
}

.note-textarea {
    width: 100%;
    height: 120px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px;
    color: white;
    font-size: 1rem;
    resize: none;
    outline: none;
    margin-bottom: 12px;
}

.note-textarea:focus {
    border-color: #ff3366;
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.3);
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    transition: opacity 0.3s ease;
}

.popup-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.popup-card {
    background: linear-gradient(135deg, #111827, #1f2937);
    border: 2px solid rgba(255, 51, 102, 0.4);
    border-radius: 24px;
    padding: 30px 20px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8), 0 0 25px rgba(255, 51, 102, 0.3);
    position: relative;
    transform: scale(0.7);
    animation: popupZoomIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popupZoomIn {
    to { transform: scale(1); }
}

.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.6rem;
    cursor: pointer;
    transition: color 0.2s ease;
}

.popup-close-btn:hover {
    color: #ff3366;
}

.popup-heart {
    font-size: 2.5rem;
    margin-bottom: 10px;
    animation: pulse 1.5s infinite;
}

.popup-card h2 {
    font-size: 1.3rem;
    color: #ffffff;
    margin-bottom: 8px;
}

.popup-card p {
    font-size: 0.9rem;
    color: #9ca3af;
}

.notes-list {
    width: 100%;
    max-width: 650px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    z-index: 10;
    margin-bottom: 30px;
}

@media (min-width: 600px) {
    .notes-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.note-item {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: #1f2937;
    border-radius: 12px;
    padding: 18px;
    text-align: left;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.note-item:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

.note-item:nth-child(even) {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
}

.note-item:nth-child(3n) {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
}

.note-item-date {
    font-size: 0.75rem;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 600;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 4px;
}

.note-item-text {
    font-size: 1rem;
    color: #374151;
    line-height: 1.5;
    word-break: break-word;
    font-weight: 500;
    margin-bottom: 12px;
}

.note-item-author {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ff3366;
    text-align: right;
    margin-top: auto;
}

/* --- SİNİRLİYSEN BENİ DÖV AYICIK STİLLERİ --- */
#bear-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
}

#bear {
    position: absolute;
    width: 100px;
    height: 100px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    cursor: grab;
    touch-action: none;
    pointer-events: auto;
    user-select: none;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.4));
}

#bear:active {
    cursor: grabbing;
}

#bear-speech {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    background: #ffffff;
    color: #ff3366;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    border: 2px solid #ff3366;
}

#bear-speech.show {
    transform: translateX(-50%) scale(1);
}

#remove-bear-btn {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border: none;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.5);
    pointer-events: auto;
    z-index: 100000;
    transition: all 0.2s ease;
}

#remove-bear-btn:hover {
    transform: translateX(-50%) scale(1.05);
}