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

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

:root {
    --blue-start: #9333ea; --blue-end: #7e22ce;
    --pink-start: #ec4899; --pink-end: #f472b6;
    --bg: #eff6ff; --card: #fff;
    --text: #1e293b; --muted: #64748b;
}

body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); }

.navbar { background: transparent; padding: 1.5rem 0; border: none; }
.navbar-brand { font-size: 1.5rem; font-weight: 700; color: #9333ea !important; display: flex; align-items: center; gap: 0.75rem; }
.navbar-brand .brand-icon { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; }
.navbar-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.navbar-brand .brand-title { font-size: 1.25rem; font-weight: 700; }
.navbar-brand .brand-tagline { font-size: 0.75rem; font-weight: 500; color: var(--muted); }
.navbar-brand i { font-size: 1.75rem; }
.navbar-nav { gap: 0.5rem; }
.navbar-nav .nav-link { color: var(--text) !important; font-weight: 600; padding: 0.75rem 1.5rem !important; border-radius: 50px; transition: all 0.2s; background: transparent; }
.navbar-nav .nav-link:hover { background: rgba(99, 102, 241, 0.1); color: #9333ea !important; }
.navbar-nav .nav-link.active { background: #9333ea; color: #fff !important; }

.hero-section { background: linear-gradient(135deg, #9333ea, #7e22ce); padding: 4rem 2rem; margin: 0 2rem 3rem; border-radius: 30px; color: #fff; text-align: center; box-shadow: 0 10px 30px rgba(147,51,234,0.3); }
.hero-section h1 { font-size: 3rem; font-weight: 800; margin-bottom: 1rem; }
.hero-section p { font-size: 1.25rem; }

.hero-featured { position: relative; }

.featured-badge { display: inline-block; background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1.25rem; border-radius: 50px; font-size: 0.875rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 1.5rem; }

.hero-small { padding: 3rem 2rem; margin: 0 2rem 3rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.hero-small h1 { font-size: 2.5rem; }
.hero-small p { font-size: 1.125rem; }

.container { max-width: 1400px; padding: 0 2rem 4rem; }
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }

.post-card { background: var(--card); border-radius: 24px; padding: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.3s; }
.post-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }

.post-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }

.date-badge { background: linear-gradient(135deg, #9333ea, #7e22ce); color: #fff; width: 80px; height: 80px; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(147,51,234,0.3); flex-shrink: 0; }
.date-badge .day { font-size: 2rem; font-weight: 800; line-height: 1; }
.date-badge .month { font-size: 0.875rem; font-weight: 600; text-transform: uppercase; }
.date-badge .year { font-size: 0.6875rem; font-weight: 500; margin-top: 0.125rem; opacity: 0.9; }

.post-card h3 { font-size: 1.5rem; font-weight: 700; margin: 0; }
.post-card .subtitle { color: var(--muted); margin-bottom: 1.5rem; }

.post-actions { display: flex; gap: 0.75rem; justify-content: flex-end; }

.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 600; font-size: 0.9375rem; border: none; cursor: pointer; text-decoration: none; transition: 0.2s; }
.btn-primary { background: linear-gradient(135deg, #9333ea, #7e22ce); color: #fff; }
.btn-primary:hover { transform: scale(1.05); color: #fff; }
.btn-outline { background: linear-gradient(135deg, #ec4899, #f472b6); color: #fff; }
.btn-outline:hover { transform: scale(1.05); color: #fff; }
.btn-danger { background: #ef4444; color: #fff; }
.btn-danger:hover { transform: scale(1.05); }
.btn-secondary { background: #fff; color: #9333ea; border: 2px solid #9333ea; }
.btn-secondary:hover { background: #9333ea; color: #fff; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.125rem; }

.new-entry-section { margin-bottom: 2.5rem; }

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

/* Featured Apps on Home Page */
.featured-apps { margin-bottom: 3rem; }

.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; color: var(--text); }

.apps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 1rem; }

.app-card-small { background: var(--card); border-radius: 20px; padding: 1.75rem; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.3s; text-decoration: none; display: block; }

.app-card-small:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }

.app-icon-small { width: 70px; height: 70px; background: linear-gradient(135deg, #9333ea, #7e22ce); border-radius: 20px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; }

.app-icon-small i { font-size: 2rem; color: #fff; }

.app-card-small h4 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }

.app-description-small { color: var(--muted); font-size: 0.875rem; line-height: 1.4; margin: 0; }

.content-section { background: var(--card); border-radius: 30px; padding: 4rem; margin: 0 2rem 3rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); max-width: 1200px; margin-left: auto; margin-right: auto; }
.content-section h2 { font-size: 2.25rem; font-weight: 800; margin-bottom: 2rem; }
.content-section h3 { font-size: 1.75rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 1.25rem; }
.content-section p { font-size: 1.125rem; line-height: 1.8; margin-bottom: 1.5rem; }
.content-section ul { margin: 1.5rem 0; padding-left: 2rem; }
.content-section li { margin-bottom: 0.75rem; }

.content-icon { width: 80px; height: 80px; background: linear-gradient(135deg, #9333ea, #7e22ce); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 2.5rem; margin-bottom: 2rem; }

.quote-box { background: linear-gradient(135deg, #67e8f9, #f9a8d4); border-radius: 20px; padding: 2rem; margin: 2rem 0; font-style: italic; }

.form-card { background: var(--card); border-radius: 30px; padding: 3rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); max-width: 900px; margin: 0 auto 3rem; }
.form-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; margin-bottom: 0.75rem; font-size: 1.125rem; }
.form-label i { color: #9333ea; }
.form-control { width: 100%; padding: 1rem 1.25rem; border: 2px solid #e2e8f0; border-radius: 16px; font-size: 1rem; font-family: 'Inter'; transition: 0.2s; background: #f8fafc; }
.form-control:focus { outline: none; border-color: #9333ea; background: #fff; box-shadow: 0 0 0 4px rgba(147,51,234,0.1); }
textarea.form-control { resize: vertical; min-height: 300px; }

.info-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.info-box { background: linear-gradient(135deg, #ec4899, #f472b6); border-radius: 16px; padding: 1.25rem; color: #fff; text-align: center; font-weight: 600; }

.login-wrapper { min-height: calc(100vh - 300px); display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.login-card { background: var(--card); border-radius: 30px; padding: 4rem; width: 100%; max-width: 500px; box-shadow: 0 12px 32px rgba(0,0,0,0.12); }
.login-card h2 { text-align: center; font-size: 2rem; font-weight: 800; margin-bottom: 2.5rem; }
.login-card h2 i { color: #9333ea; }

.footer { background: var(--card); padding: 2.5rem 0; margin-top: 4rem; }
.footer-content { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.footer-left p { margin: 0; font-weight: 600; }
.footer-left p:first-child { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.footer-left i { color: #9333ea; margin-right: 0.5rem; }
.social-links { display: flex; gap: 1.25rem; justify-content: flex-end; }
.social-links a { color: var(--muted); font-size: 1.5rem; transition: 0.2s; }
.social-links a:hover { color: #9333ea; transform: translateY(-4px); }

.action-buttons { display: flex; gap: 1rem; margin-top: 2.5rem; justify-content: center; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* Apps Page */
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-bottom: 3rem; }

/* User Avatar in Navbar */
.user-avatar { width: 36px; height: 36px; background: linear-gradient(135deg, #9333ea, #7e22ce); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1rem; }

.user-dropdown { display: flex; align-items: center; gap: 0.25rem; }

.navbar-nav .dropdown-toggle::after { margin-left: 0; }

.dropdown-menu { border-radius: 12px; border: 1px solid var(--border); box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 0.5rem 0; }

.dropdown-item { padding: 0.75rem 1.5rem; font-weight: 500; transition: 0.2s; display: flex; align-items: center; gap: 0.75rem; }

.dropdown-item i { width: 20px; color: var(--muted); }

.dropdown-item:hover { background: #f8fafc; color: #9333ea; }

.dropdown-divider { margin: 0.5rem 0; border-color: var(--border); }

.app-card { background: var(--card); border-radius: 24px; padding: 2.5rem; text-align: center; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.3s; text-decoration: none; display: block; }
.app-card:hover { transform: translateY(-8px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); }

.app-icon { width: 100px; height: 100px; background: linear-gradient(135deg, #9333ea, #7e22ce); border-radius: 24px; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem; }
.app-icon i { font-size: 3rem; color: #fff; }

.app-card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.app-description { color: var(--muted); font-size: 1rem; line-height: 1.6; }

/* Social Buttons */
.social-buttons { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }

.btn-social { display: inline-flex; align-items: center; gap: 0.75rem; padding: 1rem 2rem; border-radius: 50px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: 0.2s; }

.btn-linkedin { background: #0077b5; color: #fff; }
.btn-linkedin:hover { background: #005885; color: #fff; transform: translateY(-2px); }

.btn-github { background: #24292e; color: #fff; }
.btn-github:hover { background: #000; color: #fff; transform: translateY(-2px); }

.btn-contact { background: #fff; color: #9333ea; border: 2px solid #9333ea; }
.btn-contact:hover { background: #9333ea; color: #fff; transform: translateY(-2px); }

/* Tech Grid */
.tech-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.5rem; margin-top: 2rem; }

.tech-card { background: #f8fafc; border-radius: 16px; padding: 2rem 1rem; text-align: center; transition: 0.2s; }
.tech-card:hover { background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.tech-card p { margin: 1rem 0 0; font-weight: 600; color: var(--text); }

/* Settings Page */
.settings-container { background: var(--card); border-radius: 24px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.08); margin-bottom: 3rem; }

.settings-tabs { background: #f8fafc; border-bottom: 2px solid var(--border); padding: 1rem 1.5rem 0; }

.settings-tabs .nav-link { border: none; color: var(--text); font-weight: 600; padding: 0.75rem 1.5rem; border-radius: 12px 12px 0 0; transition: 0.2s; }

.settings-tabs .nav-link:hover { background: rgba(147,51,234,0.05); }

.settings-tabs .nav-link.active { background: var(--card); color: #9333ea; border-bottom: 3px solid #9333ea; }

.settings-tabs .nav-link i { margin-right: 0.5rem; }

.settings-content { padding: 2.5rem; }

.settings-content h3 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--text); }

.content-types-list { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }

.content-type-item { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }

.content-type-item:last-child { border-bottom: none; }

.content-type-item > div:first-child { display: flex; align-items: center; gap: 1rem; }

.content-type-item > div:last-child { display: flex; gap: 0.5rem; }

.content-type-item i.fas, .content-type-item i.fab { font-size: 1.25rem; }

.content-type-item strong { font-size: 1.0625rem; }

.badge { padding: 0.375rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

/* Posts Table */
.posts-table-container { background: var(--card); border-radius: 24px; box-shadow: 0 4px 12px rgba(0,0,0,0.08); overflow: hidden; padding: 2rem; }

.table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }

.table-header h3 { margin: 0; font-size: 1.5rem; font-weight: 700; }

.posts-table { width: 100%; border-collapse: separate; border-spacing: 0; }

.posts-table thead th { padding: 1rem 1.5rem; text-align: left; font-weight: 700; font-size: 0.875rem; text-transform: uppercase; color: var(--muted); background: #f8fafc; border-bottom: 2px solid #e2e8f0; }

.posts-table tbody td { padding: 1.25rem 1.5rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }

.posts-table tbody tr:hover { background: #f8fafc; }

/* DataTables customization */
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter { margin-bottom: 1.5rem; }

.dataTables_wrapper .dataTables_length label, .dataTables_wrapper .dataTables_filter label { font-weight: 600; color: var(--text); }

.dataTables_wrapper .dataTables_length select, .dataTables_wrapper .dataTables_filter input { border: 2px solid #e2e8f0; border-radius: 12px; padding: 0.5rem 1rem; margin-left: 0.5rem; font-family: 'Inter', sans-serif; }

.dataTables_wrapper .dataTables_info { padding-top: 1.5rem; color: var(--muted); }

.dataTables_wrapper .dataTables_paginate { padding-top: 1.5rem; }

/* Override Bootstrap pagination spacing */
.dataTables_wrapper .pagination { gap: 0.25rem !important; }

.dataTables_wrapper .page-link { padding: 0.5rem 0.75rem; margin: 0; border-radius: 8px !important; border: none; background: transparent; color: var(--text); font-weight: 600; transition: 0.2s; }

.dataTables_wrapper .page-link:hover { background: #f1f5f9; color: var(--text); }

.dataTables_wrapper .page-item.active .page-link { background: #9333ea; color: #fff; border-color: #9333ea; }

.dataTables_wrapper .page-item.disabled .page-link { color: var(--muted); cursor: not-allowed; background: transparent; }

.dataTables_wrapper .page-item.disabled .page-link:hover { background: transparent; }

.type-badge { display: inline-block; padding: 0.375rem 0.75rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

.type-post { background: #dbeafe; color: #7e22ce; }
.type-page { background: #f3e8ff; color: #6b21a8; }
.type-project { background: #d1fae5; color: #065f46; }

.status-badge { display: inline-block; padding: 0.375rem 0.875rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

.status-published { background: #d1fae5; color: #065f46; }
.status-draft { background: #fef3c7; color: #92400e; }
.status-archived { background: #f3f4f6; color: #6b7280; }

.featured-badge { display: inline-block; padding: 0.375rem 0.875rem; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }

.featured-yes { background: #fef3c7; color: #92400e; }
.featured-no { background: #f3f4f6; color: #6b7280; }

.actions-cell { text-align: right; }

.action-dropdown-btn { background: #f1f5f9; border: none; border-radius: 8px; padding: 0.5rem 0.75rem; cursor: pointer; transition: 0.2s; display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text); font-size: 0.875rem; }

.action-dropdown-btn:hover { background: #9333ea; color: #fff; }

.action-dropdown-btn i { font-size: 0.875rem; }

.posts-table .dropdown-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem; }

.posts-table .dropdown-item i { width: 16px; }

.posts-table .dropdown-item.text-danger { color: #ef4444; }

.posts-table .dropdown-item.text-danger:hover { background: #fef2f2; color: #dc2626; }

@media (max-width: 1200px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } .apps-grid { grid-template-columns: repeat(2, 1fr); } .apps-row { grid-template-columns: repeat(2, 1fr); } .tech-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .hero-section { margin: 0 1rem 2rem; padding: 3rem 1.5rem; }
    .hero-section h1 { font-size: 2rem; }
    .posts-grid { grid-template-columns: 1fr; }
    .apps-grid { grid-template-columns: 1fr; }
    .apps-row { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .container { padding: 0 1rem 3rem; }
    .content-section, .form-card, .login-card { margin-left: 1rem; margin-right: 1rem; padding: 2.5rem 1.5rem; }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-links { justify-content: center; }
    .info-boxes { grid-template-columns: 1fr; }
    .action-buttons { flex-direction: column; }
    .social-buttons { flex-direction: column; }
    .entry-buttons { flex-direction: column; }
}
