/* Enhanced Custom X Post Composer Styling */

/* Main container styling */
.social-share-expanded {
    margin-top: 20px;
    padding: 0;
}

/* Section heading */
.social-share-expanded h4, .custom-h4 {
    font-size: 1.25rem;
    color: #0c1189;
    margin-bottom: 20px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.social-share-expanded h4:after, .custom-h4:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: #4B3EE8;
}

/* Post composer container */
.post-composer {
    margin-top: 20px;
    padding: 0;
}

/* Textarea styling */
.post-composer textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    min-height: 120px;
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.2s ease;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.post-composer textarea:focus {
    border-color: #4B3EE8;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(75, 62, 232, 0.1);
}

.post-composer textarea::placeholder {
    color: #adb5bd;
}

/* Character counter styling */
.char-counter {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #6c757d;
    text-align: right;
    padding-right: 5px;
}

.char-counter.warning {
    color: #ff9900;
    font-weight: 500;
}

.char-counter.error {
    color: #EA3238;
    font-weight: 500;
}

/* Post options styling */
.post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin: 25px 0;
}

.tag-accounts,
.hashtag-options {
    flex: 1;
    min-width: 200px;
}

.post-options label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
}

/* Select styling */
select[multiple] {
    height: auto;
    min-height: 150px;
    padding: 12px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    width: 100%;
}

select[multiple]:focus {
    border-color: #4B3EE8;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05), 0 0 0 3px rgba(75, 62, 232, 0.1);
}

select[multiple] option {
    padding: 8px 10px;
    margin-bottom: 3px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

select[multiple] option:checked {
    background-color: #4B3EE8;
    color: white;
}

select[multiple] option:hover {
    background-color: #e9ecef;
}

/* Social buttons container */
.social-buttons-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

/* Social buttons styling */
.btn-x-custom,
.btn-bluesky {
    padding: 0;
    font-size: 1rem;
    border-radius: 50px;
    width: 200px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 48px;
    line-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 10px;
}

.btn-x-custom {
    background-color: #000000;
    color: white;
}

.btn-x-custom:hover {
    background-color: #333333;
}

.btn-bluesky {
    background-color: #0085ff;
    color: white;
}

.btn-bluesky:hover {
    background-color: #0066cc;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-options {
        flex-direction: column;
        gap: 15px;
    }
    
    .social-buttons-container {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-x-custom,
    .btn-bluesky {
        max-width: 100%;
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Tweet Carousel Enhancements */
.tweet-section {
    margin-bottom: 30px;
}

.tweet-section-header h4 {
    margin-bottom: 25px;
}

/* Category Indicators Styling */
.category-indicators {
    padding: 5px 0;
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.category-indicator {
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
    position: relative;
}

.category-indicator:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #4B3EE8;
    transform: translateX(-50%);
    transition: width 0.25s ease;
}

.category-indicator:hover:after {
    width: 30px;
}

.category-indicator.active:after {
    width: 40px;
}

/* Carousel Container Styling */
.tweet-carousel-container {
    position: relative;
    padding: 10px 20px;
    margin-bottom: 30px;
}

/* Tweet Card Enhancements */
.tweet-preview {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    padding: 15px;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: all 0.25s ease;
    height: 100%;
}

.tweet-card.selected .tweet-preview {
    border-color: #4B3EE8;
    box-shadow: 0 0 0 2px rgba(75, 62, 232, 0.2), 0 4px 10px rgba(0, 0, 0, 0.1);
}

.tweet-card {
    position: relative;
    margin-bottom: 0;
    height: 100%;
}

/* Use Tweet Button Styling */
.use-tweet-btn {
    width: 100%;
    margin-top: 10px;
    border-radius: 50px;
    padding: 8px 12px;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: all 0.2s ease;
}

.tweet-preview:hover .use-tweet-btn {
    opacity: 1;
    transform: translateY(-2px);
}

/* Category Badge Styling */
.category-badge {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 0.3px;
    background-color: #4B3EE8;
    box-shadow: 0 2px 4px rgba(75, 62, 232, 0.2);
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    opacity: 0.7;
    transition: all 0.2s ease;
}

.carousel-arrow:hover {
    opacity: 1;
}

/* Animation for selection */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(75, 62, 232, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(75, 62, 232, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(75, 62, 232, 0);
    }
}

.tweet-card.selected .tweet-preview {
    animation: pulse-border 1s ease-out;
}
