/* MediaFlipConvert WordPress Plugin Styles */
.mfc-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 40px;
  color: #0f1117;
}

/* Hero */
.mfc-hero {
  background: linear-gradient(135deg, #0f1117 0%, #1a2235 100%);
  border-radius: 20px;
  padding: 48px 32px 40px;
  text-align: center;
  color: #fff;
  box-shadow: 0 20px 60px rgba(29, 155, 240, 0.18);
  margin-bottom: 24px;
}

.mfc-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.mfc-logo span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, #1d9bf0, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mfc-subtitle {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  margin: 0 0 28px;
}

/* Form */
.mfc-form {
  width: 100%;
}

.mfc-input-row {
  display: flex;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  transition: border-color 0.2s;
}

.mfc-input-row:focus-within {
  border-color: #1d9bf0;
  background: rgba(29,155,240,0.07);
}

.mfc-input-row input[type="url"] {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 15px;
  color: #fff;
  min-width: 0;
  padding: 8px 0;
}

.mfc-input-row input[type="url"]::placeholder {
  color: rgba(255,255,255,0.35);
}

.mfc-input-row button {
  background: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.mfc-input-row button:hover {
  background: #1a8fd1;
}

.mfc-input-row button:active {
  transform: scale(0.97);
}

.mfc-input-row button.mfc-loading .mfc-btn-text {
  display: none;
}

.mfc-input-row button.mfc-loading .mfc-btn-spinner {
  display: block;
}

.mfc-btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mfc-spin 0.7s linear infinite;
}

@keyframes mfc-spin {
  to { transform: rotate(360deg); }
}

.mfc-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin: 10px 0 0;
}

/* Error */
.mfc-error {
  background: #fff1f2;
  border: 1.5px solid #fca5a5;
  color: #b91c1c;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  margin-bottom: 20px;
}

/* Result */
.mfc-result {
  background: #fff;
  border: 1.5px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.mfc-tweet-meta {
  padding: 18px 20px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.mfc-tweet-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.mfc-author-info strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #0f1117;
}

.mfc-author-info span {
  font-size: 13px;
  color: #6b7280;
}

.mfc-tweet-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Media items */
.mfc-media-list {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mfc-media-item {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.mfc-media-preview {
  position: relative;
  background: #000;
}

.mfc-media-preview img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  opacity: 0.85;
}

.mfc-media-preview .mfc-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(0,0,0,0.65);
  border-radius: 50%;
  width: 54px;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 22px;
  pointer-events: none;
}

.mfc-photo-preview img {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  display: block;
}

.mfc-download-options {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mfc-download-options h4 {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 4px;
}

.mfc-dl-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #0f1117;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.1s;
}

.mfc-dl-btn:hover {
  background: #1d9bf0;
  color: #fff;
  text-decoration: none;
}

.mfc-dl-btn:active {
  transform: scale(0.98);
}

.mfc-dl-btn .mfc-dl-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mfc-dl-btn .mfc-dl-arrow {
  font-size: 16px;
  opacity: 0.7;
}

.mfc-dl-btn.mfc-photo-btn {
  background: #1a2235;
}

.mfc-dl-btn.mfc-photo-btn:hover {
  background: #1d9bf0;
}

/* Features */
.mfc-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 540px) {
  .mfc-features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mfc-feature {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.mfc-feature-icon {
  font-size: 24px;
  line-height: 1;
}

.mfc-feature strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f1117;
  display: block;
}

.mfc-feature span {
  font-size: 12px;
  color: #6b7280;
  display: block;
  line-height: 1.3;
}

@media (max-width: 480px) {
  .mfc-hero {
    padding: 32px 20px 28px;
  }
  .mfc-input-row {
    flex-direction: column;
    padding: 10px;
    gap: 8px;
  }
  .mfc-input-row input[type="url"] {
    padding: 6px 4px;
  }
  .mfc-input-row button {
    width: 100%;
    justify-content: center;
  }
}
