/* Linux Commands Page Specific Styles */

/* Search Bar */
.search-container {
    max-width: 600px;
    margin: 2rem auto 3rem;
    text-align: center;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: var(--border-radius);
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
    background: white;
}

.search-icon {
    color: var(--accent);
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    padding: 0.75rem 0;
    font-family: 'Inter', sans-serif;
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-clear {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.search-clear:hover {
    color: var(--accent);
}

.search-hint {
    margin-top: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Category Sections */
.category-section {
    margin-bottom: 3rem;
}

.category-section:last-child {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 3px solid var(--accent-light);
    padding-bottom: 0.5rem;
}

.section-title i {
    color: var(--accent);
}

/* Commands Grid */
.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.command-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(234, 88, 12, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.command-card::before {
    content: '$';
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: rgba(234, 88, 12, 0.1);
    font-family: monospace;
    font-weight: bold;
}

.command-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.command-name {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.command-desc {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.4;
}

.command-example {
    background: rgba(234, 88, 12, 0.05);
    border-left: 3px solid var(--accent);
    padding: 0.75rem;
    border-radius: 0 4px 4px 0;
    font-family: 'Courier New', monospace;
}

.command-example code {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.example-desc {
    display: block;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-style: italic;
}

/* Quick Reference */
.quick-reference {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(234, 88, 12, 0.2);
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.reference-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(234, 88, 12, 0.1);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    backdrop-filter: blur(5px);
}

.reference-card h3 {
    color: var(--accent);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
}

.reference-card ul {
    list-style: none;
    padding: 0;
}

.reference-card li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(234, 88, 12, 0.1);
    color: var(--text-primary);
}

.reference-card li:last-child {
    border-bottom: none;
}

.reference-card code {
    background: rgba(234, 88, 12, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 600;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: none;
}

.no-results.show {
    display: block;
}

/* Copy to Clipboard Effect */
.copy-notification {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    z-index: 1000;
    animation: slideUp 0.3s ease, fadeOut 0.3s ease 2s forwards;
}
/* AufgabenInfopass Styles */

/* Header mit zwei Buttons */
.header .back-button {
    display: inline-block;
    margin-top: 1rem;
}

/* Aufgaben Content */
.aufgaben-content {
    max-width: 800px;
    margin: 0 auto;
}

.aufgaben-info {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 2px solid rgba(234, 88, 12, 0.15);
}

.aufgaben-info h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aufgaben-info p {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Aufgaben Container */
.aufgaben-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Aufgabe Card */
.aufgabe-card {
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(234, 88, 12, 0.15);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.aufgabe-card:hover {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(234, 88, 12, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.aufgabe-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.aufgabe-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.3rem;
}

/* Checkbox Styling */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    height: 28px;
    width: 28px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.checkbox-container:hover input ~ .checkmark {
    border-color: var(--accent);
    background-color: rgba(234, 88, 12, 0.1);
}

.checkbox-container input:checked ~ .checkmark {
    background-color: var(--accent);
    border-color: var(--accent);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 9px;
    top: 5px;
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

/* Aufgabe Body */
.aufgabe-body {
    color: var(--text-primary);
}

.aufgabe-body p {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.aufgabe-body code {
    background: rgba(234, 88, 12, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-weight: 600;
}

.small-note {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    border-left: 3px solid #f59e0b;
}

.website-link {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(234, 88, 12, 0.1);
    border: 2px solid rgba(234, 88, 12, 0.2);
    border-radius: 8px;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.website-link:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Fortschritt */
.fortschritt-container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    text-align: center;
    border: 2px solid rgba(234, 88, 12, 0.15);
}

.fortschritt-bar {
    height: 12px;
    background: rgba(234, 88, 12, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.fortschritt-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 6px;
    width: 0%;
    transition: width 0.5s ease;
}

.fortschritt-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.fortschritt-text p {
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.reset-btn {
    padding: 0.6rem 1.2rem;
    background: rgba(234, 88, 12, 0.1);
    border: 2px solid rgba(234, 88, 12, 0.3);
    border-radius: 8px;
    color: var(--accent);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
}

.reset-btn:hover {
    background: rgba(234, 88, 12, 0.2);
    border-color: var(--accent);
    transform: translateY(-2px);
}

/* Navigation */
.aufgaben-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.nav-link-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 2px solid rgba(234, 88, 12, 0.15);
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
}

.nav-link-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.nav-link-btn.primary {
    background: rgba(234, 88, 12, 0.1);
    border-color: rgba(234, 88, 12, 0.3);
    color: var(--accent);
    font-weight: 600;
}

.nav-link-btn.primary:hover {
    background: rgba(234, 88, 12, 0.2);
}

/* Responsive */
@media (max-width: 768px) {
    .aufgabe-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .checkbox-container {
        align-self: flex-end;
    }
    
    .fortschritt-text {
        flex-direction: column;
        text-align: center;
    }
    
    .aufgaben-navigation {
        flex-direction: column;
    }
    
    .nav-link-btn {
        min-width: auto;
    }
    
    .header .back-button {
        display: block;
        margin: 0.5rem 0;
    }
}


@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .commands-grid {
        grid-template-columns: 1fr;
    }
    
    .reference-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .command-card {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    .search-input {
        font-size: 1rem;
    }
    
    .command-name {
        font-size: 1.3rem;
    }
}