/* Base Typography */
body {
    font-family: "Noto Sans", sans-serif;
    font-size: 16px;
    color: rgb(30, 30, 30);
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: rgb(255, 255, 255);
}

[data-theme="dark"] body {
    background: rgb(30, 30, 30);
    color: rgb(255, 255, 255);
}

/* Link Styling */
a {
    color: rgb(27, 112, 222);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    opacity: 0.8;
}

/* Headings and Titles */

.site-title a {
    font-family: "Rubik", sans-serif;
    font-size: 1.5rem;
    color: #111;
    text-decoration: none;
}

[data-theme="dark"] .site-title a {
    color: #f2f8fc;
}

h1 {
    font-family: "Raleway", sans-serif;
    font-size: 2rem;
    font-weight: 200;
    margin-bottom: 1;
}

h2 {
    font-family: "Raleway", sans-serif;
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: "Raleway", sans-serif;
    font-size: 1.25rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
}

img[src*="#blog_img"] {
    display: block;
    margin: auto;
}

/* Header Layout */

.site-header {
    padding: 1.5rem 0;
    align-items: center;
    border-bottom: 1px solid #f1f2f6;
}

[data-theme="dark"] .site-header {
    border-bottom: 1px solid #57606f;
}

.container {
    display: flex;
    align-items: center;
}

/* Site Navigation */
.site-nav {
    display: flex;
    margin-left: auto;
    align-items: center;
    gap: 1.25rem;
    font-family: "Rubik", sans-serif;
    text-transform: uppercase;
}

.site-nav a {
    margin-left: 0;
    color: #333;
    transition: opacity 0.2s ease;
}

.site-nav a:hover {
    opacity: 0.8;
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] .site-nav a {
    color: #f0f0f0;
}

/* Theme Toggle Button */
.theme-toggle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid rgb(242, 242, 242);
    margin-left: 1.25rem;
    background-color: rgb(30, 30, 30);
    cursor: pointer;
}

[data-theme="dark"] .theme-toggle {
    background-color: rgb(255, 255, 255);
    border: 4px solid rgb(41, 41, 41);
}

/* Search Container and Toggle */

#search-bar {
    display: flex;
    align-items: center;
}

#search-container {
    margin-left: auto;
    display: flex;
    gap: 0.5rem;
}

#search-toggle {
    border: none;
    cursor: pointer;
    background: none;
}

/* Search Input */
#search-input {
    font-size: 1rem;
    border: none;
    border-radius: 24px;
    background-color: rgb(242, 242, 242);
    padding: 0.75rem 1rem;
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

#search-container.active #search-input {
    width: 300px;
    opacity: 1;
    pointer-events: auto;
}

#search-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(27, 112, 222, 0.5);
}

[data-theme="dark"] #search-input {
    background-color: rgb(41, 41, 41);
    color: rgb(255, 255, 255);
}

/* Blog Entries */
#post-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination-nav {
    display: flex;
    margin-left: auto;
    margin-left: auto;
    align-items: center;
    gap: 1rem;
}

.pagination-nav button {
    background: #e4e6eb;
    color: #444;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    text-transform: lowercase;
    border: none;
}

[data-theme="dark"] .pagination-nav button {
    background: #3d434f;
    color: #f0f0f0;
}

.blog-entry {
    background: rgb(242, 242, 242);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
}

.entry-title {
    font-family: "Raleway", sans-serif;
    font-size: 1.5rem;
}

.blog-entry:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .blog-entry {
    background: rgb(41, 41, 41);
    color: #f0f0f0;
}

.blog-entry small {
    display: block;
    font-size: 1rem;
    color: #555;
    margin-top: 0.5rem;
}

[data-theme="dark"] .blog-entry small {
    color: #bbbbbb;
}

.blog-entry p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
}

[data-theme="dark"] .blog-entry p {
    color: #f0f0f0;
}

/* Tags */
.tag {
    background: #e4e6eb;
    color: #444;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 0.4rem;
    text-transform: lowercase;
}

[data-theme="dark"] .tag {
    background: #3d434f;
    color: #f0f0f0;
}

.blog-entry .tag-list {
    margin-top: 1rem;
}

/* Apps List */
#app-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2rem 0;
}

.app-card {
    background: rgb(242, 242, 242);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition:
        transform 0.2s ease,
        box-shadow 0.3s ease;
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
    align-items: flex-start;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .app-card {
    background: rgb(41, 41, 41);
    color: #f0f0f0;
}

.app-image {
    flex: 0 0 120px;
    max-height: 120px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.app-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.app-content {
    flex: 1;
}

.app-subtitle {
    display: block;
    font-size: 1rem;
    color: #666;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

[data-theme="dark"] .app-subtitle {
    color: #bbbbbb;
}

.app-content p {
    font-size: 0.9rem;
    color: #444;
}

[data-theme="dark"] .app-content p {
    color: #f0f0f0;
}

/* Footer */
.site-footer {
    font-size: 0.8rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
    align-items: center;
    border-top: 1px solid #f1f2f6;
}

[data-theme="dark"] .site-footer {
    border-top: 1px solid #57606f;
}

.site-footer .container {
    margin: 0 auto;
    padding: 0 1rem;
    font-family: "Noto Sans", sans-serif;
}

/* Code Blocks */
pre {
    background: #1e1e1e;
    color: #dcdcdc;
    padding: 1em;
    overflow-x: auto;
    border-radius: 6px;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

code {
    font-family: "Fira Code", "Courier New", monospace;
    color: inherit;
}

pre code {
    display: block;
    white-space: pre;
}

/* Avatar (About page) */
.avatar-wrapper {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0 2rem;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
