@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

html {
    background-color: #000;
    min-height: 100vh;
    display: flex;
    justify-content: center;
}

body {
    width: 100%;
    max-width: 500px !important;
    margin: 0 auto;
    background-color: #000;
    min-height: 100vh;
    position: relative;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
    overflow-x: hidden;
}

/* Elementos Fixos Centralizados */
.fixed.bottom-0, .fixed.top-0, .fixed.inset-0,
#limitedAccessOverlay, #directMessagesView, #chatView, #profileView {
    max-width: 500px !important;
    width: 100% !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
}

/* Scroll invisível */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; cursor: grab; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar:active { cursor: grabbing; }

/* Borrão Forte */
.blurred-text-strong {
    color: transparent !important;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.95) !important;
    filter: blur(3px) !important;
    user-select: none;
    pointer-events: auto;
    display: inline-block;
}

.blurred-img-strong {
    filter: blur(3px) brightness(0.9) !important;
    transform: scale(1.2);
    pointer-events: auto;
}

.blurred-text-strong:hover, .blurred-img-strong:hover {
    cursor: pointer;
    opacity: 0.8;
}

/* Classes Antigas */
.blurred-text, .blurred-text-sm, .username-conc {
    color: transparent !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8) !important;
    filter: blur(3px) !important;
    user-select: none;
}
.blurred-img-sm { filter: blur(3px) !important; transform: scale(1.1); }

/* Stories */
.story-item { display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative; cursor: pointer; user-select: none; }
.story-circle { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5); display: flex; align-items: center; justify-content: center; padding: 2px; pointer-events: none; }
.story-circle.new-story { background: linear-gradient(45deg, #ff0000, #ff007f, #d62976); }
.story-image-container { width: 100%; height: 100%; border-radius: 50%; background-color: #222; overflow: hidden; position: relative; }
.story-image-container img { width: 100%; height: 100%; object-fit: cover; }
.story-blur-overlay { position: absolute; inset: 0; background-color: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; color: white; z-index: 1; }

/* Mensagens e Chat */
.message-row { padding: 12px; transition: background-color 0.2s ease; cursor: pointer; }
.message-row:hover { background-color: rgba(255, 255, 255, 0.05); }
.severe-text { color: #ff3333; font-weight: 500; }
.message-icon-container { position: relative; transition: transform 0.2s ease; }
.message-icon-container:hover { transform: scale(1.1); }
.glass-effect { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
#limitedAccessOverlay { backdrop-filter: blur(8px); z-index: 100; }
#directMessagesView, #chatView, #profileView { z-index: 90; transition: opacity 0.3s ease; animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.message-item { marginBottom: 12px; width: 100%; display: flex; flex-direction: column; }
.message-item.sent { align-items: flex-end; }
.message-item.received { align-items: flex-start; }
.message-bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.4; word-break: break-word; }
.message-item.sent .message-bubble { background-color: #3797f0; color: white; border-bottom-right-radius: 4px; }
.message-item.received .message-bubble { background-color: #262626; color: white; border-bottom-left-radius: 4px; }
.message-time { font-size: 10px; color: #8e8e8e; margin-top: 4px; padding: 0 4px; }
.blocked-messages-container { background-color: rgba(255, 59, 48, 0.1); border: 1px solid rgba(255, 59, 48, 0.3); border-radius: 12px; padding: 15px; text-align: center; margin: 15px 0; }
.blocked-messages-notice { color: #ff453a; font-size: 13px; font-weight: 500; margin-bottom: 10px; }
.photo-button, .video-button, .view-blocked-button { background-color: #262626; color: #3797f0; border: 1px solid #3797f0; padding: 8px 12px; border-radius: 8px; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 6px; margin-top: 5px; }
.location-preview { width: 100%; height: 120px; background-color: #333; border-radius: 12px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.location-label { background: rgba(0,0,0,0.6); padding: 6px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; z-index: 2; }
@media (max-width: 500px) { body, .fixed, #limitedAccessOverlay { box-shadow: none; } }