/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6a11cb;
    --primary-gradient: linear-gradient(45deg, #6a11cb, #2575fc);
    --secondary-color: #333;
    --text-color: #444;
    --light-gray-color: #f4f4f7;
    --white-color: #ffffff;
    --border-color: #e0e0e0;
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1100px;
    --border-radius: 8px;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
}

h1, h2, h3 {
    line-height: 1.2;
    font-weight: 700;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-weight: 700;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
}

.btn-secondary {
    background: var(--white-color);
    color: var(--secondary-color);
    border: 1px solid var(--border-color);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--secondary-color);
}

/* --- Header & Navigation --- */
.main-header {
    background: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links a {
    margin: 0 15px;
    color: var(--secondary-color);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-auth a {
    margin-left: 10px;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 4rem 1.5rem;
    background-image: url('https://images.unsplash.com/photo-1557682250-33bd709cbe85?auto=format&fit=crop&w=1200&q=80');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--white-color);
    opacity: 0.9;
}

.hero-title {
    margin-top: 1.5rem;
    font-size: 2.2rem;
    color: var(--white-color);
    font-weight: 700;
}

/* --- About Section --- */
.about-section {
    padding: 5rem 1.5rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.value-props {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    text-align: center;
}

.value-prop .material-symbols-outlined {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
}

.value-prop h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

/* --- Columns Preview/List Section --- */
.columns-preview-section, .columns-list-section {
    padding: 5rem 1.5rem;
    background-color: var(--light-gray-color);
}
.columns-list-section {
    background-color: var(--white-color);
    padding-top: 3rem;
}

.columns-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: var(--max-width);
    margin: 0 auto;
}

.column-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.column-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.column-card a.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 1.5rem;
    flex-grow: 1;
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.card-summary {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #555;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #777;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
    margin-top: auto;
}

.section-cta {
    text-align: center;
    margin-top: 3rem;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 5rem 1.5rem;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* --- Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--light-gray-color);
    padding: 3rem 1.5rem;
    text-align: center;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--white-color);
    margin: 0 10px;
    transition: opacity 0.2s;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-content p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* --- Page Specific: Columns List --- */
.page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.page-header {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}
.page-header h1 { font-size: 2.8rem; }
.page-header p { font-size: 1.1rem; color: #666; }

.filter-section {
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: transparent;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.filter-btn:hover {
    background: var(--light-gray-color);
    border-color: #ccc;
}
.filter-btn.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
}
.pagination a {
    color: var(--secondary-color);
    padding: 8px 12px;
    margin: 0 4px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}
.pagination a.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    border: none;
}
.pagination a.disabled {
    color: #ccc;
    pointer-events: none;
}

/* --- Page Specific: Post Detail --- */
.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.post-header {
    margin-bottom: 2rem;
}

.category-badge {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.post-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.post-meta--sub {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
}

.post-thumbnail-wide {
    margin: 2rem 0;
}
.post-thumbnail-wide img {
    width: 100%;
    border-radius: var(--border-radius);
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-body h2 {
    font-size: 1.8rem;
    margin: 2.5rem 0 1rem 0;
}
.post-body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid var(--primary-color);
    background-color: var(--light-gray-color);
    font-style: italic;
}
.post-body ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.post-tags a {
    display: inline-block;
    background: var(--light-gray-color);
    padding: 5px 12px;
    border-radius: 15px;
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}
.post-actions {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}
.action-btn {
    padding: 10px 15px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    cursor: pointer;
    display: flex;
    align-items: center;
.action-btn.bookmarked {
    background: var(--secondary-color);
    color: var(--white-color);
    border-color: var(--secondary-color);
}

/* --- Comments Section --- */
.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}
.comments-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}
.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 10px;
    font-family: var(--font-family);
}
.comment-form { text-align: right; }

.comment-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
.comment {
    display: flex;
    gap: 1rem;
}
.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}
.comment-body {
    flex-grow: 1;
}
.comment-body p { margin-bottom: 0.5rem; }
.comment-meta {
    font-size: 0.85rem;
    color: #666;
}
.comment-meta a { margin-left: 10px; }

/* --- Related Posts Section --- */
.related-posts-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--white-color);
}

/* --- Page Specific: Profile --- */
.profile-container {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem 1.5rem;
}
.profile-box {
    background: var(--white-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.profile-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
.profile-info {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}
.profile-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--white-color);
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}
.profile-details p {
    margin-bottom: 0.5rem;
}
.profile-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}
.profile-sub-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}
.activity-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}
.activity-links a {
    font-weight: 600;
}
.activity-section {
    margin-top: 2rem;
}
.activity-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
}
.activity-list .no-activity {
    color: #777;
    padding: 1rem;
    text-align: center;
    background: var(--light-gray-color);
    border-radius: var(--border-radius);
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links, .nav-auth {
        display: none; /* Simple hiding for now, will implement mobile menu later */
    }
    
    .section-title {
        font-size: 2rem;
    }

    .value-props {
        flex-direction: column;
    }

    .post-title {
        font-size: 2.2rem;
    }

    .profile-info {
        flex-direction: column;
        text-align: center;
    }
}

/* --- Modal Styles --- */
.modal {
    position: fixed; /* Stay in place */
    z-index: 1001; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--white-color);
    margin: auto;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: fadeIn 0.3s ease-out;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover,
.close-button:focus {
    color: var(--secondary-color);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
    text-align: center;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 1rem;
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}