/* Directory Page Specific Styles */

.nav-link.active {
    color: #00d4ff;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00d4ff;
}

/* Directory Header */
.directory-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
    padding: 120px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.directory-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.directory-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #00d4ff, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
}

.directory-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Directory Controls */
.directory-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.filters {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-group select {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 12px;
    color: #ffffff;
    font-size: 0.9rem;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.filter-group select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.filter-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px;
}

.view-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.view-btn.active,
.view-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

/* Tools Directory */
.tools-directory {
    padding: 60px 0;
    background: #111111;
}

.directory-stats {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.separator {
    color: rgba(255, 255, 255, 0.3);
}

/* Tools Grid Layout */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Tools List Layout */
.tools-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tool-card.list-view {
    display: flex;
    align-items: center;
    padding: 20px;
    text-align: left;
    gap: 20px;
}

.tool-card.list-view .tool-logo {
    margin: 0;
    flex-shrink: 0;
}

.tool-card.list-view .tool-content {
    flex: 1;
}

.tool-card.list-view .tool-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    flex-shrink: 0;
}

.tool-card.list-view h3 {
    margin-bottom: 8px;
    font-size: 1.3rem;
}

.tool-card.list-view p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.tool-card.list-view .tool-tags {
    justify-content: flex-start;
    margin-bottom: 0;
}

.tool-card.list-view .tool-link {
    margin-top: 0;
}

/* Enhanced Tool Card Styles */
.tool-card {
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-card.featured::after {
    content: '精選';
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff6b6b, #ff5252);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
}

/* Sora Spotlight Section */
.sora-spotlight {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.sora-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.1), transparent 50%);
}

.spotlight-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.spotlight-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.spotlight-text p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 30px;
}

.spotlight-features {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}

.feature i {
    color: #00d4ff;
    font-size: 1.1rem;
}

.spotlight-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    color: #ffffff;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.spotlight-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

.spotlight-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.sora-logo {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #00d4ff, #0099cc);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 3rem;
    font-weight: 800;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.4);
    animation: soraFloat 3s ease-in-out infinite;
}

.sora-logo span {
    font-size: 1.2rem;
    margin-top: 10px;
}

@keyframes soraFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.no-results i {
    font-size: 4rem;
    color: rgba(0, 212, 255, 0.5);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.no-results p {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .spotlight-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .spotlight-features {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .directory-header h1 {
        font-size: 2.5rem;
    }
    
    .directory-controls {
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
    }
    
    .filters {
        justify-content: center;
    }
    
    .view-toggle {
        align-self: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card.list-view {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .tool-card.list-view .tool-meta {
        align-items: center;
    }
    
    .spotlight-text h2 {
        font-size: 2rem;
    }
    
    .spotlight-features {
        flex-direction: column;
        gap: 15px;
    }
    
    .sora-logo {
        width: 150px;
        height: 150px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .directory-header {
        padding: 100px 0 40px;
    }
    
    .directory-header h1 {
        font-size: 2rem;
    }
    
    .filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .spotlight-text h2 {
        font-size: 1.8rem;
    }
    
    .sora-logo {
        width: 120px;
        height: 120px;
        font-size: 1.5rem;
    }
    
    .sora-logo span {
        font-size: 1rem;
    }
}