/**
 * SnippetSniper Frontend Styles
 */

/* FAQ Styles */
.snippetsniper-faq {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.snippetsniper-faq h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.snippetsniper-faq .faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.snippetsniper-faq .faq-item {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    transition: box-shadow 0.2s ease;
}

.snippetsniper-faq .faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.snippetsniper-faq .faq-question {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #495057;
    font-size: 1.1em;
}

.snippetsniper-faq .faq-answer {
    color: #6c757d;
    line-height: 1.6;
}

/* HowTo Styles */
.snippetsniper-howto {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.snippetsniper-howto h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.snippetsniper-howto .howto-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snippetsniper-howto .howto-step {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 10px;
    position: relative;
    padding-left: 50px;
}

.snippetsniper-howto .howto-step:before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 15px;
    top: 15px;
    background: #007bff;
    color: #fff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.snippetsniper-howto .howto-steps {
    counter-reset: step-counter;
}

.snippetsniper-howto .howto-step h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 1.1em;
}

.snippetsniper-howto .howto-step p {
    margin: 0;
    color: #6c757d;
    line-height: 1.6;
}

/* List Styles */
.snippetsniper-list {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.snippetsniper-list h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.snippetsniper-list .snippet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.snippetsniper-list .snippet-list li {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 12px 15px;
    margin-bottom: 8px;
    position: relative;
    padding-left: 40px;
    transition: box-shadow 0.2s ease;
}

.snippetsniper-list .snippet-list li:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.snippetsniper-list .snippet-list li:before {
    content: "•";
    position: absolute;
    left: 15px;
    top: 12px;
    color: #007bff;
    font-weight: bold;
    font-size: 18px;
}

/* Table Styles */
.snippetsniper-table {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
}

.snippetsniper-table h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.2em;
}

.snippetsniper-table table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.snippetsniper-table th,
.snippetsniper-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.snippetsniper-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.snippetsniper-table tr:hover {
    background: #f8f9fa;
}

/* Block Styles */
.snippetsniper-faq-block,
.snippetsniper-howto-block,
.snippetsniper-list-block {
    margin: 20px 0;
}

.snippetsniper-faq-block h3,
.snippetsniper-howto-block h3,
.snippetsniper-list-block h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.3em;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .snippetsniper-faq,
    .snippetsniper-howto,
    .snippetsniper-list,
    .snippetsniper-table {
        margin: 15px 0;
        padding: 15px;
    }
    
    .snippetsniper-howto .howto-step {
        padding-left: 40px;
    }
    
    .snippetsniper-howto .howto-step:before {
        left: 10px;
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    .snippetsniper-list .snippet-list li {
        padding-left: 35px;
    }
    
    .snippetsniper-list .snippet-list li:before {
        left: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .snippetsniper-faq,
    .snippetsniper-howto,
    .snippetsniper-list,
    .snippetsniper-table {
        background: #1e1e1e;
        border-color: #444;
        color: #fff;
    }
    
    .snippetsniper-faq .faq-item,
    .snippetsniper-howto .howto-step,
    .snippetsniper-list .snippet-list li {
        background: #2a2a2a;
        border-color: #444;
        color: #fff;
    }
    
    .snippetsniper-faq .faq-question,
    .snippetsniper-howto .howto-step h4 {
        color: #fff;
    }
    
    .snippetsniper-faq .faq-answer,
    .snippetsniper-howto .howto-step p {
        color: #ccc;
    }
    
    .snippetsniper-table th {
        background: #2a2a2a;
        color: #fff;
    }
    
    .snippetsniper-table tr:hover {
        background: #2a2a2a;
    }
}

/* Print Styles */
@media print {
    .snippetsniper-faq,
    .snippetsniper-howto,
    .snippetsniper-list,
    .snippetsniper-table {
        background: #fff !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
    
    .snippetsniper-faq .faq-item,
    .snippetsniper-howto .howto-step,
    .snippetsniper-list .snippet-list li {
        background: #fff !important;
        border: 1px solid #000 !important;
        color: #000 !important;
    }
}