/* Free-Transfer - Estilos modernos responsive */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

:root {
  --primary: #0ea5ff;
  --primary-dark: #0a7ccc;
  --background: #0b1220;
  --background-alt: #0f172a;
  --card-bg: rgba(255, 255, 255, 0.08);
  --card-stroke: rgba(255, 255, 255, 0.12);
  --text: #e5e7eb;
  --text-light: #9ca3af;
  --success: #10B981;
  --error: #EF4444;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.5);
  --shadow-lg: 0 20px 45px rgba(2, 6, 23, 0.55);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(1200px 800px at 10% -10%, rgba(14,165,255,0.25), rgba(14,165,255,0) 60%),
              radial-gradient(1000px 700px at 110% 0%, rgba(14,165,255,0.15), rgba(14,165,255,0) 55%),
              linear-gradient(180deg, var(--background) 0%, var(--background-alt) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
header {
  background: transparent;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(140%) blur(10px);
}

.header-content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}

.logo svg {
  width: clamp(24px, 5vw, 32px);
  height: clamp(24px, 5vw, 32px);
}

/* AdSense Container */
.adsense-container {
  min-height: 90px;
  margin: 1rem 0;
}

/* Language Selector */
.language-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 1rem;
}

.lang-btn:hover {
  background: var(--background);
  border-color: var(--primary);
}

.lang-btn svg {
  color: var(--text-light);
}

#currentLangFlag {
  font-size: 1.5rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: var(--shadow-lg);
  width: 300px;
  max-height: 400px;
  overflow: hidden;
  z-index: 1000;
}

.lang-search {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
}

.lang-search input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.25rem;
  font-size: 0.875rem;
}

.lang-list {
  max-height: 320px;
  overflow-y: auto;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.875rem;
}

.lang-item:hover {
  background: var(--background);
}

.lang-item.active {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

.lang-item-flag {
  font-size: 1.25rem;
}

.lang-item-name {
  flex: 1;
}

/* Main Content */
main {
  flex: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 3rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  color: #fff;
  line-height: 1.15;
}

.subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Cards */
.card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: clamp(1rem, 3.5vw, 2rem);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  width: 100%;
  border: 1px solid var(--card-stroke);
  backdrop-filter: blur(10px) saturate(140%);
}

.card h2 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 1rem;
  color: #fff;
}

/* File Upload */
.file-upload-area {
  border: 2px dashed rgba(255,255,255,0.14);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
  transition: all 0.25s ease;
  cursor: pointer;
  background: rgba(255,255,255,0.03);
  min-height: clamp(180px, 28vw, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.file-upload-area:hover,
.file-upload-area.dragover {
  border-color: rgba(14,165,255,0.6);
  background: rgba(14,165,255, 0.06);
  box-shadow: var(--shadow-lg);
}

.file-upload-area svg {
  width: clamp(56px, 9vw, 82px);
  height: clamp(56px, 9vw, 82px);
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.file-upload-area p {
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  color: var(--text-light);
}

#fileInput {
  display: none;
}

.selected-file {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.85rem 1.25rem;
  font-size: clamp(0.9rem, 2vw, 1rem);
  font-weight: 600;
  text-align: center;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  text-decoration: none;
  min-height: 44px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #22ccff 100%);
  color: #0b1220;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #22ccff 0%, var(--primary) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.06);
}

/* Link Container */
#linkContainer {
  margin-top: 3%;
}

.link-display {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

#shareLink {
  flex: 1;
  min-width: 200px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: monospace;
  font-size: clamp(0.75rem, 1.5vw, 0.9rem);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

#qrCode {
  text-align: center;
  margin-top: 2%;
  padding: 2%;
  background: var(--background);
  border-radius: 8px;
}

#qrCode img {
  max-width: 100%;
  height: auto;
}

/* Status */
.status {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin: 1rem 0;
}

.status.connected {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.status.connecting {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
}

.status.disconnected,
.status.failed {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
}

/* Progress */
.progress-container {
  margin: 3% 0;
}

.progress-bar-bg {
  width: 100%;
  height: clamp(8px, 1.5vw, 12px);
  background: rgba(255,255,255,0.12);
  border-radius: 999px;
  overflow: hidden;
}

#progressBar {
  height: 100%;
  background: linear-gradient(90deg, #22ccff, var(--primary));
  width: 0;
  transition: width 0.3s;
}

#progressText {
  text-align: center;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--text);
}

/* Messages */
.message {
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-weight: 500;
}

.message.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.message.error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid var(--error);
}

/* Features Grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3%;
  margin: 5% 0;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature svg {
  width: clamp(40px, 6vw, 48px);
  height: clamp(40px, 6vw, 48px);
  color: var(--primary);
  margin-bottom: 2%;
}

.feature h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 1%;
}

.feature p {
  color: var(--text-light);
  font-size: clamp(0.85rem, 1.5vw, 0.9rem);
}

/* FAQ */
.faq {
  margin: 5% 0;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 3%;
  margin-bottom: 2%;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: 1.5%;
  color: var(--text);
}

.faq-item p {
  color: var(--text-light);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  line-height: 1.6;
}

/* Footer */
footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2rem;
  margin-top: 3rem;
}

.footer-content {
  max-width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3%;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: #22ccff;
}

/* Donations */
.donations {
  text-align: center;
}

.donations #donationsQR {
  margin: 1rem auto;
  max-width: 200px;
}

.donations #donationsQR img {
  width: 100%;
  border-radius: 8px;
}

.donations .donation-link {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--primary);
  word-break: break-all;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Utility Classes */
.hidden {
  display: none !important;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Language Selector */
.language-selector {
  position: relative;
  display: inline-block;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: clamp(0.875rem, 1.5vw, 1rem);
  transition: all 0.2s;
}

.language-btn:hover {
  background: var(--card-bg);
  border-color: var(--primary);
}

.language-dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  min-width: 200px;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 0.9rem;
}

.language-option:hover {
  background: var(--background);
}

.language-option.active {
  background: rgba(0, 102, 255, 0.1);
  color: var(--primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .card {
    padding: 4%;
  }

  .file-upload-area {
    padding: 6% 4%;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 4%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .link-display {
    flex-direction: column;
  }
  
  .btn {
    padding: 0.9rem 1.1rem;
  }
}

@media (max-width: 480px) {
  main {
    padding: 2rem 1rem;
  }
  
  .card {
    padding: 1.25rem;
  }

  .btn {
    width: 100%;
    padding: 1rem 1.25rem;
  }
  
  .language-dropdown {
    right: auto;
    left: 0;
    width: 90vw;
    max-width: 300px;
  }
}

/* Blog section & carousel */
.blog-section {
  margin: 5% 0;
}

.blog-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2%;
}

.blog-section-title {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.blog-section-subtitle {
  color: var(--text-light);
  font-size: clamp(0.9rem, 1.6vw, 1rem);
}

.blog-carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.blog-carousel-track {
  display: flex;
  transition: transform 0.35s ease;
  will-change: transform;
}

.blog-card {
  flex: 0 0 33.3333%;
  max-width: 33.3333%;
  padding: 1.5%;
}

.blog-card-inner {
  background: var(--card-bg);
  border-radius: 14px;
  border: 1px solid var(--card-stroke);
  padding: 6%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 4%;
}

.blog-card-title {
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin-bottom: 3%;
}

.blog-card-excerpt {
  font-size: clamp(0.8rem, 1.4vw, 0.95rem);
  color: var(--text-light);
  margin-bottom: 5%;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-light);
}

.blog-card-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.blog-card-link:hover {
  text-decoration: underline;
}

.blog-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}

.blog-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.blog-carousel-btn:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

.blog-carousel-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
}

@media (max-width: 1024px) {
  .blog-card {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 768px) {
  .blog-section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .blog-card {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .blog-card-inner {
    padding: 7%;
  }

  .blog-carousel-controls {
    justify-content: center;
  }
}

