/* Tools Index Styles - Matrix Portal */
/* Consistent with dashboard/leaderboard styling */

/* ============================================
   MAIN LAYOUT
   ============================================ */

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 5;
}

/* ============================================
   SUBTITLE
   ============================================ */

.subtitle {
    color: #0f0;
    font-size: 1.1em;
    margin: 10px 0 0 0;
    text-align: center;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

/* ============================================
   BREADCRUMB NAVIGATION
   ============================================ */

.breadcrumb {
    text-align: center;
    color: #0f0;
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
    margin: 20px 0 30px 0;
    padding: 10px;
}

.breadcrumb a {
    color: #0f0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb a:hover {
    color: #00ff44;
    text-shadow: 0 0 8px #0f0;
}

.separator {
    margin: 0 8px;
    color: #0f0;
}

/* ============================================
   TOOLS GRID
   ============================================ */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

/* ============================================
   TOOL CATEGORY CARDS
   ============================================ */

.tool-category {
    background: rgba(0, 17, 0, 0.8);
    border: 2px solid #0f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.tool-category:hover {
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.4);
    transform: translateY(-3px);
}

/* Category Title */
.category-title {
    color: #0f0;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    border-bottom: 2px solid #0f0;
    padding-bottom: 10px;
    text-shadow: 0 0 10px #0f0;
}

/* ============================================
   INDIVIDUAL TOOL CARDS
   ============================================ */

.tool-card {
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.tool-card:last-child {
    margin-bottom: 0;
}

.tool-card:hover {
    border-color: #0f0;
    background: rgba(0, 17, 0, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.2);
    transform: translateX(5px);
}

/* Tool Header - Flexbox Layout */
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.tool-card h3 {
    color: #0f0;
    font-size: 1.15em;
    margin: 0;
    font-family: 'Courier New', monospace;
    text-shadow: 0 0 5px rgba(0, 255, 0, 0.5);
}

.tool-card p {
    color: #0cc;
    margin: 8px 0 12px 0;
    line-height: 1.5;
    font-size: 0.95em;
}

/* ============================================
   TOOL META - BADGES
   ============================================ */

.tool-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tool-meta span {
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* Difficulty Levels */
.difficulty {
    border: 1px solid;
}

.difficulty.easy {
    color: #0f0;
    border-color: #0f0;
    background: rgba(0, 255, 0, 0.15);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

.difficulty.medium {
    color: #ff0;
    border-color: #ff0;
    background: rgba(255, 255, 0, 0.15);
    box-shadow: 0 0 5px rgba(255, 255, 0, 0.3);
}

.difficulty.hard {
    color: #f60;
    border-color: #f60;
    background: rgba(255, 102, 0, 0.15);
    box-shadow: 0 0 5px rgba(255, 102, 0, 0.3);
}

/* Type Badge */
.type {
    color: #0cf;
    background: rgba(0, 204, 255, 0.15);
    border: 1px solid #0cf;
    box-shadow: 0 0 5px rgba(0, 204, 255, 0.2);
}

/* ============================================
   TOOL LAUNCH BUTTON
   ============================================ */

.tool-link {
    display: inline-block;
    color: #0f0;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border: 2px solid #0f0;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(0, 255, 0, 0.05);
}

.tool-link:hover {
    background: #0f0;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

.tool-link:active {
    transform: translateY(0);
}

/* ============================================
   FOOTER
   ============================================ */

.tools-footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 2px solid #0f0;
    color: #0cc;
    background: rgba(0, 17, 0, 0.4);
    border-radius: 8px;
}

.tools-footer p {
    margin: 8px 0;
    font-size: 1em;
}

.tools-footer code {
    background: rgba(0, 255, 0, 0.15);
    padding: 3px 8px;
    border-radius: 4px;
    color: #0f0;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(0, 255, 0, 0.3);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.tool-card {
    animation: slideInLeft 0.4s ease-out forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.05s; }
.tool-card:nth-child(2) { animation-delay: 0.1s; }
.tool-card:nth-child(3) { animation-delay: 0.15s; }
.tool-card:nth-child(4) { animation-delay: 0.2s; }
.tool-card:nth-child(5) { animation-delay: 0.25s; }
.tool-card:nth-child(6) { animation-delay: 0.3s; }

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 992px) {
    main {
        padding: 15px;
    }
    
    .tools-grid {
        gap: 18px;
    }
}

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tool-category {
        padding: 15px;
    }
    
    .category-title {
        font-size: 1.3em;
    }
    
    .tool-card {
        padding: 12px;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .tool-meta {
        margin-top: 5px;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .breadcrumb {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    main {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 0.95em;
    }
    
    .tool-card h3 {
        font-size: 1em;
    }
    
    .tool-card p {
        font-size: 0.9em;
    }
    
    .tool-link {
        font-size: 0.85em;
        padding: 7px 14px;
    }
}