/* Compress PDF Specific Styles */

/* ====== Why Section ====== */
.why-section {
  background: linear-gradient(135deg, #F8FBFF 0%, var(--surface) 100%);
  border-top: var(--border);
  border-bottom: var(--border);
  position: relative;
  overflow: hidden;
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}

.why-section::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.why-header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.why-header h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.why-subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.benefit-item {
  padding: 2.5rem 1.75rem;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid #E8ECEF;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.benefit-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--green) 100%);
  transform: translateX(-100%);
  transition: transform 0.35s ease;
}

.benefit-item:hover {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(14, 165, 233, 0.12);
  transform: translateY(-8px);
}

.benefit-item:hover::before {
  transform: translateX(0);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.35s ease;
}

.benefit-icon-1 {
  background: #E0F2FE;
  color: var(--primary);
}

.benefit-icon-2 {
  background: #DCFCE7;
  color: var(--green);
}

.benefit-icon-3 {
  background: #FFEDD5;
  color: var(--orange);
}

.benefit-icon-4 {
  background: #F3E8FF;
  color: #A855F7;
}

.benefit-item:hover .benefit-icon {
  transform: scale(1.1) rotate(5deg);
}

.benefit-item h3 {
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
}

.benefit-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ====== Compression Settings ====== */

.compression-options,
.file-info {
    flex: 1;
    min-width: 250px;
}

.compression-options label {
    display: block;
}

.file-info {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: var(--border);
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: var(--border);
}

.file-info-header h4 {
    margin: 0;
    font-weight: 600;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(2, 6, 23, 0.05);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--muted);
}

.info-value {
    font-weight: 600;
    color: var(--text);
}

.info-value.reduction {
    color: var(--green);
}

.preview-single {
    min-height: 300px;
}

.features-section {
    background: var(--surface);
    border-top: var(--border);
    border-bottom: var(--border);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg);
    border-radius: var(--radius);
    border: var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .controls-row {
        flex-direction: column;
        gap: 1rem;
    }

    .compression-options,
    .file-info {
        min-width: 100%;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .why-header {
        margin-bottom: 2rem;
    }
}
