@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&display=swap');

body {
    font-family: 'Google Sans', sans-serif;
    background-color: #f8f9fa;
    color: #3c4043;
    margin: 0;
    padding: 2rem;
    text-align: center;
}

header {
    margin-bottom: 3rem;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

#idea-count {
    color: #5f6368;
    margin-top: -1rem;
    margin-bottom: 1.5rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

#search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #dadce0;
    border-radius: 24px;
    margin-top: 1.5rem;
    font-family: 'Google Sans', sans-serif;
}

#search-input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

#filter-container {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background-color: #f1f3f4;
    border: 1px solid #dadce0;
    border-radius: 16px;
    padding: 0.5rem 1rem;
    font-family: 'Google Sans', sans-serif;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
    background-color: #e8eaed;
}

.filter-btn.active {
    background-color: #1a73e8;
    color: #ffffff;
    border-color: #1a73e8;
}

main {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px rgba(60,64,67,0.15);
    padding: 1.5rem;
    text-align: left;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border-left: 4px solid #dadce0; /* Default border */
}

/* Category-specific border colors */
.category-logistics { border-left-color: #4285F4; } /* Blue */
.category-education { border-left-color: #34A853; } /* Green */
.category-finance { border-left-color: #FBBC04; } /* Yellow */
.category-lifestyle { border-left-color: #EA4335; } /* Red */
.category-productivity { border-left-color: #9AA0A6; } /* Gray */
.category-utilities { border-left-color: #A142F4; } /* Purple */
.category-health { border-left-color: #24C1E0; } /* Cyan */
.category-developer-tools { border-left-color: #FF6D01; } /* Orange */
.category-e-commerce { border-left-color: #137333; } /* Dark Green */

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(60,64,67,0.3), 0 8px 16px rgba(60,64,67,0.15);
}


.card h2 {
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #202124;
}

.card .category-tag {
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    background-color: #f1f3f4;
    color: #5f6368;
    display: inline-block;
    margin-bottom: 1rem;
}

.card .info {
    font-size: 0.875rem;
    color: #5f6368;
    margin-bottom: 1rem;
}

.card .links {
    margin-top: 1.5rem;
    display: flex;
    justify-content: space-between;
}

.card a {
    text-decoration: none;
    color: #1a73e8;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #dadce0;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.card a:hover {
    background-color: #f1f3f4;
}

#status-log {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    text-align: left;
    font-family: monospace;
    white-space: pre-wrap;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

footer {
    margin-top: 4rem;
    color: #5f6368;
}

@media (max-width: 600px) {
    body {
        padding: 1rem;
    }

    h1 {
        font-size: 2.5rem;
    }

    main {
        grid-template-columns: 1fr;
    }
}

.timeline-container {
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.timeline-container h3 {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 500;
    color: #202124;
    margin-bottom: 1rem;
}

.timeline-bar {
    width: 100%;
    height: 8px;
    background-color: #dadce0;
    border-radius: 4px;
    position: relative;
}

#timeline-events {
    position: relative;
    height: 100%;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #1a73e8;
    border-radius: 50%;
    transform: translateX(-50%);
    top: -4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.timeline-dot:hover {
    transform: translateX(-50%) scale(1.2);
}

.timeline-dot .tooltip {
    visibility: hidden;
    width: 220px;
    background-color: #3c4043;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 170%;
    left: 50%;
    margin-left: -110px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.timeline-dot .tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #3c4043 transparent transparent transparent;
}

.timeline-dot:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.timeline-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 0.5rem;
    color: #5f6368;
    font-size: 0.875rem;
}
