/*
Theme Name: Kisalt Link Shortener
Theme URI: https://kisalt.org
Description: Basit link kısaltma teması - Sosyal medya önizleme desteği
Version: 1.0
Author: Kisalt Team
Text Domain: kisalt
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --secondary: #64748b;
  --border: #e5e7eb;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,.08), 0 20px 40px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

.site-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-title:hover {
  color: var(--primary-dark);
}

/* Main Content */
.site-main {
  flex: 1;
  padding: 3rem 24px;
}

.content-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 2rem;
}

.card-header {
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.card-description {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text);
}

.form-input {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.2s;
  background: var(--card-bg);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn {
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  justify-content: center;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--secondary);
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Result Box */
.result-box {
  background: var(--bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  word-break: break-all;
}

.result-box.has-content {
  background: #f0fdf4;
  border-color: #86efac;
  border-style: solid;
}

.result-url {
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 500;
}

.result-empty {
  color: var(--text-muted);
  text-align: center;
}

/* Redirect Page */
.redirect-card {
  text-align: center;
  max-width: 560px;
  margin: 2rem auto;
}

.redirect-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.redirect-title {
  font-weight: 600;
  font-size: 1.1rem;
}

.countdown {
  font-size: 1.1rem;
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.target-url {
  background: var(--bg);
  padding: 1rem;
  border-radius: 10px;
  word-break: break-all;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2.5rem 24px 1.5rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-contact-section {
  display: inline-block;
  text-align: left;
}

.footer-heading {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 1rem 0;
  text-align: center;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact svg {
  flex-shrink: 0;
  color: var(--primary);
}

.footer-contact a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-bottom p {
  margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 640px) {
  .site-main {
    padding: 2rem 16px;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .redirect-status {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .site-footer {
    padding: 2rem 16px 1rem;
  }
  
  .footer-contact-section {
    display: block;
    text-align: center;
  }
  
  .footer-contact li {
    justify-content: center;
  }
}

/* Utility */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }