/* Apple-inspired color palette */
:root {
    --apple-blue: #007aff;
    --apple-indigo: #5856d6;
    --apple-purple: #af52de;
    --apple-pink: #ff2d55;
    --apple-red: #ff3b30;
    --apple-orange: #ff9500;
    --apple-yellow: #ffcc00;
    --apple-green: #34c759;
    --apple-teal: #5ac8fa;
    --apple-gray: #8e8e93;
    --apple-light-gray: #f2f2f7;
    --apple-dark-gray: #1c1c1e;
}

/* Base styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

/* Navigation styles with color indicators */
.nav-item {
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.nav-item.active {
    color: var(--category-color) !important;
}

.nav-item.active::after {
    width: 100%;
}

/* Navigation item specific colors */
.nav-item[href="#conversation"]::after { background-color: var(--apple-blue); }
.nav-item[href="#programming"]::after { background-color: var(--apple-indigo); }
.nav-item[href="#music"]::after { background-color: var(--apple-purple); }
.nav-item[href="#translation"]::after { background-color: var(--apple-pink); }
.nav-item[href="#writing"]::after { background-color: var(--apple-red); }
.nav-item[href="#design"]::after { background-color: var(--apple-orange); }
.nav-item[href="#video"]::after { background-color: var(--apple-yellow); }
.nav-item[href="#productivity"]::after { background-color: var(--apple-green); }
.nav-item[href="#research"]::after { background-color: var(--apple-teal); }
.nav-item[href="#marketing"]::after { background-color: var(--apple-blue); }
.nav-item[href="#education"]::after { background-color: var(--apple-indigo); }

.nav-item[href="#conversation"].active, .nav-item[href="#conversation"]:hover { color: var(--apple-blue); }
.nav-item[href="#programming"].active, .nav-item[href="#programming"]:hover { color: var(--apple-indigo); }
.nav-item[href="#music"].active, .nav-item[href="#music"]:hover { color: var(--apple-purple); }
.nav-item[href="#translation"].active, .nav-item[href="#translation"]:hover { color: var(--apple-pink); }
.nav-item[href="#writing"].active, .nav-item[href="#writing"]:hover { color: var(--apple-red); }
.nav-item[href="#design"].active, .nav-item[href="#design"]:hover { color: var(--apple-orange); }
.nav-item[href="#video"].active, .nav-item[href="#video"]:hover { color: var(--apple-yellow); }
.nav-item[href="#productivity"].active, .nav-item[href="#productivity"]:hover { color: var(--apple-green); }
.nav-item[href="#research"].active, .nav-item[href="#research"]:hover { color: var(--apple-teal); }
.nav-item[href="#marketing"].active, .nav-item[href="#marketing"]:hover { color: var(--apple-blue); }
.nav-item[href="#education"].active, .nav-item[href="#education"]:hover { color: var(--apple-indigo); }

/* Category sections */
.category-section {
    padding: 2rem 0;
}

.category-section:nth-child(odd) {
    background-color: var(--apple-light-gray);
}

.category-section:nth-child(even) {
    background-color: white;
}

.category-header {
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 1rem;
}

.category-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.category-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    height: 2rem;
    width: 4px;
    border-radius: 2px;
}

/* Category indicator colors */
#conversation .category-header::before { background-color: var(--apple-blue); }
#programming .category-header::before { background-color: var(--apple-indigo); }
#music .category-header::before { background-color: var(--apple-purple); }
#translation .category-header::before { background-color: var(--apple-pink); }
#writing .category-header::before { background-color: var(--apple-red); }
#design .category-header::before { background-color: var(--apple-orange); }
#video .category-header::before { background-color: var(--apple-yellow); }
#productivity .category-header::before { background-color: var(--apple-green); }
#research .category-header::before { background-color: var(--apple-teal); }
#marketing .category-header::before { background-color: var(--apple-blue); }
#education .category-header::before { background-color: var(--apple-indigo); }

/* Card styles */
.tool-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.tool-card-header {
    padding: 1rem 1.25rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.tool-card-body {
    padding: 0.75rem 1.25rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.tool-card-body .detail-item {
    margin-bottom: 0.5rem;
}

.tool-card-body .detail-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.1rem;
}

.tool-card-footer {
    padding: 0.5rem 1.25rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating {
    display: flex;
    align-items: center;
}

.rating-stars {
    color: var(--apple-yellow);
    margin-right: 0.5rem;
    display: flex;
}

.rating-stars svg {
    width: 1rem;
    height: 1rem;
}

/* Tags */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--apple-light-gray);
    color: var(--apple-dark-gray);
}

/* Link styles */
a.tool-link {
    color: var(--apple-blue);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.tool-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Search results */
#searchResults {
    display: none;
    margin-top: 2rem;
}

#searchResults.active {
    display: block;
}

.highlight {
    background-color: rgba(255, 204, 0, 0.3);
    padding: 0 2px;
}

/* Hidden class for search filtering */
.hidden {
    display: none !important;
} 