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

:root {
    --bg-dark: #000000;
    --card-bg: rgba(22, 24, 28, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --accent: #1d9bf0;
    --accent-hover: #1a8cd8;
    --text-main: #eff3f4;
    --text-dim: #71767b;
    --nav-blur: 15px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', -apple-system, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

#app {
    width: 100%;
    max-width: 600px;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    position: relative;
    padding-bottom: 80px;
}

/* Header Estilo Premium */
.glass-header {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 20px;
    z-index: 100;
    display: flex;
    align-items: center;
}

.glass-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

/* Feed & Posts */
.feed-container {
    display: flex;
    flex-direction: column;
}

.post-card {
    padding: 15px 20px;
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s;
}

.post-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.post-author {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.post-author span {
    color: var(--text-dim);
    font-weight: 400;
}

.post-content {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

.post-actions {
    display: flex;
    gap: 30px;
}

.action-btn {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 50%;
    transition: 0.2s;
}

.action-btn:hover,
.action-btn.liked {
    color: var(--accent);
    background: rgba(29, 155, 240, 0.1);
}

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

.btn-delete:hover {
    color: #f4212e;
    background: rgba(244, 33, 46, 0.1);
}

/* Formulario "Nuevo Post" */
.new-post-container {
    padding: 20px;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

textarea {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-main);
    font-size: 1.25rem;
    font-family: inherit;
    resize: none;
    min-height: 150px;
    outline: none;
    padding: 10px 0;
}

.btn-publish {
    background: var(--accent);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    float: right;
    transition: background 0.2s;
}

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

/* Navegación Inferior */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 600px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(var(--nav-blur));
    -webkit-backdrop-filter: blur(var(--nav-blur));
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.nav-item {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: 0.2s;
}

.nav-item.active {
    opacity: 1;
}

.nav-icon {
    font-size: 1.4rem;
}

/* Responsive fixes */
@media (max-width: 600px) {
    #app {
        border-left: none;
        border-right: none;
    }
}