:root {
    --primary-color: #818181;
    --secondary-color: #1e40af;
    --link-color: #c50a8e;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --bg-color: #f9fafb;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Hind', sans-serif;
    background: var(--bg-color);
    min-height: 100vh;
    color: var(--text-color);
    line-height: 1.6;
}
  .form-container {
    background: #ffffff;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: fadeIn 0.6s ease-in-out;
  }

  .form-container h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
  }

  .form-group {
    margin-bottom: 20px;
  }

  label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
  }

  input, textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 15px;
    transition: all 0.3s ease;
    outline: none;
  }

  input:focus, textarea:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102,126,234,0.2);
  }

  textarea {
    resize: none;
    min-height: 120px;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
/* Navigation */
.navbar {
    background: #000000;
    border-bottom: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    white-space: nowrap;
}

.logo:hover {
    color: #e5e7eb;
}

.nav-menu {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.nav-item {
    position: relative;
}

.nav-link {
    padding: 0.5rem 1rem;
    color: #ffffff;
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    display: block;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #1f2937;
    border: 1px solid #374151;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    display: none;
    margin-top: 0.25rem;
}

.nav-item:hover .nav-dropdown {
    display: block;
}

.nav-dropdown .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 0;
    color: #ffffff;
}

.nav-dropdown .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #2a2a2a;
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
    background: #000000;
    color: #ffffff;
    width: 200px;
    transition: all 0.2s;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #111827;
    width: 250px;
}

/* Main Layout */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
}

.main-content {
    min-width: 0;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 90px;
    height: fit-content;
}

.sidebar-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.category-item {
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-item:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.category-count {
    font-size: 0.875rem;
    color: var(--text-light);
    background: var(--bg-color);
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-color);
    display: block;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.post-card-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.category-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: #ffffff;
    border-radius: 12px;
    font-weight: 500;
    border: 1px solid var(--primary-color);
}

.post-card h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.post-card .post-excerpt {
    color: var(--text-light);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Single Post */
.post-full, .page-full {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 2rem;
    position: relative;
}

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

.back-link {
    display: inline-block;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: 500;
    position: sticky;
    top: 70px;
    background: #ffffff8a;
    backdrop-filter: blur(2px);
    border-radius: 10px;
    padding: 0.5rem 0;
    padding-inline: 10px;
    z-index: 50;
    width: fit-content;
}

.back-link:hover {
    text-decoration: underline;
}

.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-full h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-full h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.share-btn {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.share-btn svg {
    width: 16px;
    height: 16px;
}

.post-content, .page-content {
    font-size: 1.0625rem;
    font-family: 'Hind', sans-serif;
    line-height: 1.8;
}

.post-content h2, .page-content h2 {
    font-size: 1.875rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
}

.post-content h3, .page-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
}

.post-content p, .page-content p {
    margin-bottom: 1.25rem;
}

.post-content ul, .post-content ol,
.page-content ul, .page-content ol {
    margin-bottom: 1.25rem;
    padding-left: 2rem;
}

.post-content li, .page-content li {
    margin-bottom: 0.5rem;
}

.post-content img, .page-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.post-content a, .page-content a {
    color: var(--link-color);
    text-decoration: underline;
}

.post-content pre, .page-content pre {
    background: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: var(--border-radius);
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.5;
}

.post-content code, .page-content code {
    background: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.post-content pre code, .page-content pre code {
    background: none;
    padding: 0;
}

.encrypted-notice {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-color);
    border-radius: var(--border-radius);
}

.encrypted-notice svg {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.encrypted-notice h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.encrypted-notice p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.decrypt-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}

.decrypt-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.error-message {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    min-height: 1.25rem;
}

/* Buttons */
.btn-primary {
    padding: 0.625rem 1.25rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
    background: var(--secondary-color);
}

.btn-secondary {
    padding: 0.625rem 1.25rem;
    background: white;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 90%;
    padding: 2rem;
}

.modal-content h3 {
    margin-bottom: 1.5rem;
}

.share-link-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.share-link-input {
    flex: 1;
    padding: 0.625rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
}

.copy-message {
    color: #059669;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 1.25rem;
}
.social-share-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: var(--border-radius);
    font-family: 'Hind', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: white;
}

.social-btn.twitter {
    background: #1DA1F2;
}

.social-btn.twitter:hover {
    background: #1a91da;
}

.social-btn.facebook {
    background: #1877F2;
}

.social-btn.facebook:hover {
    background: #166fe5;
}

.social-btn.linkedin {
    background: #0A66C2;
}

.social-btn.linkedin:hover {
    background: #095196;
}

.social-btn.reddit {
    background: #FF4500;
}

.social-btn.reddit:hover {
    background: #e03d00;
}

.post-card-thumbnail {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Responsive */
@media (max-width: 1024px) {
    .main-wrapper {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
        gap: 1rem;
        position: relative;
    }
    
    .logo {
        flex: 1;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #000000;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0;
        border-top: 1px solid #374151;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-item {
        width: 100%;
    }
    
    .nav-link {
        padding: 0.875rem 1rem;
        border-radius: 0;
    }
    
    .nav-dropdown {
        position: static;
        display: none;
        background: #111827;
        border: none;
        margin: 0;
        padding-left: 1rem;
    }
    
    .nav-item:hover .nav-dropdown {
        display: none;
    }
    
    .nav-item.active .nav-dropdown {
        display: block;
    }
    
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: none;
        color: white;
        cursor: pointer;
        padding: 0.5rem;
        width: 40px;
        height: 40px;
    }
    
    .mobile-menu-toggle svg {
        width: 24px;
        height: 24px;
    }
    
    .search-input {
        width: 100%;
    }
    
    .search-input:focus {
        width: 100%;
    }
    
    .main-wrapper {
        padding: 1rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-full, .page-full {
        padding: 1.5rem;
    }
    
    .back-link {
        top: 70px;
    }
    
    .post-full h1, .page-full h1 {
        font-size: 1.875rem;
        font-family: "Ubuntu", sans-serif;
    }
    
    .share-btn {
        position: static;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 1.25rem;
    }
    
    .post-card {
        padding: 1rem;
    }
    
    .post-full, .page-full {
        padding: 1rem;
    }
    
    .post-full h1, .page-full h1 {
        font-size: 1.5rem;
    }
    
    .post-content, .page-content {
        font-size: 1rem;
    }
    
    .post-content pre, .page-content pre {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}