@import url('main.css');

.docs-container {
    max-width: 900px;
    margin: 100px auto 2rem;
    padding: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.docs-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
}

.docs-header h1 {
    font-size: 2.5rem;
    color: #ff4444;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.5);
}

.docs-nav {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0505 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.docs-nav h2 {
    color: #ff4444;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.docs-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    list-style: none;
}

.docs-list li a {
    display: block;
    padding: 1rem;
    background: #0a0a0a;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 10px;
    color: #f5f5f5;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.docs-list li a::before {
    content: '📄';
    margin-right: 0.5rem;
}

.docs-list li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 68, 68, 0.2), transparent);
    transition: left 0.5s;
}

.docs-list li a:hover::after {
    left: 100%;
}

.docs-list li a:hover {
    background: linear-gradient(135deg, #1a0505 0%, #2a0505 100%);
    border-color: #ff4444;
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.4);
}

.docs-content {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0505 100%);
    padding: 3rem;
    border-radius: 15px;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
    line-height: 1.8;
}

.docs-content h1 {
    color: #ff4444;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(220, 38, 38, 0.3);
    text-shadow: 0 0 20px rgba(255, 68, 68, 0.3);
}

.docs-content h2 {
    color: #ff4444;
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1rem;
}

.docs-content h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    border-radius: 2px;
}

.docs-content h3 {
    color: #ff6666;
    font-size: 1.5rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.docs-content h4 {
    color: #ff8888;
    font-size: 1.2rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.docs-content p {
    color: #d0d0d0;
    margin-bottom: 1rem;
}

.docs-content ul, .docs-content ol {
    color: #d0d0d0;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.docs-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.docs-content ul li::marker {
    color: #ff4444;
}

.docs-content ol li::marker {
    color: #ff4444;
    font-weight: bold;
}

.docs-content code {
    background: #0a0a0a;
    color: #ff6666;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.docs-content pre {
    background: #0a0a0a;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(220, 38, 38, 0.3);
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.5);
}

.docs-content pre code {
    background: none;
    border: none;
    padding: 0;
    color: #f5f5f5;
}

.docs-content blockquote {
    border-left: 4px solid #ff4444;
    padding-left: 1.5rem;
    margin: 1.5rem 0;
    color: #d0d0d0;
    font-style: italic;
    background: rgba(255, 68, 68, 0.05);
    padding: 1rem 1.5rem;
    border-radius: 0 10px 10px 0;
}

.docs-content a {
    color: #ff4444;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

.docs-content a:hover {
    border-bottom-color: #ff4444;
}

.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: #0a0a0a;
    border-radius: 10px;
    overflow: hidden;
}

.docs-content th {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.docs-content td {
    padding: 1rem;
    border-bottom: 1px solid rgba(220, 38, 38, 0.3);
    color: #d0d0d0;
}

.docs-content tr:last-child td {
    border-bottom: none;
}

.docs-content tr:hover {
    background: rgba(255, 68, 68, 0.05);
}

.docs-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1.5rem 0;
    border: 2px solid rgba(220, 38, 38, 0.3);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.2);
}

.docs-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff4444, transparent);
    margin: 2rem 0;
}

.btn-back-docs {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #0f0f0f 0%, #1a0505 100%);
    color: #f5f5f5;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid rgba(220, 38, 38, 0.3);
    margin-bottom: 2rem;
}

.btn-back-docs:hover {
    background: linear-gradient(135deg, #1a0505 0%, #2a0505 100%);
    border-color: #ff4444;
    transform: translateX(-5px);
    box-shadow: 0 4px 15px rgba(255, 68, 68, 0.3);
}

.btn-back-docs::before {
    content: '← ';
}

/* Responsive */
@media (max-width: 768px) {
    .docs-container {
        padding: 1rem;
    }
    
    .docs-content {
        padding: 1.5rem;
    }
    
    .docs-list {
        grid-template-columns: 1fr;
    }
}
