/* Ø§Ø³ØªØ§ÛŒÙ„&zwnj;Ù‡Ø§ÛŒ Ø¬Ø¯ÛŒØ¯ Ùˆ Ø§ØµÙ„Ø§Ø­ Ø´Ø¯Ù‡ */
.image-viewer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}

.image-viewer-header {
    margin-bottom: 20px;
}

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

.viewer-search-box input {
    flex: 1;
    padding: 12px 15px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.viewer-search-box button {
    padding: 10px 20px;
    border-radius: 10px;
}

.image-viewer-main {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.image-view {
    flex: 1;
    max-width: 80vh;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.image-view img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
}

.image-sidebar {
    width: 350px;
    min-width: 300px;
}

.image-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.like-btn,
.share-btn {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.like-btn:hover,
.share-btn:hover {
    color: var(--text-light);
}

.like-btn i,
.share-btn i {
    margin-left: 5px;
    font-size: 1.1rem;
}

/* Ø§ØµÙ„Ø§Ø­ Ø´Ø¯Ù‡: Ø¨Ø®Ø´ Ø¯Ø§Ù†Ù„ÙˆØ¯ */
.download-section {
    margin-bottom: 20px;
}

.download-direct {
    display: block;
    width: 100%;
    text-align: center;
    padding: 10px 15px;
}

/* Ø¬Ø¯ÛŒØ¯: Ø¨Ø®Ø´ Ù†Ù…Ø§ÛŒØ´ Ù¾Ø±Ø§Ù…Ù¾Øª */
.prompt-display-box {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.prompt-box-title {
    margin: 0 0 10px 0;
    font-size: 1rem;
    color: var(--primary);
}

.prompt-box {
    font-family: 'Vazirmatn', monospace;
    background-color: rgba(0, 0, 0, 0.2);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    white-space: pre-wrap;
    line-height: 1.6;
    font-size: 0.9rem;
    direction: ltr;
    text-align: right;
}

.use-prompt-btn {
    width: 100%;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.use-prompt-btn i {
    margin-left: 8px;
}

.use-prompt-btn:hover {
    background-color: var(--secondary);
}

.tech-info {
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.info-row:last-child {
    margin-bottom: 0;
}

.info-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.info-value {
    font-size: 0.9rem;
    font-weight: bold;
}

.similar-images {
    margin-top: 40px;
}

.similar-images h2 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    color: var(--secondary);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.similar-card {
    text-decoration: none;
    color: var(--text-light);
    overflow: hidden;
    border-radius: 12px;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.similar-img {
    height: 180px;
    overflow: hidden;
}

.similar-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.similar-card:hover .similar-img img {
    transform: scale(1.05);
}

.similar-info {
    padding: 10px;
}

.similar-creator {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Ø§Ø³ØªØ§ÛŒÙ„&zwnj;Ù‡Ø§ÛŒ Ù…ÙˆØ¯Ø§Ù„ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #171717;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.modal-title {
    margin: 0;
    font-size: 18px;
    color: #fff;
}

.close-modal {
    background: none;
    border: none;
    color: #999;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.modal-body {
    padding: 20px;
}

.share-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.share-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: all 0.3s ease;
}

.share-link:hover {
    transform: translateY(-3px);
}

.copy-link {
    margin-top: 20px;
}

.copy-link label {
    display: block;
    margin-bottom: 8px;
    color: #ccc;
}

.copy-link-input {
    display: flex;
    gap: 10px;
}

.copy-link-input input {
    flex: 1;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
}

/* Ø±Ø³Ù¾Ø§Ù†Ø³ÛŒÙˆ */
@media (max-width: 992px) {
    .image-viewer-main {
        flex-direction: column;
    }

    .image-view {
        max-width: 100%;
    }

    .image-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .viewer-search-box {
        flex-direction: column;
    }

    .similar-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 576px) {
    .copy-link-input {
        flex-direction: column;
    }
}