/* 
 * فایل: assets/css/style.css
 * استایل اصلی سایت
 */

:root {
    --bg-dark: #121212;
    --bg-darker: #0a0a0a;
    --bg-light: #1e1e1e;
    --primary: #6A5ACD; /* بنفش گرم */
    --primary-light: #8a7ddb;
    --secondary: #20B2AA; /* آبی فیروزه‌ای */
    --secondary-light: #40e0d0;
    --text-light: #f5f5f5;
    --text-muted: #a0a0a0;
    --card-bg: rgba(30, 30, 30, 0.7);
    --border-color: rgba(255, 255, 255, 0.1);
    --success: #2ecc71;
    --warning: #f1c40f;
    --danger: #e74c3c;
    --info: #3498db;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: var(--text-light);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(106, 90, 205, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 90, 205, 0.4);
    color: white;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-primary i, .btn-secondary i {
    margin-left: 8px;
}

/* ----- هدر سایت ----- */
.main-header {
    background-color: rgba(10, 10, 10, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 15px 0;
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    padding: 8px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.main-nav a:hover,
.main-nav a.active {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--secondary);
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-dropdown-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown-btn i {
    margin-left: 8px;
}

.user-dropdown-btn .username {
    margin: 0 8px;
}

.user-dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 10;
    background-color: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    margin-top: 5px;
}

.user-dropdown-content a {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.user-dropdown-content a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--primary);
}

.user-dropdown-content a i {
    margin-left: 10px;
    width: 20px;
    text-align: center;
}

.user-dropdown:hover .user-dropdown-content {
    display: block;
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ----- فوتر سایت ----- */
.main-footer {
    background-color: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ----- صفحه اصلی - قسمت هیرو ----- */
.hero-section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-darker), var(--bg-dark));
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(106, 90, 205, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.prompt-container {
    margin: 30px 0;
    position: relative;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.prompt-input {
    width: 100%;
    padding: 20px 25px;
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-light);
    font-size: 1.1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    outline: none;
}

.prompt-input:focus {
    border-color: var(--primary);
    box-shadow: 0 5px 25px rgba(106, 90, 205, 0.3);
}

.prompt-btn {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.prompt-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.4);
}

.prompt-examples {
    margin-top: 25px;
}

.prompt-examples h3 {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.examples-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.example-item {
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.example-item:hover {
    background-color: rgba(106, 90, 205, 0.2);
    transform: translateY(-2px);
}

/* ----- دسته‌بندی‌ها ----- */
.categories-section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--secondary);
}

.categories-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
}

.category-item {
    padding: 10px 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover,
.category-item.active {
    background-color: rgba(106, 90, 205, 0.2);
    color: var(--primary-light);
}

/* ----- گرید تصاویر ----- */
.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.image-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.image-card-img {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* نسبت 1:1 برای تصاویر */
    overflow: hidden;
}

.image-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.image-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    z-index: 2;
}

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

.image-card-title {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.image-card-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.image-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-card:hover .image-card-actions {
    opacity: 1;
}

.image-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.image-action-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* ----- آلرت‌ها ----- */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.alert.success {
    background-color: rgba(39, 174, 96, 0.1);
    color: var(--success);
    border-right: 3px solid var(--success);
}

.alert.warning {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--warning);
    border-right: 3px solid var(--warning);
}

.alert.error {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    border-right: 3px solid var(--danger);
}

.alert.info {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--info);
    border-right: 3px solid var(--info);
}

/* ----- صفحه نمایش تصویر ----- */
.image-detail-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 40px 0;
}

.image-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.image-detail-title {
    font-size: 1.8rem;
    color: var(--text-light);
}

.image-detail-actions {
    display: flex;
    gap: 15px;
}

.image-detail-main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.image-detail-preview {
    flex: 2;
    min-width: 300px;
}

.image-detail-img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.image-detail-img img {
    width: 100%;
    display: block;
}

.image-detail-info {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.info-item {
    margin-bottom: 25px;
}

.info-item-title {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-item-title i {
    margin-left: 10px;
}

.info-item-content {
    color: var(--text-muted);
    line-height: 1.8;
}

.prompt-box {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    border: 1px solid var(--border-color);
    font-family: monospace;
    margin-top: 10px;
    overflow-x: auto;
}

.use-prompt-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 15px;
    padding: 8px 15px;
    background-color: rgba(106, 90, 205, 0.1);
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.image-detail-similar {
    margin-top: 40px;
}

.similar-title {
    font-size: 1.4rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

/* ----- صفحه تولید تصویر ----- */
.generator-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    padding: 40px 0;
}

.generator-form {
    flex: 2;
    min-width: 300px;
}

.generator-preview {
    flex: 3;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
}

.generator-form-box {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.form-title {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 12px 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
}

.form-select option {
    background-color: var(--bg-darker);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
}

.price-info {
    display: flex;
    flex-direction: column;
}

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

.price-amount {
    font-size: 1.2rem;
    color: var(--primary);
}

.option-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.option-card {
    flex: 1;
    min-width: 110px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-card:hover,
.option-card.active {
    border-color: var(--primary);
    background-color: rgba(106, 90, 205, 0.1);
    transform: translateY(-2px);
}

.option-card-title {
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.option-card-value {
    font-size: 1.1rem;
    color: var(--secondary);
}

.preview-placeholder {
    text-align: center;
    color: var(--text-muted);
}

.preview-placeholder i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--secondary);
}

.preview-placeholder h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.preview-placeholder p {
    max-width: 70%;
    margin: 0 auto 20px;
    line-height: 1.8;
}

.generating-indicator {
    text-align: center;
}

.generating-indicator .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(106, 90, 205, 0.2);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preview-image {
    display: none;
    width: 100%;
    max-width: 512px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.preview-image img {
    width: 100%;
    display: block;
}

.preview-controls {
    display: none;
    margin-top: 20px;
    text-align: center;
}

.preview-btn {
    margin: 0 10px;
}

/* ----- صفحه ورود و ثبت نام ----- */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 300px);
    padding: 50px 0;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.auth-header p {
    color: var(--text-muted);
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-input-group {
    position: relative;
}

.auth-input-group i {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.auth-form-input {
    width: 100%;
    padding: 12px 15px 12px 40px;
    padding-right: 40px;
    padding-left: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.auth-form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(106, 90, 205, 0.2);
}

.auth-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input {
    margin-left: 8px;
}

.forgot-password {
    color: var(--primary);
    font-size: 0.9rem;
}

.auth-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 90, 205, 0.3);
}

.auth-submit:focus {
    outline: none;
}

.auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-light);
    padding: 0 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-auth {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.social-auth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.social-auth-btn:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    margin-right: 5px;
}

/* ----- پروفایل کاربر ----- */
.profile-container {
    padding: 40px 0;
}

.profile-header {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.profile-info {
    flex: 1;
    min-width: 300px;
}

.profile-stats {
    flex: 2;
    min-width: 300px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 20px;
}

.profile-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.profile-username {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.profile-balance {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.balance-amount {
    font-size: 1.3rem;
    margin-right: 10px;
    color: var(--success);
}

.stat-box {
    flex: 1;
    min-width: 150px;
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.stat-label {
    color: var(--text-muted);
}

.profile-tabs {
    margin-bottom: 30px;
}

.tabs-list {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-item {
    padding: 15px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
}

.tab-item:hover {
    color: var(--text-light);
}

.tab-item.active {
    color: var(--secondary);
    border-bottom-color: var(--secondary);
}

.tab-content {
    display: none;
    padding: 30px 0;
}

.tab-content.active {
    display: block;
}

/* ----- شارژ اعتبار ----- */
.credit-container {
    padding: 40px 0;
}

.credit-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.credit-package {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.credit-package:hover,
.credit-package.active {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.package-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 15px;
}

.package-amount {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.package-price {
    font-size: 1.3rem;
    color: var(--success);
    margin-bottom: 20px;
}

.package-details {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
}

.custom-credit {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    margin-bottom: 30px;
}

.custom-credit h3 {
    font-size: 1.3rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.custom-credit .form-group {
    margin-bottom: 20px;
}

.payment-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.payment-method {
    flex: 1;
    min-width: 120px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.payment-method:hover,
.payment-method.active {
    border-color: var(--primary);
    background-color: rgba(106, 90, 205, 0.1);
}

.payment-method i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--secondary);
}

.payment-method.active i {
    color: var(--primary);
}

/* ----- تراکنش‌های کاربر ----- */
.transactions-container {
    padding: 40px 0;
}

.transactions-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.filter-box {
    flex: 1;
    min-width: 200px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.transaction-table th {
    text-align: right;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: normal;
}

.transaction-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.transaction-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.03);
}

.transaction-status {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.transaction-status.success {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.transaction-status.pending {
    background-color: rgba(241, 196, 15, 0.1);
    color: var(--warning);
}

.transaction-status.failed {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--danger);
}

.transaction-amount {
    font-weight: bold;
}

.transaction-amount.positive {
    color: var(--success);
}

.transaction-amount.negative {
    color: var(--danger);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-item:hover,
.pagination-item.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ----- رسپانسیو ----- */
@media (max-width: 992px) {
    .container {
        max-width: 100%;
        padding: 0 20px;
    }
    
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .user-actions {
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .prompt-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .image-detail-main {
        flex-direction: column;
    }
}

@media (max-width: 576px) {
    .user-actions .btn-primary span {
        display: none;
    }
    
    .user-dropdown-btn .username {
        display: none;
    }
    
    .categories-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .category-item {
        white-space: nowrap;
    }
    
    .images-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .auth-card {
        padding: 30px 20px;
    }
}
  

/* این استایل‌ها را به انتهای فایل style.css اضافه کنید */

/* بهبود استایل کارت تصویر برای تعامل بهتر */
.image-card {
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.image-card-img {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-radius: 12px 12px 0 0;
}

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

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

.image-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    transition: opacity 0.3s ease;
    opacity: 0;
}

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

.image-card-title {
    color: #fff;
    margin: 0 0 5px 0;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-card-info {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    justify-content: space-between;
}

.image-card-actions {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: var(--card-bg);
    border-radius: 0 0 12px 12px;
    z-index: 2;
    position: relative;
}

.image-action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-light);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.image-action-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.1);
}

/* ارتقای استایل صفحه جزئیات تصویر */
.image-detail-container {
    padding: 30px 0;
}

.image-detail-img {
    text-align: center;
    margin-bottom: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.image-detail-img img {
    max-width: 100%;
    max-height: 70vh;
    border-radius: 15px;
}

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

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

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

.use-prompt-btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
