/* .htaccess Generator Shared Styles */

/* Header Gradient - matching WhatsApp Link Generator style */
.header-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Glass Card Effect */
.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Code Block */
.code-block-wrapper {
    position: relative;
    margin-bottom: 30px;
}

.code-block {
    background: #2d3436;
    color: #dfe6e9;
    padding: 25px;
    border-radius: 12px;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
    font-size: 0.95rem;
    line-height: 1.5;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.copy-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 44px;
    font-size: 0.9rem;
}

.copy-btn:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.copy-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Info Section */
.info-section {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #e1e8ed;
}

.info-section h3 {
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-section h5 {
    color: #2d3436;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.info-section p {
    color: #636e72;
    line-height: 1.6;
}

/* Warning Box */
.warning-box {
    background: #fff9db;
    border-left: 5px solid #fab005;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 0 12px 12px 0;
    color: #856404;
}

.warning-box h5 {
    color: #856404;
    font-weight: 700;
}

.warning-box code {
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}

/* Framework Links */
.framework-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.framework-links a {
    background: #f8f9fa;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none;
    color: #495057;
    font-size: 0.95rem;
    font-weight: 600;
    border: 2px solid #dee2e6;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.framework-links a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.framework-links a i {
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    margin-top: 60px;
}

.faq-section > h3 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2d3436;
    font-weight: 700;
    font-size: 2rem;
}

.faq-item {
    background: white;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-item h4 {
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 1.15rem;
}

.faq-item p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 0;
}

.faq-item ul {
    color: #636e72;
    margin-top: 12px;
    padding-left: 20px;
}

.faq-item ul li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.faq-item code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74c3c;
    font-weight: 600;
}

/* Educational Layer */
.educational-layer {
    margin-top: 50px;
    border-radius: 12px;
}

.educational-layer h3 {
    margin-bottom: 2rem;
    color: #2d3436;
    font-weight: 700;
}

.list-group-item {
    border-radius: 12px !important;
    margin-bottom: 12px;
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
    padding: 20px;
}

.list-group-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

.list-group-item h5 {
    color: #2d3436;
    font-weight: 700;
    margin-bottom: 8px;
}

.list-group-item p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 0;
}

.list-group-item code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
    color: #e74c3c;
}

/* Badges */
.badge-critical {
    background-color: #ff7675;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-recommended {
    background-color: #55efc4;
    color: #006266;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
    .htaccess-generator {
        padding: 20px 15px;
    }

    .code-block {
        padding: 20px 15px;
        font-size: 0.85rem;
    }

    .copy-btn {
        position: static;
        width: 100%;
        margin-top: 15px;
    }

    .framework-links {
        flex-direction: column;
    }

    .framework-links a {
        width: 100%;
        justify-content: center;
    }

    .info-section,
    .warning-box,
    .faq-item {
        padding: 20px;
    }

    .faq-section > h3 {
        font-size: 1.5rem;
    }
}

/* Accordion styles for FAQ if needed */
.accordion-button {
    background: white;
    color: #2d3436;
    font-weight: 700;
    padding: 1.25rem;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
    border-color: #667eea;
}

.accordion-body {
    padding: 1.25rem;
    color: #636e72;
    line-height: 1.6;
}

.accordion-item {
    border: 1px solid #e1e8ed;
    border-radius: 12px !important;
    margin-bottom: 12px;
    overflow: hidden;
}

.accordion-item:first-of-type .accordion-button {
    border-radius: 12px;
}

.accordion-button::after {
    filter: brightness(0) invert(1);
}

.accordion-button.collapsed::after {
    filter: none;
}

