/* ================================================
   FIORRA NOTIFICATIONS - BEAUTIFUL NOTIFICATION CENTER
   Created with love 💜 
   ================================================ */

:root {
    /* Colors */
    --primary-purple: #9d4edd;
    --primary-pink: #ff6b9d;
    --soft-blue: #7209b7;
    --deep-purple: #5a189a;
    
    /* Gradients */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-glow: 0 8px 32px rgba(157, 78, 221, 0.3);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ================================================
   GLOBAL STYLES
   ================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ================================================
   AURORA BACKGROUND
   ================================================ */

.aurora-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(135deg, 
        #1e1e2e 0%,
        #2d1b4e 25%,
        #4a1f6f 50%,
        #5e2a84 75%,
        #7b2d8f 100%
    );
}

/* ================================================
   NOTIFICATIONS CONTAINER
   ================================================ */

.notifications-container {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 100px;
    min-height: 100vh;
}

/* ================================================
   HEADER
   ================================================ */

.notifications-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-md);
    background: rgba(30, 30, 46, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.back-btn {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.page-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-title .icon {
    font-size: 1.8rem;
}

.mark-all-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    border: none;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
}

.mark-all-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

.check-icon {
    font-size: 1.2rem;
}

/* ================================================
   FILTER TABS
   ================================================ */

.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    padding: var(--spacing-md);
    background: rgba(30, 30, 46, 0.6);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 72px;
    z-index: 99;
}

.filter-tab {
    flex: 1;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: rgba(255, 255, 255, 0.7);
    padding: 0.8rem 1rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.filter-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.filter-tab.active {
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    color: white;
    border-color: transparent;
}

.unread-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
}

.filter-tab.active .unread-badge {
    background: rgba(255, 255, 255, 0.4);
}

/* ================================================
   NOTIFICATIONS LIST
   ================================================ */

.notifications-main {
    padding: var(--spacing-md);
}

/* ================================================
   NOTIFICATION CARD
   ================================================ */

.notification-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slide-in 0.3s ease-out;
    overflow: hidden;
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.notification-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(255, 255, 255, 0.3);
}

.notification-card.unread {
    border-left: 4px solid #ff6b9d;
    background: linear-gradient(135deg,
        rgba(255, 107, 157, 0.1) 0%,
        rgba(157, 78, 221, 0.1) 100%
    );
}

.notification-card.unread::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        rgba(255, 107, 157, 0.1) 0%,
        transparent 50%
    );
    pointer-events: none;
}

.notification-content {
    display: flex;
    gap: var(--spacing-md);
}

.notification-icon {
    font-size: 2.5rem;
    line-height: 1;
    flex-shrink: 0;
}

.notification-body {
    flex: 1;
}

.notification-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.notification-message {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    opacity: 0.7;
}

.notification-time {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.notification-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.action-btn.delete-btn:hover {
    background: #ff3366;
}

/* Swipe to delete effect (mobile) */
.notification-card.swiping {
    transform: translateX(-80px);
    transition: transform 0.3s ease;
}

.notification-card.deleting {
    animation: delete-slide 0.3s ease-out forwards;
}

@keyframes delete-slide {
    to {
        opacity: 0;
        transform: translateX(-100%);
        height: 0;
        padding: 0;
        margin: 0;
    }
}

/* ================================================
   LOADING STATE
   ================================================ */

.loading-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.loading-spinner {
    margin: 0 auto;
    width: 60px;
    height: 60px;
    position: relative;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #ff6b9d;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.spinner-ring:nth-child(2) {
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;
    border-top-color: #9d4edd;
    animation-duration: 1.5s;
}

.spinner-ring:nth-child(3) {
    width: 60%;
    height: 60%;
    top: 20%;
    left: 20%;
    border-top-color: #ffd700;
    animation-duration: 2s;
}

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

.loading-text {
    margin-top: var(--spacing-md);
    font-size: 1rem;
    opacity: 0.8;
}

/* ================================================
   EMPTY STATE
   ================================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: var(--spacing-md);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.empty-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.empty-message {
    font-size: 1rem;
    opacity: 0.7;
}

/* ================================================
   BOTTOM NAVIGATION
   ================================================ */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm);
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    min-width: 60px;
}

.nav-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
    color: #ff6b9d;
}

.nav-icon {
    font-size: 1.5rem;
}

.nav-label {
    font-size: 0.75rem;
    font-weight: 500;
}

/* ================================================
   MODAL
   ================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fade-in 0.3s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    max-width: 400px;
    width: 90%;
    text-align: center;
    animation: scale-in 0.3s ease;
}

@keyframes scale-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.modal-title {
    font-size: 1.3rem;
    margin-bottom: var(--spacing-sm);
}

.modal-message {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: var(--spacing-lg);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.modal-btn {
    flex: 1;
    padding: var(--spacing-sm);
    border: none;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.confirm-btn {
    background: linear-gradient(135deg, #ff6b9d 0%, #9d4edd 100%);
    color: white;
}

.confirm-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(255, 107, 157, 0.4);
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .notifications-container {
        padding-bottom: 80px;
    }
    
    .page-title {
        font-size: 1.2rem;
    }
    
    .mark-all-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .notification-icon {
        font-size: 2rem;
    }
    
    .notification-title {
        font-size: 1rem;
    }
    
    .notification-message {
        font-size: 0.9rem;
    }
}


/* ================================================
   READ INDICATOR & LOAD MORE
   ================================================ */

.notification-card.read {
    opacity: 0.85;
}

.notification-content {
    position: relative;
}

.read-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.load-more-btn {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.2), rgba(255, 107, 157, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 15px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.load-more-btn:hover {
    background: linear-gradient(135deg, rgba(157, 78, 221, 0.4), rgba(255, 107, 157, 0.4));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(157, 78, 221, 0.3);
}

.load-more-btn:active {
    transform: translateY(0);
}

/* Mevcut .notification-message'a ekle */
.notification-message {
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0.9;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Yeni ekle */
.push_view_button {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #df75dc 0%, #c955c6 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    align-self: flex-start;
    box-shadow: 0 2px 8px rgba(223, 117, 220, 0.35);
    transition: all 0.2s;
}

.push_view_button:hover {
    background: linear-gradient(135deg, #c955c6 0%, #b040ad 100%);
    transform: translateY(-1px);
}