/* Styles.css */

/* Reset and Base Styles */
html {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

*, *:before, *:after {
    box-sizing: inherit;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Header Styles */
header {
    background-color: #ffffff;
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.logo {
    max-width: 150px;
    height: auto;
    margin-right: 2rem;
}

nav {
    background-color: #000;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: #fff;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

nav ul {
    list-style: none;
    color: #fff;
    margin: 0;
       display: flex;
    justify-content: left;
    gap: 2rem;
}

nav a:hover {
    color: #007bff;
}

/* Main Content Styles */
.container {
   
    margin: 6rem auto;
    padding: 0 1rem;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-template-rows: repeat(4, auto);
    gap: 20px;
    padding: 20px;
    background-color: white;
    border: 2px solid #333;
    border-radius: 10px;
}

.header-container {
  
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

/* Current four items in header, second one is a blank */
.header-grid {
    display: grid;
    grid-template-columns: max-content 1fr max-content max-content;
    
}

.header-grid-container {
       background-color: black;
}

.detail-container {
    gap: 1rem;
  
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

/* Current one items in detail */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    padding 1rem;
    gap 1rem;
    
}

.detail-grid-container {
       background-color: black;
       row-gap 1rem;
}

.item {
    background-color: #f8f9fa;
    padding: 1rem 1rem;
    gap 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    justify-content: center;
    align-items: center;
    
}

.card {
    background-color: #ffffff;
    border-radius: 16px;
    border-width: 16px;
    padding: 1rem 1.5rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 30px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;

    &:hover {
        transform: translateY(-10px);

        .main-link {
            color: #ff8a00;
        }
    }
    &:focus-within {
        box-shadow: 0 0 0 0.25rem;
    }

    &:focus-within a:focus {
        text-decoration: none;
    }
}

.card:hover {
    transform: translateY(-5px);
}

/* Detail Page Styles */
.detail-page {
    background-color: #f8f9fa;
    padding: 2rem;
}

.detail-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 1rem;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }
}