/* Technical Drawings Page Styles */

/* Search Section */
.search-section {
    padding: 30px 0;
    background: #0a0a0a;
    border-bottom: 1px solid #1a1a1a;
}

.search-box {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #111;
    color: #f5f5f5;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #c9a227;
}

.search-box input::placeholder {
    color: #666;
}

.search-btn {
    padding: 14px 20px;
    background: #c9a227;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}

.search-btn:hover {
    background: #d4af37;
}

/* Drawings Section */
.drawings-section {
    padding: 60px 0;
}

/* Category */
.drawing-category {
    margin-bottom: 50px;
}

.category-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c9a227;
    display: inline-block;
}

/* Drawings Grid */
.drawings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* Drawing Card */
.drawing-card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.drawing-card:hover {
    border-color: #c9a227;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.15);
}

/* Preview */
.drawing-preview {
    position: relative;
    width: 100%;
    height: 180px;
    background: #0a0a0a;
    overflow: hidden;
}

.drawing-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 15px;
}

.drawing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.drawing-card:hover .drawing-overlay {
    opacity: 1;
}

.preview-icon {
    font-size: 32px;
}

/* Drawing Info */
.drawing-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.drawing-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #f5f5f5;
    margin-bottom: 8px;
    min-height: 27px;
}

.drawing-desc {
    font-size: 13px;
    color: #a0a0a0;
    line-height: 1.5;
    margin-bottom: 12px;
    min-height: 40px;
}

.drawing-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    align-items: center;
}

.drawing-standard,
.drawing-type {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 4px;
    background: #1a1a1a;
    color: #888;
}

.drawing-type {
    background: #c9a227;
    color: #050505;
    font-weight: 600;
}

/* Request Button */
.request-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid #c9a227;
    border-radius: 8px;
    color: #c9a227;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.request-btn:hover {
    background: #c9a227;
    color: #050505;
}

.download-btn {
    width: 100%;
    padding: 12px;
    background: #c9a227;
    border: 1px solid #c9a227;
    border-radius: 8px;
    color: #050505;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    display: block;
    text-decoration: none;
    margin-top: auto;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid #c9a227;
    border-radius: 8px;
    color: #c9a227;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    background: #c9a227;
    color: #050505;
}

/* Show initial 6 only */
.drawings-grid.show-initial .drawing-card:nth-child(n+7) {
    display: none;
}

.download-btn:hover {
    background: #d4af37;
    border-color: #d4af37;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(5, 5, 5, 0.9);
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.modal-content {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: #666;
    cursor: pointer;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #f5f5f5;
}

.modal-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    color: #f5f5f5;
    margin-bottom: 10px;
}

.modal-content p {
    color: #a0a0a0;
    font-size: 14px;
    margin-bottom: 25px;
}

/* Form */
.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #333;
    border-radius: 8px;
    background: #0a0a0a;
    color: #f5f5f5;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #c9a227;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #c9a227;
    border: none;
    border-radius: 8px;
    color: #050505;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #d4af37;
}

/* Footer Social Icons */
.footer-social {
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: #888888;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
    color: var(--bg-primary);
}

/* RTL Support */
[lang="ar"] .drawing-info {
    text-align: right;
}

[lang="ar"] .drawing-meta {
    justify-content: flex-end;
}

[lang="ar"] .footer-social {
    flex-direction: row-reverse;
}

/* Preview Lightbox */
#previewModal {
    display: none;
}
#previewModal img {
    box-shadow: 0 4px 32px rgba(0,0,0,0.8);
}
.preview-nav-btn {
    position: absolute;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}
.preview-nav-btn:hover {
    background: rgba(201,162,39,0.8);
}

/* Responsive */
@media (max-width: 768px) {
    .drawings-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}
