/* ==================== SHARED BASE (for sub-pages) ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-deep: #0a0612;
    --bg-dark: #110b1f;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);

    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;

    --pink-400: #f472b6;
    --pink-500: #ec4899;

    --purple-400: #c084fc;
    --purple-500: #a855f7;

    --gold: #fbbf24;

    --text-primary: #faf5ff;
    --text-secondary: rgba(250, 245, 255, 0.65);
    --text-muted: rgba(250, 245, 255, 0.4);

    --gradient-main: linear-gradient(135deg, #f43f5e, #ec4899, #a855f7);
    --gradient-bg: radial-gradient(ellipse at 20% 50%, rgba(236, 72, 153, 0.15) 0%, transparent 50%),
                   radial-gradient(ellipse at 80% 20%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
                   radial-gradient(ellipse at 50% 80%, rgba(244, 63, 94, 0.1) 0%, transparent 50%);

    --font-display: 'Dancing Script', cursive;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    background-image: var(--gradient-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 80px;
}

/* ==================== FLOATING HEARTS BG ==================== */
.hearts-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: var(--rose-500);
    opacity: 0;
    animation: floatHeart linear forwards;
    filter: blur(0.5px);
    pointer-events: none;
}

@keyframes floatHeart {
    0% { opacity: 0; transform: translateY(100vh) rotate(0deg) scale(0.5); }
    10% { opacity: 0.6; }
    90% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-10vh) rotate(360deg) scale(1); }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
    text-align: center;
    padding: 2rem 1.5rem 1rem;
    position: relative;
    z-index: 1;
}

.page-header .back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.page-header .back-link:hover {
    color: var(--rose-400);
}

.page-title {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.4rem;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 300;
}

/* ==================== BOTTOM NAVIGATION ==================== */
.bottom-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 450px;
    z-index: 1500;
    justify-content: space-around;
    align-items: center;
    display: flex;
    /* Cam efekti güçlendirildi */
    background: rgba(20, 15, 35, 0.4);
    backdrop-filter: blur(35px);
    -webkit-backdrop-filter: blur(35px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    padding-bottom: calc(0.5rem + env(safe-area-inset-bottom));
    border-radius: 35px;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 0.7rem; /* slightly larger for readability */
    font-weight: 600;
    padding: 0.75rem 1rem; /* increase touch area */
    min-height: 56px; /* meet accessibility guidelines */
    border-radius: 20px;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    background: transparent;
    touch-action: manipulation; /* improve tap responsiveness */
}

.nav-item:hover {
    color: var(--rose-300);
}

.nav-item:active {
    transform: scale(0.94);
    background: rgba(255,255,255,0.08);
}

.nav-item:hover {
    color: var(--rose-300);
}

.nav-item.active {
    color: var(--rose-400);
    background: rgba(244, 63, 94, 0.15);
    transform: translateY(-8px);
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.2);
}

.nav-icon {
    font-size: 1.3rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.nav-item.active .nav-icon {
    transform: scale(1.1);
}

.nav-label {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.55rem;
}

/* ==================== SHARED MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s var(--ease-out);
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
    animation: modalPop 0.4s var(--ease-bounce);
}

@keyframes modalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    text-align: center;
}

.modal-field {
    margin-bottom: 1rem;
}

.modal-field label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.modal-field input,
.modal-field textarea,
.modal-field select,
.form-input {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--glass);
    color: var(--text-main);
    font-family: var(--font-body);
    transition: all 0.3s var(--ease-out);
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.modal-field input:focus,
.modal-field textarea:focus,
.modal-field select:focus,
.form-input:focus {
    outline: none;
    border-color: var(--rose-400);
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.modal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-btn {
    flex: 1;
    padding: 0.8rem;
    border-radius: 12px;
    border: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.modal-btn-primary {
    background: var(--gradient-main);
    color: white;
}

.modal-btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(244, 63, 94, 0.3);
}

.modal-btn-secondary {
    background: var(--glass);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}

.modal-btn-secondary:hover {
    background: var(--bg-card-hover);
}

/* ==================== SHARED ADD BUTTON ==================== */
.fab-btn {
    position: fixed;
    bottom: 90px;
    right: 1.5rem;
    z-index: 1400;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-main);
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4);
    transition: all 0.3s var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.fab-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(244, 63, 94, 0.5);
}

.fab-btn:active {
    transform: scale(0.95);
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: rgba(244, 63, 94, 0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(244, 63, 94, 0.5); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .page-title { font-size: 2rem; }
    .nav-item { padding: 0.3rem 0.5rem; }
    .nav-icon { font-size: 1.15rem; }
    .nav-label { font-size: 0.55rem; }
}
