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

:root {
    --primary: #e63946;
    --primary-light: #ff6b6b;
    --primary-dark: #c1121f;
    --primary-bg: rgba(230, 57, 70, 0.15);
    --primary-glow: rgba(230, 57, 70, 0.3);

    --bg-main: #0d0d0d;
    --bg-darker: #080808;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #1e1e1e;
    --bg-input: #1a1a1a;

    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #666666;

    --border: #2a2a2a;
    --border-light: #3a3a3a;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-main);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

::selection {
    background: var(--primary);
    color: white;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(13, 13, 13, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar-brand {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--text-primary) !important;
    font-size: 1.1rem;
}

.navbar-brand:hover {
    color: var(--primary) !important;
}

.navbar .nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.navbar .nav-link:hover {
    color: var(--text-primary) !important;
    background: var(--primary-bg);
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-bg);
}

.navbar-toggler {
    border-color: var(--border) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
}

/* ===== MAIN CONTAINER ===== */
.container {
    max-width: 1200px;
}

main.my-3 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ===== CARDS (posts list) ===== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    width: 100%;
}

.card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.card-img-top {
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 0;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border);
    color: var(--text-muted) !important;
    padding: 1rem 1.5rem;
    font-size: 0.85rem;
}

/* ===== BUTTONS ===== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    border: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-md);
    background: transparent;
    border: 2px solid var(--border-light);
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
    color: var(--primary);
}

/* ===== POST PAGE ===== */
.post-header {
    margin-bottom: 2rem;
}

.post-title {
    margin-bottom: 0.75rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-image {
    width: 100%;
    border-radius: var(--radius-lg);
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.post-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 3rem;
}

/* ===== COMMENT FORM ===== */
.comment-form-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2.5rem;
}

.comment-form-section h3 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.comment-form-section textarea {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    width: 100%;
    min-height: 120px;
    resize: vertical;
}

.comment-form-section textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.15);
    outline: none;
}

.comment-form-section textarea::placeholder {
    color: var(--text-muted);
}

/* ===== COMMENTS ===== */
.comments-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.comment {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 9999px;
    background: var(--primary-bg);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: 'Raleway', sans-serif;
}

.comment-body {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.comment-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Replies */
.replies {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--border);
}

.reply {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.reply-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    font-family: 'Raleway', sans-serif;
}

.reply .comment-author {
    font-size: 0.9rem;
}

.reply .comment-text {
    font-size: 0.85rem;
}

/* ===== ABOUT PAGE ===== */
.avatar {
    max-width: 100%;
    border-radius: 9999px;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.avatar:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(230, 57, 70, 0.2);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-name {
    color: var(--text-primary);
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-group {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* ===== INDEX PAGE ===== */
.task-list li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.task-description {
    color: var(--text-secondary);
}

.task-description .fw-bold {
    color: var(--text-primary);
}

.img-fluid.border {
    border-color: var(--border) !important;
    border-radius: var(--radius-md);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .comment {
        gap: 0.75rem;
    }

    .comment-avatar {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 0.95rem;
    }

    .replies {
        padding-left: 1rem;
    }
}
