/* Toolkit Page Specific Styles */

/* Enhanced Toolkit Categories */
.toolkit-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

.toolkit-category {
    background: linear-gradient(135deg, rgba(0, 20, 0, 0.9), rgba(0, 40, 0, 0.8));
    border: 2px solid rgba(0, 255, 65, 0.4);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 255, 65, 0.1);
}

.toolkit-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    transition: left 0.8s ease;
}

.toolkit-category:hover::before {
    left: 100%;
}

.toolkit-category:hover {
    border-color: var(--matrix-green);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 255, 65, 0.3), 0 0 50px rgba(0, 255, 65, 0.1);
    background: linear-gradient(135deg, rgba(0, 30, 0, 0.95), rgba(0, 50, 0, 0.9));
}

.category-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(0, 255, 65, 0.5);
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
}

.tools-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Enhanced Tool Items */
.tool-item {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 20, 0, 0.6));
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tool-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--matrix-green), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.tool-item:hover {
    border-color: var(--matrix-green);
    background: linear-gradient(135deg, rgba(0, 255, 65, 0.1), rgba(0, 40, 0, 0.8));
    transform: translateX(8px) translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 255, 65, 0.2), 0 0 20px rgba(0, 255, 65, 0.1);
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.tool-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    letter-spacing: 0.5px;
}

.tool-status {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tool-status.available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}

.tool-status.beta {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
}

.tool-status.coming-soon {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: #d1d5db;
    border-color: #6b7280;
}

.tool-description {
    color: var(--gray-300);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.tool-action-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-action-btn.available {
    background: var(--matrix-green);
    color: #000;
}

.tool-action-btn.available:hover {
    background: #00cc33;
    transform: translateY(-2px);
}

.tool-action-btn.beta {
    background: #f59e0b;
    color: white;
}

.tool-action-btn.beta:hover {
    background: #d97706;
}

.tool-action-btn.disabled {
    background: #6b7280;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Featured Tool Section */
.featured-tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.featured-tool-info {
    display: flex;
    flex-direction: column;
}

.featured-tool-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 1rem;
}

.featured-tool-description {
    color: var(--gray-300);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.features-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.features-list li {
    color: var(--gray-300);
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}

.features-list li::before {
    content: '✓';
    color: var(--matrix-green);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.featured-tool-btn {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--matrix-green), var(--cyber-blue));
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.featured-tool-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 255, 65, 0.3);
}

/* Terminal Demo */
.featured-tool-demo {
    background: rgba(0, 0, 0, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 65, 0.3);
    overflow: hidden;
}

.demo-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1rem;
    padding: 1rem 1rem 0;
}

.terminal-demo {
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.terminal-buttons {
    display: flex;
    gap: 0.5rem;
}

.terminal-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-btn.close {
    background: #ff5f56;
}

.terminal-btn.minimize {
    background: #ffbd2e;
}

.terminal-btn.maximize {
    background: #27ca3f;
}

.terminal-title {
    color: #ffffff;
    font-size: 0.875rem;
    font-weight: 500;
}

.terminal-content {
    padding: 1rem;
    background: #000;
    color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.4;
    min-height: 200px;
    overflow-y: auto;
}

.terminal-line {
    margin-bottom: 0.25rem;
    white-space: pre-wrap;
}

.terminal-prompt {
    color: var(--matrix-green);
}

.terminal-info {
    color: #60a5fa;
}

.terminal-warning {
    color: #fbbf24;
}

.terminal-error {
    color: #ef4444;
}

.terminal-success {
    color: var(--matrix-green);
}

.terminal-cursor {
    background: var(--matrix-green);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Tool Search and Filter */
.tool-search-container {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 12px;
    padding: 2rem;
}

.search-filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.search-group {
    display: flex;
    gap: 0.5rem;
}

.search-input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--matrix-green);
    box-shadow: 0 0 0 2px rgba(0, 255, 65, 0.1);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-btn {
    padding: 0.75rem;
    background: var(--matrix-green);
    color: #000;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #00cc33;
}

.search-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 1rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--matrix-green);
}

.filter-select option {
    background: #000;
    color: #ffffff;
}

/* Search Results */
.search-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.search-result-item {
    background: rgba(0, 255, 65, 0.05);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.result-name {
    font-weight: bold;
    color: #ffffff;
}

.result-category {
    font-size: 0.75rem;
    color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.result-description {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.result-action {
    width: 100%;
    padding: 0.5rem;
    background: var(--matrix-green);
    color: #000;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.result-action:hover {
    background: #00cc33;
}

/* Documentation Grid */
.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doc-category {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.doc-category:hover {
    border-color: var(--matrix-green);
    transform: translateY(-5px);
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.doc-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--matrix-green);
    margin-bottom: 1rem;
}

.doc-description {
    color: var(--gray-300);
    margin-bottom: 1.5rem;
}

.doc-links {
    list-style: none;
    padding: 0;
}

.doc-links li {
    margin-bottom: 0.5rem;
}

.doc-link {
    color: var(--cyber-blue);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.doc-link:hover {
    color: var(--matrix-green);
    text-decoration: underline;
}

/* Download Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.show {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(0, 20, 0, 0.95);
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 16px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    backdrop-filter: blur(20px);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.modal-header h2 {
    color: var(--matrix-green);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: var(--gray-400);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 2rem;
}

.download-info {
    text-align: center;
}

.tool-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.download-info h3 {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.download-info p {
    color: var(--gray-300);
    margin-bottom: 2rem;
}

.download-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    text-align: left;
}

.download-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.download-option:hover {
    border-color: var(--matrix-green);
    background: rgba(0, 255, 65, 0.05);
}

.download-option input[type="radio"] {
    accent-color: var(--matrix-green);
}

.download-option label {
    color: #ffffff;
    cursor: pointer;
    flex: 1;
}

.download-requirements {
    text-align: left;
    background: rgba(0, 0, 0, 0.4);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.download-requirements h4 {
    color: var(--matrix-green);
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.download-requirements ul {
    list-style: none;
    padding: 0;
}

.download-requirements li {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.download-requirements li::before {
    content: '•';
    color: var(--matrix-green);
    position: absolute;
    left: 0;
}

.modal-footer {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(0, 255, 65, 0.2);
}

.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--matrix-green);
    color: #000;
}

.btn-primary:hover {
    background: #00cc33;
}

.btn-secondary {
    background: transparent;
    color: var(--matrix-green);
    border: 1px solid var(--matrix-green);
}

.btn-secondary:hover {
    background: var(--matrix-green);
    color: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toolkit-categories {
        grid-template-columns: 1fr;
    }
    
    .featured-tool-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-filters {
        gap: 1rem;
    }
    
    .filter-group {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .search-results {
        grid-template-columns: 1fr;
    }
    
    .documentation-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .download-options {
        gap: 0.75rem;
    }
    
    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .toolkit-category {
        padding: 1.5rem;
    }
    
    .tool-item {
        padding: 1rem;
    }
    
    .tool-search-container {
        padding: 1rem;
    }
    
    .search-group {
        flex-direction: column;
    }
    
    .terminal-content {
        font-size: 0.75rem;
        padding: 0.75rem;
    }
}

/* Loading States */
.tool-action-btn.loading {
    position: relative;
    color: transparent;
}

.tool-action-btn.loading::after {
    content: '';
    position: absolute;
    width: 1rem;
    height: 1rem;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Animations */
.toolkit-category {
    animation: fadeInUp 0.6s ease forwards;
}

.toolkit-category:nth-child(1) { animation-delay: 0.1s; }
.toolkit-category:nth-child(2) { animation-delay: 0.2s; }
.toolkit-category:nth-child(3) { animation-delay: 0.3s; }

/* Accessibility */
.tool-action-btn:focus-visible,
.search-btn:focus-visible,
.filter-select:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--matrix-green);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .toolkit-category,
    .tool-item,
    .modal-content {
        border-width: 2px;
        background: rgba(0, 0, 0, 0.95);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .terminal-cursor {
        animation: none;
    }
    
    * {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}