/* General Reset */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', Arial, sans-serif; background: linear-gradient(135deg, #667eea, #764ba2); color: #fff; min-height: 100vh; display: flex; flex-direction: column; }

/* Header */
header { text-align: center; padding: 2rem 1rem; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px); }
header h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
header nav a { color: #fff; text-decoration: none; margin: 0 0.5rem; font-weight: bold; transition: 0.3s; }
header nav a:hover { color: #ffde59; }
header p { font-size: 1rem; opacity: 0.85; }

/* Container */
.container { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 2rem; gap: 1.5rem; }

/* Shorten Box */
.shorten-box { background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); padding: 2rem; border-radius: 12px; width: 100%; max-width: 500px; display: flex; flex-direction: column; gap: 1rem; }
.shorten-box input { padding: 12px; border-radius: 8px; border: none; font-size: 1rem; }
.shorten-box button { padding: 12px; border-radius: 8px; border: none; background: #ff6b81; color: #fff; font-weight: bold; cursor: pointer; transition: 0.3s; }
.shorten-box button:hover { background: #ff4757; }

/* Upgraded Short Link Card */
.short-link-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 1rem;
}

.short-link-card .short-text { font-weight: bold; margin-right: 8px; flex-shrink: 0; }
.short-link-card .short-url { color: #ffde59; text-decoration: underline; word-break: break-all; margin-right: 8px; flex-grow: 1; }
.short-link-card .copy-btn { padding: 6px 12px; border: none; border-radius: 6px; background: #ffde59; color: #000; font-weight: bold; cursor: pointer; transition: 0.3s; }
.short-link-card .copy-btn:hover { background: #ffc107; }

/* Saved Links */
.saved-links { width: 100%; max-width: 500px; background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 1rem 2rem; border-radius: 12px; }
.saved-links h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.saved-links ul { list-style: none; }
.saved-links li { margin-bottom: 0.5rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.saved-links li a { color: #ffde59; text-decoration: underline; }
.saved-links li button { padding: 4px 8px; border: none; border-radius: 6px; background: #ffde59; color: #000; cursor: pointer; font-size: 0.85rem; }
.saved-links li button:hover { background: #ffc107; }

/* Info Section */
.info-section { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 1.5rem 2rem; border-radius: 12px; width: 100%; max-width: 700px; margin-bottom: 1.5rem; }
.info-section h2 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.info-section p { margin-bottom: 1rem; line-height: 1.6; }

/* FAQ Section */
.faq-section { background: rgba(255,255,255,0.1); backdrop-filter: blur(10px); padding: 1.5rem 2rem; border-radius: 12px; width: 100%; max-width: 700px; margin-bottom: 2rem; }
.faq-section h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.faq-item { margin-bottom: 1rem; }
.faq-item h3 { cursor: pointer; transition: 0.3s; font-size: 1.2rem; }
.faq-item h3:hover { color: #ffde59; }
.faq-item p { margin-top: 0.3rem; font-size: 1rem; line-height: 1.5; }

/* Support Button */
.support-box { text-align: center; margin-bottom: 2rem; }
.support-btn { display: inline-block; margin-top: 0.5rem; padding: 12px 24px; border-radius: 8px; background: #ffde59; color: #000; font-weight: bold; text-decoration: none; transition: 0.3s; }
.support-btn:hover { background: #ffc107; }

/* Footer */
footer { text-align: center; padding: 1rem; font-size: 0.9rem; opacity: 0.8; background: rgba(0,0,0,0.2); backdrop-filter: blur(5px); }

/* Responsive */
@media (max-width: 600px) {
  .shorten-box, .saved-links, .info-section, .faq-section { width: 90%; }
  .short-link-card { flex-direction: column; align-items: flex-start; gap: 6px; }
}
