/**
 * Trading Ideas Styles
 * @version 1.0.0
 * @author IntellaraX
 */

/* Container */
.trading-ideas-page {
    padding: 30px 0;
    background: #f8f9fa;
}

.trading-ideas-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    margin-bottom: 30px;
    text-align: center;
}

.page-header h1 {
    font-size: 32px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.page-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.symbol-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Filter Section */
.ideas-filter {
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.filter-group select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    min-width: 250px;
    background: white;
    cursor: pointer;
}

/* Ideas Grid */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

/* Idea Card */
.idea-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.idea-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.idea-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.idea-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e0e0e0;
}

.idea-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.idea-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.idea-image.no-image .placeholder-icon {
    font-size: 48px;
}

.idea-symbol-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(255, 152, 0, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.idea-content {
    padding: 15px;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 12px;
    color: #666;
}

.idea-author,
.idea-date {
    display: flex;
    align-items: center;
    gap: 5px;
}

.idea-comment {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
    margin-bottom: 12px;
    min-height: 60px;
}

.idea-stats {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: #888;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* No Ideas Message */
.no-ideas-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.no-ideas-message .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-ideas-message h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.no-ideas-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 25px;
}

/* Pagination */
.ideas-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 20px;
    background: #FF9800;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pagination-btn:hover {
    background: #F57C00;
}

.pagination-numbers {
    display: flex;
    gap: 5px;
    align-items: center;
}

.page-number {
    padding: 8px 12px;
    background: white;
    color: #333;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f8f9fa;
    border-color: #FF9800;
}

.page-number.active {
    background: #FF9800;
    color: white;
    border-color: #FF9800;
}

.pagination-dots {
    padding: 0 5px;
    color: #999;
}

.pagination-info {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* Single Idea Page */
.trading-idea-single-page {
    padding: 30px 0;
    background: #f8f9fa;
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.idea-title-section h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 10px;
}

.idea-symbol-link {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.idea-symbol-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #FF9800;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.idea-symbol-link a:hover {
    text-decoration: underline;
}

.all-ideas-link {
    color: #666 !important;
}

.idea-actions {
    display: flex;
    gap: 10px;
}

.idea-meta-info {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    padding: 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.author-info,
.date-info,
.stats-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.author-name {
    font-weight: 600;
    color: #333;
}

.stats-info {
    gap: 15px;
}

.idea-chart-image {
    position: relative;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idea-chart-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s;
}

.idea-chart-image img:hover {
    transform: scale(1.02);
}

.image-hint {
    text-align: center;
    margin-top: 10px;
    font-size: 13px;
    color: #888;
}

.idea-analysis {
    background: white;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idea-analysis h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.idea-comment-full {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    white-space: pre-wrap;
}

.edit-form {
    margin-top: 20px;
}

.edit-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
}

.edit-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.idea-comments-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.idea-comments-section h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
}

.fullscreen-modal .close-fullscreen {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.fullscreen-modal .close-fullscreen:hover {
    color: #FF9800;
}

.fullscreen-image {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #FF9800;
    color: white;
}

.btn-primary:hover {
    background: #F57C00;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-edit {
    background: #2196F3;
    color: white;
}

.btn-edit:hover {
    background: #0b7dda;
}

.btn-delete {
    background: #f44336;
    color: white;
}

.btn-delete:hover {
    background: #d32f2f;
}

/* Telegram Widget */
.itx-telegram-block {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    margin: 40px auto;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.itx-telegram-content {
    color: white;
}

.itx-telegram-title {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

.itx-telegram-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.itx-telegram-button {
    display: inline-block;
    background: white;
    color: #667eea;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.itx-telegram-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.4);
    text-decoration: none;
    color: #667eea;
}

.itx-telegram-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .idea-header {
        flex-direction: column;
    }
    
    .idea-actions {
        width: 100%;
    }
    
    .idea-meta-info {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-numbers {
        flex-wrap: wrap;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group select {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .trading-ideas-page .container {
        padding: 0 10px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .idea-analysis,
    .idea-comments-section {
        padding: 20px 15px;
    }
}

