/* Resources Page Specific Styles */
.resources-header {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)),
                url('https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding-top: 60px;
    position: relative;
    overflow: hidden;
}

.resources-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 0, 0, 0.1), transparent);
    animation: gradientMove 10s infinite linear;
}

.resources-header h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

.resources-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

.resources-main {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 60vh;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Active Navigation Link */
.nav-links a.active {
    color: var(--primary-color);
}

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

/* Device Cards */
.device-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.device-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.device-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}

.device-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.device-card h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.device-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Card Options */
.card-options, .firmware-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.option-btn, .firmware-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.option-btn:hover, .firmware-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateX(5px);
}

.option-btn i, .firmware-btn i {
    font-size: 1.2rem;
    margin: 0;
}

/* SubGHZ Files */
.subghz-files {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.file-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.file-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
}

.file-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.file-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.file-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.download-btn {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    padding: 0.6rem 1.2rem;
    border-radius: 5px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.05);
}

/* File Explorer */
.file-explorer {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    margin: 2rem auto;
    max-width: 800px;
    overflow: hidden;
}

.explorer-header {
    background: rgba(255, 0, 0, 0.1);
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.explorer-header h3 {
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.explorer-header i {
    color: var(--primary-color);
}

.file-list {
    padding: 0.5rem;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 0.8rem 1rem;
    border-radius: 5px;
    transition: all 0.2s;
    color: var(--text-primary);
    gap: 1rem;
}

.file-item:hover {
    background: rgba(255, 0, 0, 0.1);
}

.file-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.file-name {
    flex-grow: 1;
    font-family: 'Share Tech Mono', monospace;
}

.download-link {
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.2s;
}

.download-link:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: scale(1.1);
}

.download-link i {
    color: var(--primary-color);
}

/* Search Bar Styles */
.search-container {
    max-width: 800px;
    margin: 0 auto 2rem auto;
    padding: 0 1rem;
}

.search-bar, .explorer-search {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 25px;
    padding: 0.8rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s;
}

.search-bar:focus-within, .explorer-search:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

.search-bar i, .explorer-search i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.search-bar input, .explorer-search input {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    width: 100%;
    outline: none;
    font-family: 'Share Tech Mono', monospace;
}

.search-bar input::placeholder, .explorer-search input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Explorer Search Specific */
.explorer-search {
    background: rgba(0, 0, 0, 0.2);
    margin: 0.5rem 0;
}

/* Content Container Styles */
.content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Global Search Results */
.search-results {
    margin-top: 1rem;
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 10px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.search-results.active {
    max-height: 500px;
    padding: 1rem;
    margin-bottom: 2rem;
}

.result-item {
    padding: 0.8rem;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.result-item:last-child {
    border-bottom: none;
}

.result-item:hover {
    background: rgba(255, 0, 0, 0.1);
}

.result-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.result-info {
    flex-grow: 1;
}

.result-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.result-path {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: 'Share Tech Mono', monospace;
}

.result-item a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 5px;
    background: rgba(255, 0, 0, 0.1);
    transition: all 0.2s;
}

.result-item a:hover {
    background: rgba(255, 0, 0, 0.2);
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .resources-header {
        height: 30vh;
    }

    .resources-header h1 {
        font-size: 2.5rem;
    }

    .resources-main {
        padding: 2rem 1rem;
    }

    .device-cards, .subghz-files {
        grid-template-columns: 1fr;
    }
    
    .card-options, .firmware-options {
        padding: 0 1rem;
    }

    .file-explorer {
        margin: 1rem;
    }

    .file-item {
        padding: 0.8rem 0.5rem;
    }
    
    .content {
        padding: 10px;
    }
}
