@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;800&display=swap');

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    background-color: #f0f2f5;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    position: relative; /* For hamburger menu positioning */
}

.logo {
    font-weight: bold;
    font-size: 1.5rem;
}

nav {
    display: flex;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 1.5rem;
}

.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 1.5rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #333;
}

.hero p {
    font-size: 1.25rem;
    color: #666;
    margin-bottom: 2.5rem;
}

main {
    padding: 3rem 1.5rem;
}

.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 1.2rem;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.list-area {
    max-width: 1200px;
    margin: 0 auto;
}

.list-area h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 2rem;
}

#tool-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-row {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1fr 1fr 1.2fr;
    align-items: center;
    background: white;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.tool-row:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.t-name {
    font-weight: bold;
    font-size: 1.1rem;
}

.t-desc {
    color: #555;
    font-size: 0.95rem;
    padding: 0 15px;
}

.t-tags {
    text-align: center;
}

.t-rating {
    font-weight: bold;
    text-align: center;
    font-size: 1rem;
}

.visit-link {
    text-align: center;
    background-color: #4285f4;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.visit-link:hover {
    background-color: #3367d6;
}

.tag {
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: capitalize;
}

.tag.free {
    background-color: #e6f4ea;
    color: #34a853;
}

.tag.paid {
    background-color: #fce8e6;
    color: #ea4335;
}

.tag.beta {
    background-color: #e8f0fe;
    color: #4285f4;
}

footer {
    background-color: #fff;
    border-top: 1px solid #ddd;
    padding: 2rem 0;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0;
    color: #666;
}

.footer-content nav a {
    text-decoration: none;
    color: #333;
    margin: 0 1rem;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 4px;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s ease-in-out;
}


/* General responsive rules for images and tables */
img, table, .comparison-grid {
    max-width: 100%;
    height: auto;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        padding: 1rem 1.5rem;
    }

    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust as needed */
        left: 0;
        width: 100%;
        background-color: white;
        border-top: 1px solid #ddd;
        z-index: 100;
    }
    
    nav.active {
        display: flex;
    }

    nav a {
        margin: 0;
        padding: 1rem;
        text-align: center;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    main {
        padding: 1.5rem 1rem;
    }
    
    .list-area {
        padding: 0 16px;
    }
    
    #tool-display {
      gap: 20px;
    }
    
    .tool-row {
        grid-template-columns: 1fr; /* Single column layout */
        width: 100%;
        padding: 1rem;
        text-align: center;
        gap: 15px;
    }

    .t-desc {
        padding: 0;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
        padding: 0 20px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}
