/* Reset i bazowe */
body {
  padding: 0 !important;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
}

.notice {
  display: none !important;
}

/* Wrapper */
.wptech-wrapper {
  max-width: 1200px;
  margin: 40px auto;
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Logo */
.wptech-logo {
  text-align: center;
  margin-bottom: 25px;
  margin-top: 20px;
}

.wptech-logo img {
  max-width: 300px;
  filter: drop-shadow(0 4px 12px rgba(116, 86, 241, 0.3));
}

.wptech-logo h2 {
  font-weight: 400;
  font-size: 24px;
  margin: 15px 0;
  color: #ffffff;
}

/* Score section */
.wptech-score {
  position: relative;
  display: flex;
  justify-content: center;
  margin: 30px 0;
  background: rgba(30, 30, 40, 0.9);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 
    0 20px 40px rgba(116, 86, 241, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.score-background-icons {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.score-background-icons .icon {
  position: absolute;
  opacity: 0.06;
  width: 70px;
  height: 70px;
}

.icon-lock {
  top: 15%;
  left: 10%;
}
.icon-speed {
  top: 10%;
  right: 15%;
}
.icon-update {
  bottom: 20%;
  left: 15%;
}

.score-circle {
  position: relative;
  width: 320px;
  height: 320px;
  z-index: 1;
}

.score-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-circle .bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.05);
  stroke-width: 1.5;
}

.score-circle .meter {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.score-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-content .feedback {
  font-size: 26px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.score-content .percent {
  font-size: 22px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 20px;
  white-space: nowrap;
}

.score-content .audit-date {
  font-size: 12px;
  color: #b0b0b0;
  margin-top: 15px;
}

.wptech-audit-action {
  margin-top: 25px;
}

/* Categories */
.wptech-categories {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
  margin: 30px 0 50px;
}

.category-circle {
  position: relative;
  width: 85px;
  height: 85px;
  cursor: pointer;
  text-align: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  background: rgba(40, 40, 50, 0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.category-circle:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.category-circle.active {
  transform: scale(1.02);
  box-shadow: 0 0 0 2px #667eea;
}

.category-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.category-circle .circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.08);
  stroke-width: 3;
}

.category-circle .circle-meter {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}

.category-circle .circle-number {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 15px;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-circle .circle-label {
  margin-top: 10px;
  font-size: 13px;
  color: #d0d0d0;
  font-weight: 500;
  transition: color 0.2s ease;
}

.category-circle.active .circle-label {
  color: #667eea;
  font-weight: 600;
}

/* Results */
.wptech-results .tab-content {
  display: none;
  margin-top: 25px;
}

.wptech-results .tab-content.active {
  display: block;
}

/* Check items */
.check-item {
  background: rgba(35, 35, 45, 0.9);
  backdrop-filter: blur(8px);
  border-left: 4px solid #666;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 16px;
  font-size: 0.95em;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.check-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.check-item.ok {
  border-left-color: #28a745;
  background: rgba(40, 167, 69, 0.03);
}

.check-item.warning {
  border-left-color: #ffc107;
  background: rgba(255, 193, 7, 0.03);
}

.check-item.danger {
  border-left-color: #dc3545;
  background: rgba(220, 53, 69, 0.03);
}

.check-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.status-icon {
  font-size: 1.3em;
  margin-right: 8px;
}

.toggle-details {
  color: #7456f1;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9em;
  padding: 6px 12px;
  border-radius: 15px;
  background: rgba(116, 86, 241, 0.1);
  transition: all 0.2s ease;
  border: 1px solid rgba(116, 86, 241, 0.2);
}

.toggle-details:hover {
  background: rgba(116, 86, 241, 0.15);
  transform: translateY(-1px);
}

.details {
  display: none;
  margin-top: 12px;
  padding: 12px;
  color: #d0d0d0;
  line-height: 1.5;
  background: rgba(25, 25, 35, 0.8);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* CTA */
.wptech-cta {
  margin-top: 40px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  align-items: center;
  background: rgba(30, 30, 40, 0.9);
  backdrop-filter: blur(15px);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 
    0 15px 30px rgba(116, 86, 241, 0.15),
    0 6px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.wptech-cta .cta-image img {
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(116, 86, 241, 0.2);
}

.wptech-cta .cta-form {
  flex: 1;
  min-width: 280px;
}

.wptech-cta .cta-form h2 {
  font-size: 1.4em;
  color: #7456f1;
  margin-bottom: 6px;
  font-weight: 600;
}

.wptech-cta .cta-form p {
  margin-bottom: 16px;
  font-size: 0.95em;
  color: #d0d0d0;
}

.wptech-cta .cta-form p {
  margin-bottom: 16px;
  font-size: 0.95em;
  color: #555;
}

.wptech-cta .cta-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #555;
  font-size: 0.95em;
  margin-bottom: 12px;
  background: rgba(40, 40, 50, 0.9);
  color: #ffffff;
  transition: all 0.2s ease;
  font-family: inherit;
  resize: vertical;
  min-height: 80px;
}

.wptech-cta .cta-form textarea:focus {
  outline: none;
  border-color: #7456f1;
  box-shadow: 0 0 0 3px rgba(116, 86, 241, 0.1);
}

.wptech-cta .cta-note {
  font-size: 0.9em;
  color: #b0b0b0;
  margin-top: 10px;
}

/* Buttons */
.wptech-btn-primary,
.wptech-btn-secondary,
.wptech-btn-text {
  appearance: none;
  -webkit-appearance: none;
  border: none;
  outline: none;
  background: none;
  box-shadow: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wptech-btn-primary {
  background: linear-gradient(135deg, #7456f1 0%, #9c88ff 100%);
  color: #fff;
  padding: 12px 24px;
  font-size: 0.95em;
  box-shadow: 0 4px 12px rgba(116, 86, 241, 0.4);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.wptech-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(116, 86, 241, 0.5);
}

.wptech-btn-secondary {
  background: rgba(116, 86, 241, 0.1);
  color: #7456f1;
  padding: 10px 20px;
  font-size: 0.9em;
  border: 1px solid rgba(116, 86, 241, 0.2);
}

.wptech-btn-secondary:hover {
  background: rgba(116, 86, 241, 0.15);
  transform: translateY(-1px);
}

.wptech-btn-secondary:disabled {
  background: rgba(116, 86, 241, 0.05);
  color: #aaa;
  cursor: not-allowed;
  transform: none;
}

.wptech-btn-text {
  color: #7456f1;
  padding: 6px;
  font-size: 0.9em;
}

.wptech-btn-text:hover {
  background: rgba(116, 86, 241, 0.1);
  border-radius: 4px;
}

/* Initial audit */
.wptech-initial-audit {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 40px 25px;
}

.wptech-initial-title {
  font-size: 28px;
  margin-bottom: 16px;
  font-weight: 300;
  color: #333;
}

.wptech-initial-title span {
  color: #7456f1;
  font-weight: 600;
}

.wptech-initial-text {
  font-size: 1em;
  color: #555;
  margin: 0 auto 25px;
  max-width: 650px;
  line-height: 1.5;
}

.wptech-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin: 30px 0 40px;
}

.feature-box {
  background: rgba(35, 35, 45, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.feature-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.feature-box img {
  width: 48px;
  height: 48px;
  margin-bottom: 15px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.feature-box h3 {
  font-size: 1.1em;
  margin-bottom: 10px;
  color: #ffffff;
  font-weight: 600;
}

.feature-box p {
  font-size: 0.9em;
  color: #d0d0d0;
  line-height: 1.4;
}

.wptech-cta-info {
  margin: 0 auto 25px;
  font-size: 0.95em;
  color: #555;
  max-width: 650px;
}

/* Thank you */
.wptech-thankyou {
  background: rgba(40, 167, 69, 0.1);
  border: 1px solid rgba(40, 167, 69, 0.2);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  color: #28a745;
  font-size: 0.95em;
}

.wptech-thankyou p {
  margin: 0;
  line-height: 1.4;
}

.wptech-thankyou strong {
  color: #7456f1;
}

.wptech-thankyou button {
  margin-top: 12px;
  background: #7456f1;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.2s ease;
}

.wptech-thankyou button:hover {
  background: #6344e8;
  transform: translateY(-1px);
}

/* Email editing */
.wptech-email-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wptech-email-input {
  font-size: 0.9em;
  padding: 6px 10px;
  border: 1px solid #555;
  border-radius: 6px;
  background: rgba(40, 40, 50, 0.9);
  color: #ffffff;
  transition: all 0.2s ease;
}

.wptech-email-input:focus {
  outline: none;
  border-color: #7456f1;
  box-shadow: 0 0 0 2px rgba(116, 86, 241, 0.1);
}

/* Placeholder styling */
.wptech-cta .cta-form textarea::placeholder {
  color: #888;
}

.wptech-email-input::placeholder {
  color: #888;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawCircle {
  to {
    stroke-dasharray: var(--circle-percent, 100), 100;
  }
}

.score-circle .meter,
.category-circle .circle-meter {
  stroke-dasharray: 0, 100;
  animation: drawCircle 1.2s ease forwards;
}

.score-circle .meter {
  animation-delay: 0.3s;
}

.category-circle .circle-meter {
  animation-delay: 0.2s;
}

/* Mobile */
@media (max-width: 768px) {
  .wptech-wrapper {
    padding: 25px;
    margin: 20px auto;
    border-radius: 12px;
  }

  .wptech-logo img {
    max-width: 220px;
  }

  .score-circle {
    width: 260px;
    height: 260px;
  }

  .score-content .feedback {
    font-size: 20px;
    white-space: nowrap;
  }

  .score-content .percent {
    font-size: 18px;
    white-space: nowrap;
  }

  .wptech-categories {
    gap: 15px;
    margin-bottom: 35px;
  }

  .category-circle {
    width: 70px;
    height: 70px;
  }

  .category-circle .circle-number {
    font-size: 13px;
  }

  .category-circle .circle-label {
    font-size: 12px;
  }

  .check-item {
    padding: 14px 16px;
    font-size: 0.9em;
  }

  .check-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .wptech-cta {
    flex-direction: column;
    padding: 25px 20px;
    gap: 20px;
  }

  .wptech-cta .cta-image img {
    max-width: 200px;
  }

  .wptech-features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .wptech-initial-title {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .wptech-wrapper {
    padding: 20px;
    margin: 15px;
  }

  .score-circle {
    width: 220px;
    height: 220px;
  }

  .score-content .feedback {
    font-size: 18px;
    white-space: nowrap;
  }

  .score-content .percent {
    font-size: 16px;
    white-space: nowrap;
  }

  .wptech-categories {
    gap: 12px;
  }

  .category-circle {
    width: 60px;
    height: 60px;
  }
}

/* Custom scrollbar for dark theme */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: rgba(116, 86, 241, 0.5);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(116, 86, 241, 0.7);
}

/* Large screens */
@media (min-width: 1400px) {
  .wptech-wrapper {
    max-width: 1300px;
    padding: 50px;
  }
  
  .score-circle {
    width: 380px;
    height: 380px;
  }
  
  .score-content .feedback {
    font-size: 30px;
    white-space: nowrap;
  }
  
  .score-content .percent {
    font-size: 26px;
    white-space: nowrap;
  }
}