/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #000000;
    color: #e5e5e5;
    line-height: 1.6;
    min-height: 100vh;
}

/* Layout principal */
.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    padding: 2rem;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* Sidebar Izquierdo */
.sidebar-left {
    background-color: #0a0a0a;
    color: #e5e5e5;
    padding: 2rem 1.5rem;
    width: 280px;
    height: fit-content;
    border-radius: 1rem;
    border: 1px solid #1a1a1a;
    position: sticky;
    top: 2rem;
    flex-shrink: 0;
}

.logo h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    display: flex;
    font-style: italic;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    user-select: none;
}

.logo h2 a {
    text-decoration: none;
    color: #ffffff;
}

.logo i {
    color: #3b82f6;
}

.nav-menu ul {
    list-style: none;
    margin-bottom: 2rem;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #888888;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s ease;
    font-weight: 400;
    font-size: 0.9rem;
}

.nav-item a:hover,
.nav-item.active a {
    color: #ffffff;
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 0.9rem;
}

.sidebar-footer {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a1a;
}

.btn-primary {
    width: 100%;
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.btn-primary:hover {
    background-color: #2563eb;
}

/* Contenido Principal */
.main-content {
    background-color: #0a0a0a;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid #1a1a1a;
    flex: 1;
    max-width: 800px;
    min-height: fit-content;
}

.content-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 2rem;
}

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

.btn-secondary {
    background-color: #000000;
    color: #888888;
    border: 1px solid #1a1a1a;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.85rem;
}

.btn-secondary:hover {
    background-color: #1a1a1a;
    border-color: #2a2a2a;
    color: #e5e5e5;
}

/* Posts Container */
.posts-container {
    user-select: none;
    display: grid;
    gap: 1.5rem;
}

.post-card {
    background-color: #000000;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: #2a2a2a;
    transform: translateY(-2px);
}

.post-image {
    position: relative;
    overflow: hidden;
}

.post-image img {
    border-radius: 0.75rem;
    position: flow;
    float: left;
    width: 100%;
    height: 100%;
}

.post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: #3b82f6;
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.post-content {
    padding: 1.25rem;
}

.post-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.post-excerpt {
    color: #888888;
    line-height: 1.5;
    font-size: 0.9rem;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
}

.tag {
    background-color: #1a1a1a;
    color: #888888;
    padding: 0.2rem 0.6rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 400;
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: #2a2a2a;
    color: #e5e5e5;
}

.btn-page {
    background-color: #000000;
    border: 1px solid #1a1a1a;
    color: #888888;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.btn-page:hover,
.btn-page.active {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Sidebar Derecho */
.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 320px;
    flex-shrink: 0;
}

/* Títulos de sección */
.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    position: relative;
}

/* Sección Cuenta - Box independiente */
.account-section {
    background-color: #0a0a0a;
    padding: 0.5rem;
    border-radius: 1rem;
    border: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
}

.user-profile-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info {
    user-select: none;
    flex: 1;
    min-width: 0;
}

.user-name {
    user-select: none;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    user-select: none;
    font-size: 0.8rem;
    color: #888888;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-message {
    font-size: 0.8rem;
    color: #888888;
    
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}

.user-message a {
    color: inherit;
    text-decoration: none;
    transition: color 0.5s ease;
}

.user-message a:hover {
    color: #b3b3b3;
    text-decoration: none;
}


.user-options {
    flex-shrink: 0;
}

.btn-options {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
}

.btn-options:hover {
    color: #e5e5e5;
}

.btn-options i {
    font-size: 0.9rem;
}

/* Sección Datos - Box independiente */


/* Estadísticas */
.stats-section h4,
.quick-actions h4,
.recent-activity h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
}

.stats-section {
    display: grid;
    gap: 0.75rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: #000000;
    border-radius: 0.5rem;
    border: 1px solid #1a1a1a;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 600;
    color: #3b82f6;
}

.stat-label {
    color: #888888;
    font-size: 0.8rem;
}

/* Acciones Rápidas */
.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-action {
    background-color: #000000;
    color: #888888;
    border: 1px solid #1a1a1a;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 400;
    text-align: left;
    font-size: 0.85rem;
}

.btn-action:hover {
    background-color: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

/* Actividad Reciente */
.recent-activity {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background-color: #000000;
    border-radius: 0.5rem;
    border: 1px solid #1a1a1a;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background-color: #0a0a0a;
}

.activity-icon {
    color: #3b82f6;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #e5e5e5;
    font-size: 0.8rem;
}

.activity-time {
    color: #555555;
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

@media (max-width: 1200px) {
    .container {
        gap: 1rem;
        padding: 1rem;
    }
    
    .sidebar-right {
        display: none;
    }
    
    .main-content {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
    }
    
    .sidebar-left {
        width: 100%;
        max-width: 400px;
        position: static;
    }
    
    .main-content {
        width: 100%;
        max-width: none;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }
    

}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card {
    animation: fadeInUp 0.6s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.1s; }
.post-card:nth-child(2) { animation-delay: 0.2s; }
.post-card:nth-child(3) { animation-delay: 0.3s; }

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: #1a1a1a;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2a2a2a;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 600;
}

.close {
    color: #888;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 1.5rem;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

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

.form-actions {
    margin-top: 2rem;
}

.form-actions .btn-primary {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid #333;
}

.modal-footer p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.modal-footer a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.modal-footer a:hover {
    color: #0056b3;
}

.guest-section {
    text-align: center;
    padding: 1rem;
}

.guest-message {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.5;
}

.auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.auth-buttons .btn-primary,
.auth-buttons .btn-secondary {
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-buttons .btn-primary:hover {
    text-decoration: none;
    color: white;
}

.data-section {
    background-color: #0a0a0a;
    padding: 1.5rem;
    border-radius: 1rem;
    border: 1px solid #1a1a1a;
    display: flex;
    flex-direction: column;
}

.info-section h4 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #cccccc;
    font-size: 0.9rem;
}

.benefits-list li i {
    color: #28a745;
    font-size: 0.8rem;
}

.notification {
    user-select: none;
    position: fixed;
    top: 0;
    left: 50%;
    background: #111;
    border: 1px solid #222;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translate(-50%, -100%);
    transition: transform 0.3s ease;
    color: #e5e5e5;
    font-size: 0.85rem;
}
.notification.show {
    transform: translate(-50%, 30%);
}
.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.notification-close {
    background: none;
    border: none;
    color: #a0a0a0;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 3px;
    transition: all 0.2s ease;
}
.notification-close:hover {
    color: #e5e5e5;
}

.compose-area {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.compose-area:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.1);
}

.compose-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.compose-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.compose-avatar img {
    width: 100%;
    height: 100%;
}

.compose-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #e5e5e5;
    font-size: 1.1rem;
    font-family: inherit;
    resize: none;
    outline: none;
    max-height: 200px;
    line-height: 1.5;
}

.compose-input::placeholder {
    color: #888888;
}

.compose-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a1a;
}

.compose-actions {
    display: flex;
}

.compose-btn {
    background: transparent;
    border: none;
    color: #888888;
    padding: 0.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.compose-btn:hover {
    background-color: #1a1a1a;
    color: #3b82f6;
}

.compose-submit {
    background-color: #3b82f6;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    opacity: 0.5;
    pointer-events: none;
}

.compose-submit.active {
    opacity: 1;
    pointer-events: all;
}

.compose-submit:hover {
    background-color: #2563eb;
}

.compose-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.char-count {
    user-select: none;
    color: #888888;
    font-size: 0.9rem;
}

.char-count.warning {
    user-select: none;
    color: #f59e0b;
}

.char-count.danger {
    user-select: none;
    color: #ef4444;
}

@media (max-width: 768px) {
    .compose-area {
        padding: 1rem;
    }
    
    .compose-header {
        gap: 0.75rem;
    }
    
    .compose-avatar {
        width: 40px;
        height: 40px;
    }
    
    .compose-input {
        font-size: 1rem;
    }
}

/* Twitter-like post styles */
.post-card {
    background-color: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.2s ease;
}

.post-card:hover {
    border-color: #2a2a2a;
}

.post-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.post-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-user-info {
    flex: 1;
    min-width: 0;
}

.post-username {
    font-weight: 600;
    color: #ffffff;
    font-size: 1rem;
}

.post-handle {
    color: #888888;
    font-size: 0.9rem;
}

.post-content {
    margin-left: 2.7rem;
    color: #e5e5e5;
    font-size: 1rem;
    line-height: 1.6;
    word-wrap: break-word;
}

.post-content p {
    margin: 0;
    margin-bottom: 0.5rem;
}

.post-content p:last-child {
    margin-bottom: 0;
}

.post-image {
    margin-top: 0.5rem;
    border-radius: 1rem;
    overflow: hidden;
}

.post-image img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 600px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.post-footer {
    display: flex;
    justify-content: flex-end;
}

.post-timestamp {
    color: #888888;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .post-card {
        padding: 1rem;
    }
    
    .post-header {
        gap: 0.75rem;
    }
    
    .post-avatar {
        width: 40px;
        height: 40px;
    }
    
    .post-content {
        margin-left: 2rem;
    }
    
    .post-footer {
        justify-content: flex-end;
        margin-left: 2rem;
    }
}
