/* === My IP Check – Lovable Dark Theme === */

:root {
  --bg-color: #0f1117;
  --card-bg: #1a1c23;
  --text-color: #f5f5f7;
  --accent-color: #4b73ff;
  --muted-text: #9ca3af;
  --border-color: #2a2d35;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --font-main: 'Inter', 'Segoe UI', Roboto, sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
}

.container {
  margin-top: 80px;
  padding: 40px 50px;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  width: 90%;
  text-align: center;
  border: 1px solid var(--border-color);
}
/* --- Glassmorphism styl kontenera --- */
.container {
  background: rgba(17, 25, 40, 0.55); /* półprzezroczyste tło */
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  padding: 32px 24px;
  margin: 20px auto;
  max-width: 600px;
  color: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.container:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55);
}

/* --- Dostosowanie pod mobile --- */
@media (max-width: 600px) {
  .container {
    margin: 12px;
    padding: 22px 18px;
    border-radius: 14px;
    backdrop-filter: blur(18px) saturate(200%);
    -webkit-backdrop-filter: blur(18px) saturate(200%);
  }
}

.map-wrapper {
  margin: 25px auto 0 auto; /* <-- kluczowe! wyśrodkowanie */
  position: relative;
  width: 100%;
  max-width: 550px;
  height: 260px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-wrapper:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 14px;
}
.ip-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  font-size: 0.95rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
}

.ip-table th, .ip-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
  color: var(--muted-text);
}

.ip-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-weight: 600;
}

.ip-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

.vpn-btn {
  display: inline-block;
  margin-top: 25px;
  background: var(--accent-color);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  transition: background 0.25s ease, transform 0.1s ease;
}

.vpn-btn:hover {
  background: #6787ff;
  transform: translateY(-2px);
}
.vpn-btn {
  display: inline-block;
  margin-top: 25px;
  background: linear-gradient(135deg, #446bff, #6e8aff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius);
  box-shadow: 0 0 12px rgba(102, 138, 255, 0.3);
  transition: all 0.25s ease;
}

.vpn-btn:hover {
  background: linear-gradient(135deg, #5f7fff, #8fa4ff);
  box-shadow: 0 0 18px rgba(102, 138, 255, 0.5);
  transform: translateY(-2px);
}

/* --- RESPONSYWNA TABELA DANYCH IP --- */
.ip-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 15px;
  border-radius: var(--radius);
}

.ip-table {
  width: 100%;
  min-width: 550px; /* <-- tabela nie będzie się ściskać za mocno */
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ip-table th,
.ip-table td {
  padding: 10px 8px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-table th {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-color);
  font-weight: 600;
}

.ip-table tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile optymalizacja */
@media (max-width: 600px) {
  .ip-table th, .ip-table td {
    padding: 8px 5px;
    font-size: 0.8rem;
  }
}
/* === FAQ (Accordion Style) === */
.faq-container {
  margin-top: 60px;
  background: rgba(17, 25, 40, 0.45);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 32px 26px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  color: #f5f5f5;
}

.faq-container h2 {
  font-size: 1.6rem;
  text-align: center;
  margin-bottom: 28px;
  background: linear-gradient(90deg, #6a8bff, #9ac6ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Pytanie (nagłówek) */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #d8e0ff;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #a6bbff;
}

.faq-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
}

/* Odpowiedź */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  transition: all 0.4s ease;
}

.faq-answer p,
.faq-answer ul {
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Aktywny stan (otwarte FAQ) */
.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 18px 16px 18px;
}

.faq-item.active .faq-answer p,
.faq-item.active .faq-answer ul {
  opacity: 1;
  transform: translateY(0);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

/* Mobile */
@media (max-width: 600px) {
  .faq-container {
    padding: 24px 18px;
  }
  .faq-question {
    font-size: 1rem;
  }
}


h1 {
  font-size: 2rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.8rem;
  color: var(--accent-color);
  margin: 1rem 0;
}

p {
  color: var(--muted-text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0.4rem 0;
}

form {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

label {
  font-weight: 500;
  color: var(--text-color);
}

input[type="text"] {
  padding: 10px 15px;
  width: 100%;
  max-width: 300px;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  background: #101218;
  color: var(--text-color);
  outline: none;
  font-size: 1rem;
  transition: border 0.2s;
}

input[type="text"]:focus {
  border-color: var(--accent-color);
}

button {
  background: var(--accent-color);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #6787ff;
  transform: translateY(-1px);
}

hr {
  border: none;
  height: 1px;
  background: var(--border-color);
  margin: 30px 0;
}

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

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  input[type="text"] {
    max-width: 100%;
  }
}
