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

body {
  font-family: 'Inter', sans-serif;
  background-color: #0a0a12;
  color: #e2e8f0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  background-color: #12121c;
  border-bottom: 1px solid #1e1e2e;
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.logo h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #e2e8f0;
}

.logo h1 span {
  color: #7c3aed;
}

.logo p {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.search-box {
  width: 100%;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #1e1e2e;
  background-color: #0a0a12;
  color: #e2e8f0;
  font-size: 0.875rem;
}

.search-box input::placeholder {
  color: #64748b;
}

.search-box input:focus {
  outline: none;
  border-color: #7c3aed;
}

/* Main Content */
main {
  padding: 3rem 1rem;
}

.category-section {
  margin-bottom: 4rem;
}

.category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.category-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.category-header h2::before {
  content: '';
  width: 4px;
  height: 2rem;
  background-color: #7c3aed;
  border-radius: 2px;
}

.category-header .divider {
  flex: 1;
  height: 1px;
  background-color: #1e1e2e;
}

.category-header .count {
  font-size: 0.875rem;
  color: #64748b;
  background-color: #12121c;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #1e1e2e;
}

/* Sites Grid */
.sites-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .sites-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sites-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Site Card */
.site-card {
  background-color: #12121c;
  border: 1px solid #1e1e2e;
  border-radius: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.site-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.site-card.blocked {
  opacity: 0.6;
  filter: grayscale(100%);
}

.site-card.blocked:hover {
  filter: grayscale(0%);
  opacity: 1;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.card-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-logo {
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
}

.card-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.blocked .card-logo {
  background: linear-gradient(135deg, #374151, #1f2937);
}

.card-title h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #e2e8f0;
  transition: color 0.3s;
}

.site-card:hover .card-title h3 {
  color: #7c3aed;
}

.card-title span {
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blocked-icon {
  background-color: rgba(239, 68, 68, 0.2);
  color: #f87171;
  padding: 0.375rem;
  border-radius: 9999px;
  font-size: 0.875rem;
}

.card-description {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-action {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #7c3aed;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.3s;
}

.site-card:hover .card-action {
  opacity: 1;
  transform: translateY(0);
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background-color: #12121c;
  border-radius: 1rem;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #1e1e2e;
  position: relative;
}

@media (min-width: 768px) {
  .modal {
    flex-direction: row;
    height: 600px;
  }
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.modal-close:hover {
  background-color: #1e1e2e;
  color: #e2e8f0;
}

.modal-sidebar {
  padding: 1.5rem;
  background-color: #0a0a12;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

@media (min-width: 768px) {
  .modal-sidebar {
    width: 33%;
    border-right: 1px solid #1e1e2e;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(124, 58, 237, 0.1));
  border: 1px solid #1e1e2e;
}

.modal-logo img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.modal-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e2e8f0;
}

.modal-category {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background-color: #1e1e2e;
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.modal-description {
  flex: 1;
}

.modal-description h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #e2e8f0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.modal-description p {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.6;
}

.blocked-warning {
  display: none;
  background-color: rgba(127, 29, 29, 0.3);
  border: 1px solid rgba(153, 27, 27, 0.5);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-top: 1.5rem;
}

.blocked-warning.active {
  display: block;
}

.blocked-warning strong {
  color: #f87171;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.blocked-warning p {
  font-size: 0.75rem;
  color: rgba(248, 113, 113, 0.8);
}

.visit-btn {
  margin-top: 1.5rem;
  padding: 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  background-color: #7c3aed;
  color: white;
}

.visit-btn:hover {
  background-color: #6d28d9;
  transform: scale(1.02);
}

.visit-btn.disabled {
  background-color: #374151;
  color: #6b7280;
  cursor: not-allowed;
}

.visit-btn.disabled:hover {
  transform: none;
}

/* Modal Preview */
.modal-preview {
  flex: 1;
  background-color: #1e293b;
  display: flex;
  flex-direction: column;
  min-height: 300px;
}

@media (min-width: 768px) {
  .modal-preview {
    width: 67%;
  }
}

.browser-bar {
  background-color: #1e293b;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #334155;
}

.browser-dots {
  display: flex;
  gap: 0.375rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #f87171; }
.dot.yellow { background-color: #fbbf24; }
.dot.green { background-color: #4ade80; }

.browser-url {
  flex: 1;
  margin-left: 1rem;
  background-color: rgba(15, 23, 42, 0.5);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.iframe-container {
  flex: 1;
  position: relative;
  background-color: white;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.iframe-container iframe.blocked {
  filter: grayscale(100%) blur(4px);
  opacity: 0.5;
}

/* Wasted Overlay */
.wasted-overlay {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.8) 100%);
  backdrop-filter: blur(2px);
}

.wasted-overlay.active {
  display: flex;
}

.wasted-text {
  font-family: 'Architects Daughter', cursive;
  font-size: 6rem;
  text-transform: uppercase;
  color: #bd2525;
  text-shadow: 
    3px 3px 0px #000,
    -2px -2px 0 #000,
    2px -2px 0 #000,
    -2px 2px 0 #000,
    2px 2px 0 #000;
  letter-spacing: 0.1em;
  transform: rotate(-5deg);
  user-select: none;
  animation: wastedPulse 0.5s ease-out;
}

@keyframes wastedPulse {
  0% {
    transform: scale(0.5) rotate(-15deg);
    opacity: 0;
  }
  100% {
    transform: scale(1) rotate(-5deg);
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .wasted-text {
    font-size: 8rem;
  }
}

/* Footer */
.footer {
  background-color: #12121c;
  border-top: 1px solid #1e1e2e;
  padding: 3rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer p {
  color: #64748b;
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: #64748b;
  font-size: 1.25rem;
}
