/* Notifications Page Design - Matching wishlist.html design */

/* Mobile-First Optimizations */
* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Notifications Hero Section - Matching Profile Hero Style */
.notifications-hero {
    position: relative;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 50%, #004085 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.notifications-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2rem;
    margin: 0 auto;
    max-width: 500px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.notifications-icon-large {
    margin-bottom: 1.5rem;
}

.icon-ring {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
    background: linear-gradient(45deg, #007bff, #0056b3);
    border-radius: 50%;
    padding: 4px;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.icon-inner {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

.icon-inner i {
    font-size: 2.5rem;
    font-weight: 800;
    color: #007bff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.notifications-details {
    text-align: center;
}

.notifications-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.notifications-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.notifications-stats {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.stat-item i {
    font-size: 0.8rem;
}

/* Notifications Container */
.notifications-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    z-index: 10;
}

.notifications-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(0, 123, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 123, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.notifications-container > * {
    position: relative;
    z-index: 1;
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 1rem 0 2rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 0.9rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
    font-weight: 500;
}

.breadcrumb-item::after {
    content: '/';
    color: #6c757d;
    margin: 0 0.5rem;
    font-weight: 300;
}

.breadcrumb-item:last-child::after {
    display: none;
}

/* Notifications Form Container - Matching Profile Card Style */
.notifications-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Sections */
.form-section {
    margin-bottom: 2.5rem;
}

.form-section:last-of-type {
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f1f3f4;
}

.section-title i {
    color: #007bff;
    font-size: 1.1rem;
}

/* Form Layout */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

/* Input Styling */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: #6c757d;
    font-size: 1rem;
    z-index: 2;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    background: #ffffff;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background: #ffffff;
}

.form-input:valid {
    border-color: #000000;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding-top: 2rem;
    border-top: 2px solid #f1f3f4;
}

/* Button Styling */
.notifications-form-container .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
}

.notifications-form-container .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.notifications-form-container .btn:hover::before {
    left: 100%;
}

.notifications-form-container .btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    border: 2px solid #007bff;
}

.notifications-form-container .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    color: white;
    border-color: #0056b3;
}

.notifications-form-container .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.3);
}

.notifications-form-container .btn-outline-primary {
    background: white;
    color: #007bff;
    border: 2px solid #007bff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.notifications-form-container .btn-outline-primary:hover {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.notifications-form-container .btn-outline-primary:active {
    transform: translateY(0);
}

.notifications-form-container .btn-danger {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border: 2px solid #dc3545;
}

.notifications-form-container .btn-danger:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    color: white;
    border-color: #c82333;
}

.notifications-form-container .btn-danger:active {
    transform: translateY(0);
}

/* Notifications Grid */
.notifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Notification Card */
.notification-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.notification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.notification-card:hover::before {
    left: 100%;
}

.notification-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.notification-card:active {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Notification Header */
.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-type {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-type.info {
    background: #d1ecf1;
    color: #0c5460;
}

.notification-type.warning {
    background: #fff3cd;
    color: #856404;
}

.notification-type.success {
    background: #d4edda;
    color: #155724;
}

.notification-type.error {
    background: #f8d7da;
    color: #721c24;
}

.notification-priority {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-priority.high {
    background: #dc3545;
    color: white;
}

.notification-priority.medium {
    background: #ffc107;
    color: #212529;
}

.notification-priority.low {
    background: #6c757d;
    color: white;
}

/* Notification Content */
.notification-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.notification-title {
    color: #111827;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    line-height: 1.3;
}

.notification-message {
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.notification-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-top: 1px solid #f1f3f4;
    font-size: 0.85rem;
    color: #6b7280;
}

.notification-date {
    font-weight: 500;
}

.notification-status {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.notification-status.unread {
    background: #007bff;
    color: white;
}

.notification-status.read {
    background: #e9ecef;
    color: #6c757d;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 0.75rem;
    padding: 0 1.5rem 1.5rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 2px dashed rgba(0, 123, 255, 0.4);
    margin: 2rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.empty-state-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.empty-icon {
    font-size: 4rem;
    color: #007bff;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.empty-state h3 {
    color: #111827;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: #6b7280;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 400px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .notifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .notifications-hero {
        min-height: 130px;
        padding: 0.25rem 0;
        margin-top: -1.5rem;
    }
    
    .hero-content {
        padding: 0.1rem 0;
    }
    
    .notifications-card {
        margin: 0 0.75rem;
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .icon-ring {
        width: 80px;
        height: 80px;
    }
    
    .icon-inner i {
        font-size: 1.6rem;
    }
    
    .notifications-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .notifications-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }
    
    .stat-item {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .notifications-container {
        padding: 1.5rem 0.75rem;
        margin-top: -3rem;
    }
    
    .notifications-form-container {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.25rem;
    }
    
    .form-input {
        padding: 0.875rem 0.875rem 0.875rem 2.75rem;
        font-size: 0.95rem;
    }
    
    .input-icon {
        left: 0.875rem;
        font-size: 0.9rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .notifications-form-container .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .notifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .notification-content {
        padding: 1rem;
    }
    
    .notification-title {
        font-size: 1.1rem;
    }
    
    .notification-actions {
        padding: 0 1rem 1rem 1rem;
    }
}

@media (max-width: 480px) {
    .notifications-hero {
        min-height: 100px;
        padding: 0.1rem 0;
        margin-top: -2rem;
    }
    
    .hero-content {
        padding: 0.05rem 0;
    }
    
    .notifications-card {
        margin: 0 0.5rem;
        padding: 1rem;
        border-radius: 14px;
    }
    
    .icon-ring {
        width: 70px;
        height: 70px;
    }
    
    .icon-inner i {
        font-size: 1.4rem;
    }
    
    .notifications-title {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }
    
    .notifications-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
    }
    
    .stat-item {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .notifications-container {
        padding: 1rem 0.5rem;
        margin-top: -4rem;
    }
    
    .notifications-form-container {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .form-input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .input-icon {
        left: 0.75rem;
        font-size: 0.85rem;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .notifications-form-container .btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .notifications-grid {
        grid-template-columns: 1fr;
    }
    
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
    
    .empty-state h3 {
        font-size: 1.3rem;
    }
    
    .empty-state p {
        font-size: 1rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 360px) {
    .notifications-hero {
        min-height: 80px;
        padding: 0.05rem 0;
        margin-top: -2.5rem;
    }
    
    .notifications-card {
        margin: 0 0.4rem;
        padding: 0.9rem;
    }
    
    .icon-ring {
        width: 65px;
        height: 65px;
    }
    
    .icon-inner i {
        font-size: 1.2rem;
    }
    
    .notifications-title {
        font-size: 1.2rem;
    }
    
    .notifications-subtitle {
        font-size: 0.85rem;
    }
    
    .notifications-container {
        padding: 0.75rem 0.4rem;
        margin-top: -4.5rem;
    }
    
    .notifications-form-container {
        padding: 1rem;
        border-radius: 10px;
    }
    
    .form-input {
        padding: 0.7rem 0.7rem 0.7rem 2.25rem;
        font-size: 0.85rem;
    }
    
    .input-icon {
        left: 0.7rem;
        font-size: 0.8rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
    
    .section-title {
        font-size: 1rem;
    }
    
    .notifications-form-container .btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
}

/* Animation Effects */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.notifications-card {
    animation: fadeInScale 0.6s ease-out;
}

.notifications-form-container {
    animation: fadeInUp 0.8s ease-out;
}

.form-section {
    animation: fadeInUp 1s ease-out;
}

.notification-card {
    animation: fadeInUp 0.5s ease-out;
}

/* Focus States for Accessibility */
.notifications-form-container .form-input:focus,
.notifications-form-container .btn:focus,
.notification-card:focus {
    outline: 3px solid rgba(0, 123, 255, 0.5);
    outline-offset: 2px;
}