@import url("https://fonts.googleapis.com/css2?family=Lexend:wght@100..900&family=Vampiro+One&display=swap");

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}
body {
    font-family: Lexend, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: #fdc477;
    background: -webkit-linear-gradient(
        180deg,
        rgba(253, 196, 119, 1) 0%,
        rgba(208, 76, 196, 1) 50%,
        rgba(73, 91, 189, 1) 100%
    );
    background: -moz-linear-gradient(
        180deg,
        rgba(253, 196, 119, 1) 0%,
        rgba(208, 76, 196, 1) 50%,
        rgba(73, 91, 189, 1) 100%
    );
    background: linear-gradient(
        180deg,
        rgba(253, 196, 119, 1) 0%,
        rgba(208, 76, 196, 1) 50%,
        rgba(73, 91, 189, 1) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#FDC477", endColorstr="#495BBD", GradientType=0);
    min-height: 100vh;
    background-attachment: fixed;
}

header {
    background: white;
    padding: 10px;
    display: flex;
    width: 100%;
}

nav {
    align-content: center;
    margin: auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
}

/* Fixed media query - moved outside of nav ul rule */
@media screen and (max-width: 500px) {
    nav ul {
        display: block;
        width: 100%;
    }
    nav li a {
        display: block;
        padding: 0;
        width: 100%;
    }
}

nav li {
    margin: auto;
    padding: 10px;
    text-align: center;
}

nav li a {
    color: rebeccapurple;
    border: 2px solid rebeccapurple;
    padding: 10px 30px;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
}

nav li a:hover {
    background-color: rebeccapurple;
    color: white;
    transition: all 0.5s ease;
}

#logo {
    display: inline-block;
    width: 100px;
    height: 100px;
}

#logo a:hover {
    padding: 0;
    background-color: transparent;
}
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    /* background: rgba(255, 255, 255, 0.9); */
    margin-top: 20px;
    margin-bottom: 20px;
    min-height: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    background-color: #fff;
    padding: 10px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.post-preview {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
    background: white;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-preview h3 a,
.blog-post h2 a {
    color: #333;
    text-decoration: none;
}

.post-preview h3 a:hover,
.blog-post h2 a:hover {
    color: #007cba;
}

.post-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.post-meta span {
    flex: 1;
    padding: 4px 8px;
    font-size: 14px;
    font-weight: 400;
    align-content: center;
}

.category::before {
    content: " Category: ";
    font-weight: 600;
}

.read-more {
    color: #495bbd;
    text-decoration: none;
    font-weight: bold;
    background-color: white;
    padding: 8px 16px;
    border: 2px solid #495bbd;
    display: inline-block;
}

.read-more:hover {
    background-color: #495bbd;
    color: white;
    transition: all 0.5s ease;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #495bbd;
    color: white;
    text-decoration: none;
    margin: 5px;
    transition: background 0.3s ease;
}

.btn:hover {
    background: #fdc477;
    color: black;
    text-decoration: none;
}

.btn.active {
    background: #333;
}

.pagination {
    text-align: center;
    margin: 30px 0;
}

.single-post {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.post-header h1 {
    font-family: Lexend, sans-serif;
    margin-bottom: 15px;
    color: #333;
}

.post-image {
    margin: 30px 0;
    text-align: center;
}

.post-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-caption {
    font-style: italic;
    color: #666;
    margin-top: 10px;
}

.post-content {
    line-height: 1.8;
    color: #444;
}

.post-navigation {
    margin-top: 40px;
    text-align: center;
}

.product-post .price {
    background: #495bbd;
    color: white;
    padding: 5px 10px;
    font-weight: bold;
}

.product-actions {
    text-align: center;
    margin: 30px 0;
}

.buy-button {
    display: inline-block;
    background: #28a745;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
    margin: auto;
}

.buy-button:hover {
    background: #218838;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.product-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.product-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: box-shadow 0.3s;
}

.product-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-top: 0;
}

.product-info h3 a {
    color: #333;
    text-decoration: none;
}

.product-info h3 a:hover {
    color: #007cba;
}

.product-description {
    color: #666;
    margin: 10px 0;
}

.product-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 18px;
    font-weight: 600;
    color: #495bbd;
}

.buy-button-small {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: background 0.3s;
}

.buy-button-small:hover {
    background: #218838;
}

.blog-post {
    background: white;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.blog-post h2 {
    margin-top: 0;
}

.post-excerpt {
    color: #666;
    margin: 15px 0;
    line-height: 1.6;
}

.recent-posts h2,
main h1 {
    font-family: "Vampiro One", script;
    font-size: 220%;
    margin: 0 10px 0 0;
    color: #000;
    width: 100%;
}

.dash {
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
}

.dash::after {
    content: "";
    flex: 1; /* This fills all remaining space */
    height: 2px;
    background: linear-gradient(90deg, rgba(253, 196, 119, 1) 0%, rgba(208, 76, 196, 1) 50%, rgba(73, 91, 189, 1) 100%);
}

main h1 {
    margin-bottom: 30px;
}

footer {
    background-color: white;
    text-align: center;
    font-size: x-small;
    margin-top: auto;
    font-weight: 300;
}

footer a, footer a:visited, footer a:active {
    color: rgba(208, 76, 196, 1);
}

footer a:hover {
    color: rgba(73, 91, 189, 1);
    text-decoration: none;
}

/* Responsive improvements */
@media screen and (max-width: 768px) {
    main {
        margin: 10px;
        padding: 15px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
