* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #eaecf1;
    min-height: 100vh;
    color: #1a202c;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header */
.header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 2rem;
}

.header .feature-card {
    max-width: 80px;
}

.header .feature-card img {
    width: 100%;
    height: auto;
}

.logo {
    width: 200px;
    height: auto;
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 10px;
    color: hsl(240 7% 34%);
    font-weight: 600;
}

.subtitle {
    text-align: center;
    color: hsl(240deg 10% 53%);
    margin-bottom: 30px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.xai-logo {
    height: 1em;
    vertical-align: middle;
    margin: 0 2px;
}

/* Feature Section */
.feature-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 30px;
}

.tweet-embed {
    max-width: 400px;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.tweet-embed .twitter-tweet {
    flex: 1;
    margin: 0 !important;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 150px;
}

.feature-card {
    max-width: 100px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: #667eea;
    margin-bottom: 12px;
}

.feature-text {
    font-size: 1rem;
    font-weight: 600;
    color: hsl(240 7% 34%);
}

.tweet-embed {
    max-width: 400px;
    min-width: 300px;
}

.tweet-embed blockquote {
    margin: 0 !important;
}

/* Drop Zone */
.drop-zone {
    border: 2px dashed #0C8CE9;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 30px;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #0a7cd1;
    background: rgba(12, 140, 233, 0.05);
    transform: scale(1.01);
}

.drop-zone-content {
    pointer-events: none;
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: #0C8CE9;
    margin-bottom: 20px;
}

.drop-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: hsl(240 7% 34%);
    margin-bottom: 8px;
}

.drop-subtext {
    font-size: 0.95rem;
    color: #718096;
}

.drop-formats {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #f87171;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-align: center;
}

/* File List */
.file-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.file-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: white;
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.file-row:hover {
    background: white;
    border-color: rgba(102, 126, 234, 0.5);
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
    flex-shrink: 0;
}

.file-thumbnail {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.file-name {
    font-size: 0.95rem;
    color: hsl(240 7% 34%);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

/* Progress Bar */
.progress-container {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-fill.complete {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
}

.progress-text {
    font-size: 0.85rem;
    color: #888;
    min-width: 45px;
    text-align: right;
}

/* File Actions */
.file-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-download,
.btn-convert {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.btn-download svg {
    width: 18px;
    height: 18px;
}

.btn-convert {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.btn-convert:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.status-converting {
    font-size: 0.85rem;
    color: #667eea;
    font-style: italic;
    padding: 10px 16px;
}

.btn-remove {
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.btn-remove svg {
    width: 20px;
    height: 20px;
    color: #718096;
    transition: color 0.2s ease;
}

.btn-remove:hover {
    background: rgba(239, 68, 68, 0.1);
}

.btn-remove:hover svg {
    color: #ef4444;
}

/* Convert All Button */
.btn-convert-all {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-convert-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

/* Responsive */
@media (max-width: 700px) {
    .feature-section {
        flex-direction: column;
        align-items: center;
    }

    .feature-card {
        width: 100%;
        max-width: 300px;
    }

    .tweet-embed {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 20px 16px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .drop-zone {
        padding: 40px 20px;
    }

    .file-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .file-info {
        min-width: 100%;
    }

    .progress-container {
        min-width: 100%;
        order: 3;
    }

    .file-actions {
        margin-left: auto;
    }

    .file-name {
        max-width: calc(100vw - 150px);
    }
}

/* How it works */
.how-it-works {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
    text-align: center;
}

.how-it-works h3 {
    font-size: 1.1rem;
    color: hsl(240deg 10% 53%);
    margin-bottom: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-feature-icon {
    height: 1.5em;
    vertical-align: middle;
    display: inline-block;
    position: relative;
    top: -1px;
}

.how-it-works p {
    font-size: 0.95rem;
    color: hsl(240deg 10% 53%);
    line-height: 1.6;
}

.how-it-works a {
    color: hsl(199deg 73% 57%);
    text-decoration: none;
    transition: color 0.2s ease;
}

.how-it-works a:hover {
    color: hsl(199, 62%, 46%);
    text-decoration: underline;
}

.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
    text-align: left;
    width: 100%;
}

.checkbox-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    color: hsl(240deg 10% 53%);
    cursor: default;
    width: 100%;
    gap: 1rem;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: hsl(199deg 73% 57%);
}

.checkbox-item span {
    line-height: 1.4;
    flex: 1;
}

/* Disclaimer */
.disclaimer {
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.disclaimer p {
    font-size: 0.9rem;
    color: #718096;
}

.modal-link {
    color: hsl(199deg 73% 57%);
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-link:hover {
    color: hsl(199, 62%, 46%);
    text-decoration: underline;
}
