/**
 * SpeckiTime Tutorial Styles
 * 
 * Zentrale Stylesheet-Datei für alle Tutorial-Seiten
 */

/* Command Copy Funktionalität */
.command-container {
    position: relative;
    margin-bottom: 15px;
    background-color: rgba(13, 13, 26, 0.7);
    border-radius: 5px;
    overflow: hidden;
}

.command {
    color: var(--neon-yellow);
    position: relative;
    padding: 12px 15px 12px 35px;
    overflow-x: auto;
    white-space: nowrap;
    font-family: var(--mono-font);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

.command::before {
    content: '>';
    position: absolute;
    left: 15px;
    color: var(--neon-turquoise);
}

.copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 245, 212, 0.2);
    border: none;
    color: var(--neon-turquoise);
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.command-container:hover .copy-btn {
    opacity: 1;
}

.copy-btn:hover {
    background: rgba(0, 245, 212, 0.4);
}

.response {
    color: var(--text-dim);
    padding: 8px 15px;
    margin: 0;
    font-family: var(--mono-font);
    font-size: 0.9rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Hinweis-Boxen */
.info-box,
.warning-box,
.tip-box {
    margin: 25px 0;
    padding: 25px 25px 25px 70px;
    border-radius: 10px;
    position: relative;
}

.info-box h4,
.warning-box h4,
.tip-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.info-box {
    background: rgba(58, 134, 255, 0.1);
    border: 1px solid rgba(58, 134, 255, 0.3);
}

.info-box h4 {
    color: var(--neon-blue);
}

.info-box::before {
    content: '\f05a';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 1.8rem;
    color: var(--neon-blue);
}

.warning-box {
    background: rgba(255, 209, 0, 0.1);
    border: 1px solid rgba(255, 209, 0, 0.3);
}

.warning-box h4 {
    color: var(--neon-yellow);
}

.warning-box::before {
    content: '\f071';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 1.8rem;
    color: var(--neon-yellow);
}

.tip-box {
    background: rgba(0, 245, 212, 0.1);
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.tip-box h4 {
    color: var(--neon-turquoise);
}

.tip-box::before {
    content: '\f0eb';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 25px;
    top: 25px;
    font-size: 1.8rem;
    color: var(--neon-turquoise);
}

/* Feedback-Bereich */
.feedback-section {
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.feedback-question {
    text-align: center;
    margin-bottom: 20px;
}

.feedback-question h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.feedback-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.feedback-btn {
    background: transparent;
    border: 1px solid var(--text-dim);
    color: var(--text-dim);
    padding: 8px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    border-color: var(--neon-turquoise);
    color: var(--neon-turquoise);
}

.feedback-btn.positive:hover {
    border-color: #27C93F;
    color: #27C93F;
}

.feedback-btn.negative:hover {
    border-color: #FF5F56;
    color: #FF5F56;
}

.feedback-form {
    max-width: 600px;
    margin: 0 auto;
    display: none;
}

.feedback-form.active {
    display: block;
}

.feedback-success {
    text-align: center;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.feedback-success h3 {
    color: #27C93F;
    margin-bottom: 10px;
}

.feedback-error {
    background: rgba(255, 95, 86, 0.1);
    border: 1px solid rgba(255, 95, 86, 0.3);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    color: #FF5F56;
}

/* Verbesserte Lesbarkeit für Text */
.tutorial-text {
    font-size: 1.05rem;
    line-height: 1.8;
}

.tutorial-text p {
    margin-bottom: 1.5em;
}

.tutorial-text ul li, 
.tutorial-text ol li {
    margin-bottom: 0.8em;
}

/* Tutorial-Container und Sidebar */
.tutorial-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 50px;
}

/* Mehr Abstand für den Breadcrumb-Bereich */
.tutorial-header {
    margin-top: 150px;
    padding-top: 40px;
}

.tutorial-breadcrumb {
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--text-dim);
}

.tutorial-main {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

/* Verbesserte Bildskalierung */
.tutorial-image {
    width: 100%;
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

.tutorial-image img {
    width: 100%;
    display: block;
    object-fit: contain;
    max-height: 400px;
    transition: transform 0.3s ease;
}

.tutorial-sidebar {
    position: sticky;
    top: 100px;
    align-self: flex-start;
}

.sidebar-widget {
    background: rgba(20, 20, 40, 0.7);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 245, 212, 0.1);
}

/* Inhaltsverzeichnis */
.toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc ul li {
    margin-bottom: 10px;
    padding-left: 15px;
    position: relative;
    border-left: 2px solid rgba(0, 245, 212, 0.2);
    transition: all 0.3s ease;
}

.toc ul li:hover {
    border-left-color: var(--neon-turquoise);
}

.toc ul li a {
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.3s ease;
    display: block;
    padding: 5px 0;
    font-size: 0.95rem;
}

.toc ul li a:hover {
    color: var(--neon-turquoise);
    transform: translateX(5px);
}

/* Tutorial Tags */
.tutorial-tags {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: rgba(0, 245, 212, 0.1);
    color: var(--neon-turquoise);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-block;
}

/* Crontab Generator Styles */
.crontab-generator {
    background: rgba(20, 20, 40, 0.9);
    border-radius: 10px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid rgba(0, 245, 212, 0.3);
}

.crontab-generator h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: var(--neon-turquoise);
}

.crontab-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.crontab-group {
    margin-bottom: 15px;
}

.crontab-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.crontab-group select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(0, 245, 212, 0.2);
    color: var(--text-bright);
    border-radius: 5px;
}

.crontab-command {
    grid-column: 1 / -1;
}

.crontab-command input {
    width: 100%;
    padding: 10px;
    background: rgba(13, 13, 26, 0.8);
    border: 1px solid rgba(0, 245, 212, 0.2);
    color: var(--text-bright);
    border-radius: 5px;
}

.crontab-result {
    margin-top: 20px;
    padding: 15px;
    background: rgba(13, 13, 26, 0.7);
    border-radius: 5px;
    font-family: var(--mono-font);
    position: relative;
}

.crontab-expression {
    color: var(--neon-yellow);
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.crontab-explanation {
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.5;
}

.generate-btn {
    background: linear-gradient(45deg, var(--neon-turquoise), var(--neon-blue));
    color: #0D0D1A;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 245, 212, 0.3);
}

/* Responsive Anpassungen */
@media (max-width: 1024px) {
    .tutorial-container {
        grid-template-columns: 1fr;
    }
    
    .tutorial-sidebar {
        position: static;
        margin-top: 50px;
    }
    
    .crontab-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .feedback-buttons {
        flex-direction: column;
    }
}
