/* Offers Page Title and Description Expansion Enhancements */

.title-container {
    margin-bottom: 12px;
}

.title-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--text-color);
    position: relative;
}

.title-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.title-text.expanded {
    display: block;
}

.description-container {
    margin-bottom: 15px;
}

.description-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin: 0;
}

.description-text.collapsed {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.description-text.expanded {
    display: block;
}

/* Show More/Less Button Styles */
.show-more-btn,
.show-less-btn {
    color: var(--highlight-color, #3b82f6);
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    margin-left: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid transparent;
}

.show-more-btn:hover,
.show-less-btn:hover {
    color: var(--highlight-color, #2563eb);
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* For titles, use smaller more/less buttons */
.title-text .show-more-btn,
.title-text .show-less-btn {
    font-size: 0.8rem;
    padding: 1px 4px;
    margin-left: 2px;
}

/* Dark theme adjustments */
[data-theme="dark"] .show-more-btn,
[data-theme="dark"] .show-less-btn {
    color: var(--highlight-color, #60a5fa);
    background: rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .show-more-btn:hover,
[data-theme="dark"] .show-less-btn:hover {
    color: var(--highlight-color, #93c5fd);
    background: rgba(96, 165, 250, 0.25);
    border-color: rgba(96, 165, 250, 0.4);
}

/* Night theme adjustments */
[data-theme="night"] .show-more-btn,
[data-theme="night"] .show-less-btn {
    color: var(--highlight-color, #a78bfa);
    background: rgba(167, 139, 250, 0.15);
}

[data-theme="night"] .show-more-btn:hover,
[data-theme="night"] .show-less-btn:hover {
    color: var(--highlight-color, #c4b5fd);
    background: rgba(167, 139, 250, 0.25);
    border-color: rgba(167, 139, 250, 0.4);
}

/* Enhanced offer card content spacing */
.offer-card .offer-content {
    padding: 20px;
}

.offer-meta {
    margin-bottom: 10px;
}

.category-tag {
    background: rgba(var(--highlight-color-rgb, 59, 130, 246), 0.1);
    color: var(--highlight-color, #3b82f6);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Animation for expand/collapse */
.title-text,
.description-text {
    transition: all 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .title-text {
        font-size: 1.1rem;
    }
    
    .description-text {
        font-size: 0.9rem;
    }
    
    .show-more-btn,
    .show-less-btn {
        font-size: 0.8rem;
        padding: 1px 4px;
    }
    
    .title-text .show-more-btn,
    .title-text .show-less-btn {
        font-size: 0.75rem;
    }
}