/* Custom styles for portfolio site */

/* Header layout adjustments */
.header .nav {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header .nav .logo {
    display: flex;
    align-items: center;
}

.header .nav .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.header .nav .logo a .home-text {
    margin-left: 8px;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.nav-right-items {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

#menu {
    margin: 0 auto;
}

.header .nav {
    position: relative;
}

.header {
    position: relative;
}

.header #menu {
    position: static;
    left: auto;
    transform: none;
    display: flex;
    justify-content: center;
}

/* Button styling */
#theme-toggle {
    padding: 0;
    margin: 0;
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    height: 22px;
    width: 22px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#theme-toggle:hover {
    background-color: var(--border);
}

/* Home page adjustments */
.main {
    padding: 20px;
}

/* Fix section heading alignment */
.page-header h1,
.post-title,
h1,
h2,
h3,
h4,
h5,
h6 {
    text-align: left;
}

/* Mobile responsiveness fixes */
@media (max-width: 768px) {
    .main {
        padding: 1rem;
    }

    .header .nav {
        justify-content: center;
    }

    .nav-right-items {
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    #menu {
        margin-right: 0;
    }

    .header .nav {
        flex-wrap: wrap;
    }

    .header #menu {
        position: static;
        transform: none;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
    }

    .header .nav .logo a .home-text {
        font-size: 0.85rem;
    }

    #theme-toggle {
        height: 20px;
        width: 20px;
    }

    /* Better spacing on mobile */
    .post-entry {
        margin-bottom: 20px;
    }
}

/* Improved typography */
.post-title {
    font-weight: 700;
}

.post-content h2 {
    margin-top: 30px;
    font-weight: 600;
}

.post-content h3 {
    margin-top: 25px;
    font-weight: 600;
}

/* Projects page styling */
.projects-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
}

/* Profile improvements */
.profile img {
    border-radius: 50%;
    object-fit: cover;
}

/* Custom button style */
.custom-button {
    display: inline-block;
    padding: 8px 16px;
    background: var(--primary);
    color: var(--theme);
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.custom-button:hover {
    opacity: 0.8;
}
