:root {
    --primary-color: #4f46e5;
    --secondary-color: #7c3aed;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #f8fafc;
}

.navbar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.card-img-top {
    object-fit: cover;
    max-height: 500px;
}

.post-card {
    margin-bottom: 1.5rem;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 1rem;
}

.post-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.post-actions {
    padding: 0.75rem 1rem;
    border-top: 1px solid #f1f5f9;
}

.post-actions .btn {
    border: none;
    background: none;
    color: #64748b;
    font-size: 1.25rem;
    padding: 0.5rem;
    transition: all 0.2s;
}

.post-actions .btn:hover,
.post-actions .btn.liked {
    color: #ef4444;
    transform: scale(1.1);
}

.post-actions .btn.liked i {
    animation: like-bounce 0.3s ease;
}

@keyframes like-bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.comment-input {
    border-radius: 24px;
    padding-left: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.auth-container {
    max-width: 420px;
    margin: 2rem auto;
}

.auth-card {
    padding: 2rem;
}

.profile-header {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 16px 16px 0 0;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.stats-badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 0.25rem;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #94a3b8;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.today-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.upload-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: 12px;
    display: none;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background: #f8fafc;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: #eef2ff;
}

.comment-item {
    padding: 0.75rem;
    border-radius: 12px;
    background: #f8fafc;
    margin-bottom: 0.5rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .post-card .card-img-top {
        max-height: 350px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
    }
}
