﻿/* =============================================================================
   NOTIFICATIONS - Toast Notifications, Alerts, Panels
   ============================================================================= */

/* =============================================================================
   STATUS DROPDOWN MENU
   ============================================================================= */

.status-dropdown-menu {
    position: fixed;
    min-width: 170px;
    background: #1a1a1a;
    border: 2px solid rgba(255,152,0,0.4);
    border-radius: 12px;
    padding: 8px;
    z-index: 999999;
    box-shadow: 0 20px 60px rgba(0,0,0,0.95), 0 0 30px rgba(255,152,0,0.15);
    display: none;
    pointer-events: auto;
}

.status-dropdown-menu.show {
    display: block;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: rgba(255,255,255,0.03);
    border: none;
    border-radius: 8px;
    color: #ddd;
    font-size: 0.9rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
    pointer-events: auto;
    margin-bottom: 4px;
}

.status-option:last-child {
    margin-bottom: 0;
}

.status-option:hover {
    background: rgba(255,152,0,0.25);
    color: #fff;
    transform: translateX(3px);
}

/* =============================================================================
   PINNED SUGGESTION CARD
   ============================================================================= */

.suggestion-card.pinned {
    border-color: rgba(255,152,0,0.3);
    background: linear-gradient(145deg, rgba(40,30,20,0.95), rgba(25,18,12,0.98));
}

.suggestion-card.pinned::before {
    background: linear-gradient(135deg, rgba(255,152,0,0.2), rgba(255,193,7,0.1));
    opacity: 1;
}

/* =============================================================================
   RESPONSIVE DESIGN
   ============================================================================= */

@media (max-width: 1400px) {
    .community-sidebar-left,
    .community-sidebar-right {
        width: 240px;
    }
}

@media (max-width: 1200px) {
    .community-sidebar-left,
    .community-sidebar-right {
        width: 220px;
    }
}

@media (max-width: 1024px) {
    .community-hub {
        flex-direction: column;
        padding: 10px;
        overflow-y: auto;
        height: auto;
    }
    
    .community-sidebar-left,
    .community-sidebar-right {
        width: 100%;
        flex-direction: row;
        padding-right: 0;
        padding-bottom: 16px;
        overflow-x: auto;
        overflow-y: visible;
        gap: 12px;
        order: 0;
    }
    
    .community-sidebar-left {
        order: -1;
    }
    
    .community-sidebar-right {
        order: 1;
    }
    
    .sidebar-section {
        min-width: 200px;
        flex-shrink: 0;
    }
    
    .online-users-list {
        max-height: 150px;
    }
    
    .community-main {
        flex: none;
        min-height: 600px;
        order: 0;
    }
    
    .chat-msg {
        max-width: 90%;
    }
}

@media (max-width: 768px) {
    .community-tabs {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    
    .tab-actions {
        width: 100%;
        margin-top: 8px;
        margin-left: 0;
    }
    
    .search-box {
        flex: 1;
    }
    
    .search-box input {
        width: 100%;
    }
    
    /* Sidebar becomes horizontal scroll on tablet */
    .community-sidebar {
        display: flex;
    }
    
    .suggestion-composer {
        padding: 16px;
    }
    
    .chat-input-area {
        padding: 14px 16px;
    }
    
    .suggestions-feed,
    .chat-messages-container {
        padding: 16px;
    }
}

/* =============================================================================
   PROFILE PAGE STYLES
   ============================================================================= */

.profile-grid { display: grid; grid-template-columns: 350px 1fr; gap: 20px; max-width: 1200px; margin: 20px auto; padding: 0 20px; width: 100%; align-items: start; }
@media (max-width: 900px) { .profile-grid { grid-template-columns: 1fr; } }

.profile-sidebar { display: flex; flex-direction: column; gap: 20px; }

.profile-hero { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.profile-hero:hover { border-color: var(--accent); }

.profile-avatar-large { width: 120px; height: 120px; object-fit: cover; background: #000; border-radius: 50%; box-shadow: 0 0 20px rgba(0,0,0,0.5); margin-bottom: 15px; }
/* Default border only for avatars without custom style classes */
.profile-avatar-large:not([class*="avatar-style-"]) { border: 3px solid var(--av-color, var(--accent)); }
.profile-name-display { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: 8px; line-height: 1.2; }

.profile-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 15px; }
.p-badge { background: rgba(255,255,255,0.05); border: 1px solid #333; color: #aaa; font-size: 0.7rem; padding: 4px 10px; border-radius: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }

.reputation-btn { background: #220a0a; border: 1px solid #6e1818; color: #ff6b6b; padding: 8px 16px; border-radius: 30px; font-weight: 700; cursor: pointer; transition: 0.2s; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; margin-bottom: 20px; }
.reputation-btn:hover { background: #3a1010; transform: scale(1.05); box-shadow: 0 0 15px rgba(255, 51, 51, 0.2); }

.stat-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; border-top: 1px solid #222; padding-top: 15px; }
.stat-box { background: #111; padding: 8px; border-radius: 6px; border: 1px solid #222; display: flex; flex-direction: column; }
.stat-label { font-size: 0.7rem; color: #666; text-transform: uppercase; font-weight: 700; }
.stat-val { font-size: 1rem; color: #eee; font-weight: 700; }

.profile-bio-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; min-height: 150px; }
.bio-text { color: #ccc; line-height: 1.5; font-size: 0.95rem; white-space: pre-wrap; }
.bio-placeholder { color: #555; font-style: italic; }

.wall-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; display: flex; flex-direction: column; min-height: 600px; max-height: 800px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); overflow: hidden; }
.wall-header { padding: 20px; border-bottom: 1px solid #222; background: rgba(255,255,255,0.02); }
.wall-title { font-size: 1.1rem; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: 1px; }

.wall-input-area { padding: 20px; border-bottom: 1px solid #222; background: #111; }
.wall-feed { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 15px; }

.wall-post { background: #1a1a1a; border: 1px solid #2a2a2a; border-radius: 8px; padding: 15px; transition: 0.2s; position: relative; }
.wall-post:hover { border-color: #444; background: #1e1e1e; }
.wall-post-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 0.9rem; }
.wall-post-content { color: #ddd; line-height: 1.5; font-size: 0.95rem; white-space: pre-wrap; }
.wall-delete { background: none; border: none; color: #666; font-size: 0.75rem; cursor: pointer; padding: 4px; text-transform: uppercase; font-weight: 700; }
.wall-delete:hover { color: var(--urgent-red); }

.status-indicator { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #161616; position: absolute; bottom: 15px; right: 15px; z-index: 5; }
.status-online { background: #4caf50; box-shadow: 0 0 10px #4caf50; }
.status-offline { background: #555; }

/* =============================================================================
   NOTIFICATION SYSTEM STYLES
   ============================================================================= */

/* Notification Bell Button */
.notification-btn {
    position: relative;
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--accent);
}
.notification-btn svg {
    transition: transform 0.2s;
}
.notification-btn:hover svg {
    transform: scale(1.1);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 18px;
    height: 18px;
    background: var(--urgent-red);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--bg-header);
    animation: badgePulse 2s infinite;
    box-shadow: 0 2px 8px rgba(255, 51, 51, 0.4);
}

/* Notification Panel */
.notification-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-width: 95vw;
    background: var(--bg-dropdown);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    overflow: hidden;
    max-height: 500px;
    display: flex;
    flex-direction: column;
}
.notification-panel.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Panel Header */
.notification-header {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
    background: rgba(255,255,255,0.02);
    flex-shrink: 0;
}
.notification-header-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.notification-header-actions {
    display: flex;
    gap: 8px;
}
.notification-header-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid #333;
    color: #888;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    text-transform: uppercase;
}
.notification-header-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border-color: #555;
}

/* Notification List */
.notification-list {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

/* Notification Item */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
    min-height: 80px;
}
.notification-item:hover {
    background: rgba(255,255,255,0.05);
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.unread {
    background: rgba(255, 152, 0, 0.05);
    border-left: 3px solid var(--accent);
}
.notification-item.unread:hover {
    background: rgba(255, 152, 0, 0.1);
}
.notification-item.read {
    opacity: 0.7;
}

/* Notification Avatar */
.notification-avatar {
    flex-shrink: 0;
}
.notif-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #000;
}

/* Notification Content */
.notification-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-message {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #ddd;
    line-height: 1.4;
}
.notification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    flex-shrink: 0;
}
.notification-icon svg {
    width: 12px;
    height: 12px;
}
.notif-emoji {
    font-size: 1rem;
}
.notification-user {
    font-weight: 700;
    white-space: nowrap;
}
.notification-text {
    color: #999;
}
.notification-preview {
    font-size: 0.8rem;
    color: #666;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.notification-item:hover .notification-preview {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}
.notification-time {
    font-size: 0.7rem;
    color: #555;
    font-weight: 600;
}

/* Notification Dismiss Button */
.notification-dismiss {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    color: #555;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.notification-item:hover .notification-dismiss {
    opacity: 1;
}
.notification-dismiss:hover {
    background: rgba(255,51,51,0.2);
    color: var(--urgent-red);
}

/* Empty State */
.notification-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #555;
    text-align: center;
}
.notification-empty svg {
    opacity: 0.3;
    margin-bottom: 15px;
}
.notification-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* Notification Highlight Animation */
@keyframes notificationHighlight {
    0% { 
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.9);
        background: rgba(255, 152, 0, 0.25);
        transform: scale(1);
    }
    25% { 
        box-shadow: 0 0 40px 15px rgba(255, 152, 0, 0.5);
        background: rgba(255, 152, 0, 0.3);
        transform: scale(1.02);
    }
    50% { 
        box-shadow: 0 0 30px 10px rgba(255, 152, 0, 0.4);
        background: rgba(255, 152, 0, 0.2);
        transform: scale(1);
    }
    75% { 
        box-shadow: 0 0 20px 5px rgba(255, 152, 0, 0.3);
        background: rgba(255, 152, 0, 0.15);
    }
    100% { 
        box-shadow: 0 0 10px 2px rgba(255, 152, 0, 0.1);
        background: rgba(255, 152, 0, 0.05);
    }
}

/* =============================================================================
   NOTIFICATION NAVIGATION HIGHLIGHT SYSTEM
   ============================================================================= */

/* Suppress animations when navigating to post */
body.navigating-to-post .suggestion-card,
body.navigating-to-post .reply-item {
    animation: none !important;
}

/* Main highlight effect - orange glowing border */
.notif-nav-highlight {
    position: relative !important;
    z-index: 1000 !important;
    border: 3px solid #ff9800 !important;
    border-radius: 12px !important;
    box-shadow: 
        0 0 20px 5px rgba(255, 152, 0, 0.6),
        0 0 40px 10px rgba(255, 152, 0, 0.4),
        0 0 60px 15px rgba(255, 152, 0, 0.2),
        inset 0 0 20px rgba(255, 152, 0, 0.1) !important;
    animation: notifNavPulse 1.5s ease-in-out infinite !important;
    outline: none !important;
    overflow: visible !important;
}

/* Pulsing animation for the highlight */
@keyframes notifNavPulse {
    0%, 100% {
        box-shadow: 
            0 0 20px 5px rgba(255, 152, 0, 0.6),
            0 0 40px 10px rgba(255, 152, 0, 0.4),
            0 0 60px 15px rgba(255, 152, 0, 0.2),
            inset 0 0 20px rgba(255, 152, 0, 0.1);
        border-color: #ff9800;
    }
    50% {
        box-shadow: 
            0 0 30px 10px rgba(255, 152, 0, 0.8),
            0 0 60px 20px rgba(255, 152, 0, 0.5),
            0 0 80px 25px rgba(255, 152, 0, 0.3),
            inset 0 0 30px rgba(255, 152, 0, 0.15);
        border-color: #ffb74d;
    }
}

/* Arrow indicator pointing at the notification - uses fixed positioning to avoid clipping */
.notif-nav-arrow {
    position: fixed !important;
    font-size: 32px !important;
    color: #ff9800 !important;
    text-shadow: 
        0 0 10px #ff9800,
        0 0 20px #ff9800,
        0 0 30px rgba(255, 152, 0, 0.5) !important;
    animation: notifArrowBounce 0.8s ease-in-out infinite !important;
    z-index: 10001 !important;
    pointer-events: none !important;
    line-height: 1 !important;
}

/* Bouncing animation for the arrow */
@keyframes notifArrowBounce {
    0%, 100% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateY(-50%) translateX(8px);
        opacity: 0.8;
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .notif-nav-arrow {
        left: -30px !important;
        font-size: 24px !important;
    }
    
    .notif-nav-highlight {
        box-shadow: 
            0 0 15px 3px rgba(255, 152, 0, 0.6),
            0 0 30px 8px rgba(255, 152, 0, 0.4),
            inset 0 0 15px rgba(255, 152, 0, 0.1) !important;
    }
}

/* =============================================================================
   LEGACY HIGHLIGHT CLASSES
   ============================================================================= */

/* Notification target indicator - arrow/beacon effect */
.notification-target::before {
    content: '→';
    position: absolute;
    left: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: var(--accent, #ff9800);
    text-shadow: 0 0 10px var(--accent, #ff9800);
    animation: notificationArrow 1s ease-in-out infinite;
    z-index: 100;
}

@keyframes notificationArrow {
    0%, 100% { transform: translateY(-50%) translateX(0); opacity: 1; }
    50% { transform: translateY(-50%) translateX(5px); opacity: 0.7; }
}

.notification-highlight,
.reply-item.notification-highlight,
.nested-reply-item.notification-highlight,
.suggestion-card.notification-highlight,
.chat-message-item.notification-highlight,
.chat-message-standalone.notification-highlight {
    animation: notificationHighlight 4s ease-out forwards;
    border: 3px solid var(--accent, #ff9800) !important;
    border-radius: 12px !important;
    position: relative;
    z-index: 100;
    box-shadow: 
        0 0 40px rgba(255,152,0,0.5), 
        0 0 80px rgba(255,152,0,0.3),
        inset 0 0 30px rgba(255,152,0,0.15) !important;
    outline: 4px solid rgba(255,152,0,0.3);
    outline-offset: 4px;
}

.notification-highlight-pulse {
    animation: notificationPulse 1s ease-in-out 3;
}

@keyframes notificationPulse {
    0%, 100% { 
        box-shadow: 0 0 40px rgba(255,152,0,0.5), 0 0 80px rgba(255,152,0,0.3), inset 0 0 30px rgba(255,152,0,0.15);
        outline-color: rgba(255,152,0,0.3);
    }
    50% { 
        box-shadow: 0 0 60px rgba(255,152,0,0.7), 0 0 120px rgba(255,152,0,0.4), inset 0 0 40px rgba(255,152,0,0.2);
        outline-color: rgba(255,152,0,0.6);
    }
}

/* Notification Container Wrapper */
.notification-container {
    position: relative;
    display: flex;
    align-items: center;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .notification-panel {
        position: fixed !important;
        top: 60px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 95vw !important;
        max-width: 95vw !important;
        border-radius: 12px !important;
        max-height: 70vh;
    }
    .notification-panel.show {
        transform: translateX(-50%) translateY(0) scale(1) !important;
    }
    .notification-item {
        padding: 12px;
    }
    .notif-avatar {
        width: 36px;
        height: 36px;
    }
    
    /* Smaller arrow on mobile */
    .notification-target::before {
        left: -25px;
        font-size: 18px;
    }
}

/* =============================================================================
   TOAST NOTIFICATION STYLES
   ============================================================================= */

#notification-toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.notification-toast {
    background: linear-gradient(135deg, #1a1a1a 0%, #111 100%);
    border: 1px solid #333;
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(255,152,0,0.1);
    transform: translateX(120%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    cursor: pointer;
    position: relative;
}
.notification-toast.show {
    transform: translateX(0);
    opacity: 1;
}
.notification-toast.hiding {
    transform: translateX(120%);
    opacity: 0;
}
.notification-toast:hover {
    border-color: #555;
    transform: translateX(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.6), 0 0 30px rgba(255,152,0,0.2);
}

.toast-avatar {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}
.toast-avatar-img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.toast-content {
    flex: 1;
    min-width: 0;
}
.toast-message {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.85rem;
    line-height: 1.4;
}
.toast-icon {
    font-size: 0.9rem;
    flex-shrink: 0;
}
.toast-user {
    font-weight: 700;
    color: #fff;
}
.toast-text {
    color: #aaa;
}
.toast-preview {
    font-size: 0.8rem;
    color: #666;
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-style: italic;
}
.toast-time {
    font-size: 0.7rem;
    color: #555;
    margin-top: 4px;
}

.toast-close {
    position: absolute;
    top: 6px;
    right: 8px;
    background: transparent;
    border: none;
    color: #555;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    transition: 0.2s;
    opacity: 0;
}
.notification-toast:hover .toast-close {
    opacity: 1;
}
.toast-close:hover {
    color: var(--urgent-red);
}

/* Toast animation keyframes */
@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(120%); opacity: 0; }
}

/* Mobile toast */
@media (max-width: 480px) {
    #notification-toast-container {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-width: none;
    }
    .notification-toast {
        width: 100%;
    }
}

/* =============================================================================
   CLAN PAGE - COMPACT GRID LAYOUT
   ============================================================================= */

/* Clan Header with Side Banners */
.clan-header-banner-wrap {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 100px;
    background: linear-gradient(180deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    max-width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Banner Size Variants */
.clan-header-banner-wrap.size-large { min-height: 140px; }
.clan-header-banner-wrap.size-xlarge { min-height: 180px; }

/* Center Banner Layout */
.clan-header-banner-wrap.layout-center {
    justify-content: center;
}
.clan-header-banner-wrap.layout-center .clan-side-banner { display: none; }
.clan-header-banner-wrap.layout-center .clan-name-center {
    position: relative;
    width: 100%;
