/* twiter_Jose - Sistema de Diseño Premium */
:root {
    --bg-color: #0b0e11;
    --accent-color: #1d9bf0;
    --accent-hover: #1a8cd8;
    --danger: #f4212e;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-primary: #e7e9ea;
    --text-secondary: #71767b;
    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Scrollbar sutil */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

#app {
    max-width: 600px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
}

/* Header Glassmorphism */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem;
    background: rgba(11, 14, 17, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
}

#logo {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    background: linear-gradient(90deg, #1d9bf0, #8ecdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contenedor de Vistas */
#view-container {
    padding: 1rem;
    padding-bottom: 6rem;
    animation: fadeIn 0.4s ease-out;
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Estilo Twitter con Glassmorphism */
.post-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.2s ease;
}

.post-card:active {
    transform: scale(0.98);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.author-id {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.post-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
}

.post-content {
    font-size: 1rem;
    word-wrap: break-word;
    margin-bottom: 1rem;
}

.post-actions {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 0.8rem;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.action-btn:hover {
    color: var(--accent-color);
}

.action-btn.liked {
    color: #f91880;
}

.action-btn.delete {
    color: var(--text-secondary);
}

.action-btn.delete:hover {
    color: var(--danger);
}

/* Formulario de Creación */
.post-form-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
}

textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    resize: none;
    outline: none;
    min-height: 150px;
    margin-bottom: 1rem;
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

#char-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary:active {
    transform: scale(0.95);
}

/* Nav Inferior */
.glass-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    height: 64px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-item {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--accent-color);
}

.plus-btn {
    background: var(--accent-color);
    width: 54px;
    height: 54px;
    border-radius: 27px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.8rem;
    margin-top: -35px;
    box-shadow: 0 8px 16px rgba(29, 155, 240, 0.3);
}