/* Agents Theme - Additional Styles for Agents Page */

/* Project Card Specific Styles */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '🤖';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.2em;
    opacity: 0.3;
    z-index: 1;
}

/* Tech Stack Styles */
.tech-stack {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.tech-stack h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.tech-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    border-color: var(--accent-color);
}

/* Features List Styles */
.features-list {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
}

.features-list h4 {
    margin: 0 0 0.5rem 0;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 600;
}

.features-list ul {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.features-list li {
    position: relative;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-color-secondary);
}

.features-list li::before {
    content: '✨';
    position: absolute;
    left: -1.2rem;
    top: 0;
}

/* Difficulty Indicator */
.difficulty-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.difficulty-indicator::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent
    );
    transition: left 0.5s ease;
}

.difficulty-indicator:hover::before {
    left: 100%;
}

/* Meta Item Specific Styles */
.meta-difficulty {
    background: linear-gradient(135deg, #FF9800, #F57C00) !important;
}

.meta-stars {
    background: linear-gradient(135deg, #FFD700, #FFA000) !important;
}

.meta-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
}

/* Agents page should inherit styles from main theme */

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

/* Card overlay link (делает всю карточку кликабельной) */
.card-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    text-decoration: none;
    background: transparent;
    /* Чтобы не мешать внутренним элементам */
    cursor: pointer;
}

/* Сохраняем интерактивность внутренних кнопок/ссылок */
.project-card .gradient-button,
.project-card a.resource-link {
    position: relative;
    z-index: 3;
}

/* Loading Indicator inherits from main theme */

/* Keep project-specific styles minimal */

/* Remove preloader - not needed */

/* Responsive Design */
@media (max-width: 768px) {
    .hero-visual {
        display: none;
    }
    
    .floating-elements {
        display: none;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .tech-tags {
        gap: 0.3rem;
    }
    
    .tech-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .search-input-container {
        max-width: 100%;
    }
    
    .search-button {
        padding: 0.8rem 1rem;
        margin-left: 5px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stat {
        width: 100%;
        text-align: center;
    }
}

/* Dark/Light Theme Toggle Support */
@media (prefers-color-scheme: light) {
    .tech-stack,
    .features-list {
        background: rgba(0, 0, 0, 0.05);
        border-left-color: var(--primary-color);
    }
    
    .floating-card {
        background: rgba(255, 255, 255, 0.9);
        color: var(--text-color);
        backdrop-filter: blur(10px);
    }
    
    .stat-item {
        background: rgba(0, 0, 0, 0.05);
    }
}

/* Print Styles */
@media print {
    .hero-visual,
    .floating-elements,
    .search-bar,
    #preloader {
        display: none !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        break-inside: avoid;
        margin-bottom: 2rem;
    }
}

/* Resource Button Styles */
.resource-button {
    background: var(--accent-grad);
    color: white;
    border: none;
    border-radius: var(--border-radius-small);
    padding: 4px 8px;
    font-size: var(--font-size-xs);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
}

.resource-button:hover {
    filter: brightness(110%);
    transform: translateY(-1px);
}

.resource-button:active {
    transform: translateY(0);
}

.resource-link {
    font-size: var(--font-size-xs);
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: var(--border-radius-small);
    transition: all 0.3s ease;
}

.resource-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
} 