:root {
    --bg-color: #f0f2f5;
    --card-bg: rgba(255, 255, 255, 0.7);
    --primary: #0084ff;
    --primary-hover: #0073e6;
    --text-main: #1c1e21;
    --text-muted: #65676b;
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.1);
    --radius: 16px;
}

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

body {
    font-family: 'Inter', -apple-system, system-ui, sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(at 0% 0%, rgba(0, 132, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(0, 132, 255, 0.05) 0px, transparent 50%);
    color: var(--text-main);
    line-height: 1.5;
    min-height: 100vh;
}

#app {
    max-width: 500px;
    margin: 0 auto;
    padding-bottom: 90px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
}

/* Header */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
    border-radius: 0 0 var(--radius) var(--radius);
}

.header-glass h1 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary), #00c6ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Post Card */
.post-card {
    margin: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius);
    transition: transform 0.2s ease;
    animation: fadeIn 0.4s ease-out forwards;
}

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

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
}

.post-time {
    color: var(--text-muted);
}

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

.post-footer {
    display: flex;
    gap: 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
}

/* Buttons */
.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.btn-action:hover {
    background: rgba(0, 0, 0, 0.05);
}

.btn-like.active {
    color: #ff4b2b;
}

.btn-delete:hover {
    color: #ef4444;
}

.btn-feature {
    color: var(--text-muted);
}

.btn-feature.active {
    color: #d97706;
}

.btn-feature:hover {
    color: #d97706;
}

/* Post Destacado */
.post-card.featured {
    background: linear-gradient(135deg, rgba(254, 243, 199, 0.85), rgba(253, 230, 138, 0.7));
    border: 1px solid rgba(245, 158, 11, 0.4);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.post-card.featured .post-content {
    color: #78350f;
}

.post-card.featured .author-name {
    color: #92400e;
}

/* Form Styles */
.form-container {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

textarea {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.5);
    font-family: inherit;
    font-size: 1.1rem;
    resize: none;
    outline: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 132, 255, 0.3);
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 400px;
    border-radius: 30px;
    padding: 0.5rem;
    display: flex;
    justify-content: space-around;
    z-index: 1000;
}

.nav-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.75rem 1.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.nav-item.active {
    background: var(--primary);
    color: white;
}

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

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

/* No zoom en inputs para iOS */
@media screen and (max-width: 768px) {

    input,
    textarea {
        font-size: 16px !important;
    }
}