/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-right: 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn i {
    margin-right: 8px;
}

/* Button size variants */
.btn-large {
    padding: 12px 24px;
    font-size: 1rem;
}

/* Button shape variants */
.btn-pill {
    border-radius: 50px;
}

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

.btn-primary:hover {
    background-color: #3a31c9;
}

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

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

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

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

.btn-email {
    background-color: #28a745;
    color: white;
}

.btn-email:hover {
    background-color: #218838;
}

.btn-download {
    background-color: #4B3EE8;
    color: white;
}

.btn-download:hover {
    background-color: #3a31c9;
}

.btn-add-tags {
    background-color: #EA3238;
    color: white;
}

.btn-add-tags:hover {
    background-color: #d12a30;
}

.btn-x-custom {
    background-color: #000;
    color: white;
    margin-top: 15px;
}

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

.btn-bluesky {
    background-color: #0085ff; /* BlueSky blue color */
    color: white;
}

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

/* Hero CTA Button - Special styling for the main call-to-action in hero section */
.btn-hero-cta {
    padding: 16px 36px;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background-color: var(--accent-color);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(234, 50, 56, 0.2);
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 2;
    margin: 15px auto;
    overflow: hidden;
}

.btn-hero-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.btn-hero-cta:hover {
    background-color: #ff3b42;
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(234, 50, 56, 0.3);
    border-color: white;
    font-weight: 700;
    color: white !important;
    text-decoration: none;
}

.btn-hero-cta:hover::before {
    left: 100%;
}

.btn-hero-cta:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.2), 0 0 0 4px rgba(234, 50, 56, 0.2);
}

/* Enhanced pulse animation for the hero CTA */
@keyframes enhanced-pulse {
    0% {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(234, 50, 56, 0.1);
    }
    50% {
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3), 0 0 0 6px rgba(234, 50, 56, 0.3);
    }
    100% {
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25), 0 0 0 4px rgba(234, 50, 56, 0.1);
    }
}

.btn-hero-cta {
    animation: enhanced-pulse 3s infinite;
}

.btn.disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Card Styles */
.content-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.action-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    width: 100%;
}

.step-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 30px;
    position: relative;
    padding-left: 80px;
}

.step-number {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 40px;
    height: 40px;
    background-color: #EA3238;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.resource-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    min-height: 100%;
    height: auto;
}

.resource-card h3 {
    margin-top: 0;
    color: #333;
}

.resource-actions {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

/* Contact Info Styles */
.contact-info {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.contact-info p {
    margin-bottom: 0;
    font-size: 1.1rem;
    color: #495057;
}

/* Accordion Styles */
.accordion {
    margin-top: 30px;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.accordion-header {
    background-color: #e8e6fa;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px;
    /* Accessibility improvements */
    position: relative;
    transition: background-color 0.2s ease;
}

/* High contrast focus state for accordion headers */
.accordion-header:focus {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    background-color: #d8d4f8;
}

.accordion-header h3 {
    margin: 0;
    color: #4B3EE8;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-content.active {
    max-height: 1000px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Accessibility improvements */
    overflow-y: auto;
}

.modal.active {
    display: block;
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    /* Accessibility improvements */
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: #333;
    border-radius: 50%;
}

.close-modal:hover, .close-modal:focus {
    background-color: rgba(0,0,0,0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tag-checkboxes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
}

.tag-checkbox input {
    margin-right: 8px;
    width: auto;
}

.char-counter {
    margin-top: 5px;
    font-size: 0.9em;
    color: #666;
}

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

.char-counter.error {
    color: #ff0000;
}

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

.social-share-expanded {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
}

.post-composer {
    margin-top: 15px;
}

.post-composer textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 100px;
    margin-bottom: 15px;
}

.post-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
}

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

select[multiple] {
    height: auto;
    min-height: 100px;
}

/* Tweet Section Styles */
.tweet-section {
    margin: 20px 0;
    padding: 20px 0;
    position: relative;
}

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

/* Category Indicators (Scroll Spy) */
.category-indicators {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-bottom: 15px;
    padding-bottom: 5px;
    -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
    border-bottom: 1px solid #e1e8ed;
}

.category-indicators::-webkit-scrollbar {
    display: none;  /* Hide scrollbar in Chrome, Safari, and Opera */
}

.category-indicator {
    padding: 8px 16px;
    margin-right: 8px;
    background: none;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #657786;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.category-indicator:hover {
    background-color: #f5f8fa;
    color: #4B3EE8;
}

.category-indicator.active {
    background-color: #4B3EE8;
    color: white;
}

/* Carousel Container */
.tweet-carousel-container {
    position: relative;
    margin: 0 -10px;
    padding: 0 10px;
}

/* Carousel Track */
.tweet-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity; /* Changed from mandatory to proximity for better behavior */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;  /* Hide scrollbar in Firefox */
    -ms-overflow-style: none;  /* Hide scrollbar in IE and Edge */
    padding: 10px 0;
    margin: 0 -10px;
    position: relative; /* Ensure proper positioning context */
}

.tweet-carousel-track::-webkit-scrollbar {
    display: none;  /* Hide scrollbar in Chrome, Safari, and Opera */
}

.tweet-carousel-track:focus {
    outline: none;
}

/* Category Markers */
.category-marker {
    position: relative;
    width: 0;
    height: 0;
    opacity: 0;
    scroll-snap-align: start;
}

/* Tweet Card */
.tweet-card {
    flex: 0 0 300px;
    margin-right: 15px;
    position: relative;
    transition: transform 0.3s ease;
}

.tweet-card.selected .tweet-preview {
    border: 2px solid #4B3EE8;
    box-shadow: 0 0 0 2px rgba(75, 62, 232, 0.2);
    transform: translateY(-3px);
}

/* Twitter/X-like styling */
.tweet-preview {
    background-color: #fff;
    border-radius: 12px;
    border: 1px solid #e1e8ed;
    padding: 12px;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.tweet-preview:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-color: #bbb;
}

.tweet-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
}

.profile-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #4B3EE8;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    font-size: 20px;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-weight: 700;
    font-size: 15px;
    color: #14171a;
}

.profile-handle {
    font-size: 14px;
    color: #657786;
}

.x-logo {
    position: absolute;
    right: 0;
    top: 0;
    color: #657786;
    font-size: 16px;
}

.tweet-content {
    font-size: 15px;
    line-height: 1.4;
    color: #14171a;
    margin-bottom: 12px;
    word-wrap: break-word;
    flex-grow: 1;
}

.tweet-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #e1e8ed;
    color: #657786;
    margin-bottom: 10px;
}

.tweet-action {
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}

.tweet-action:hover {
    color: #4B3EE8;
}

.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #4B3EE8;
    color: white;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    z-index: 1;
}

/* Use Tweet Button */
.use-tweet-btn {
    width: 100%;
    margin-top: auto;
    font-size: 14px;
    padding: 8px 12px;
    text-align: center;
}

/* Carousel Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    border: 1px solid #e1e8ed;
    color: #657786;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    /* Ensure arrows are always visible and clickable */
    opacity: 0.9;
    pointer-events: auto;
}

.carousel-arrow:hover {
    background-color: #f5f8fa;
    color: #4B3EE8;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    opacity: 1;
}

.carousel-arrow:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(75, 62, 232, 0.2);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.prev-arrow {
    left: -5px; /* Moved closer to the edge for better visibility */
}

.next-arrow {
    right: -5px; /* Moved closer to the edge for better visibility */
}

/* Make arrows more visible on mobile */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 36px;
        height: 36px;
        background-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }
    
    .prev-arrow {
        left: 0;
    }
    
    .next-arrow {
        right: 0;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .tweet-card {
        flex: 0 0 280px;
    }
}

@media (max-width: 768px) {
    .tweet-card {
        flex: 0 0 260px;
    }
    
    .carousel-arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .prev-arrow {
        left: -10px;
    }
    
    .next-arrow {
        right: -10px;
    }
}

@media (max-width: 480px) {
    .tweet-card {
        flex: 0 0 240px;
    }
    
    .category-indicator {
        padding: 6px 12px;
        font-size: 13px;
    }
}
