/* ===================================
   🧩 COMPONENTS - Buttons, Cards, Forms
   =================================== */

/* ===================================
   BUTTONS
   =================================== */

.btn {
  display: inline-block;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

/* Secondary Button */
.btn-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--text-color);
}

.btn-secondary:hover {
  background-color: var(--text-color);
  color: var(--background-color);
}

/* Button Animation Effect */
.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}

.btn:hover::after {
  transform: translate(-50%, -50%) scale(2);
  opacity: 1;
}

/* Button Sizes */
.btn-sm {
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-lg {
  padding: 15px 40px;
  font-size: 1.1rem;
}

/* ===================================
   CARDS
   =================================== */

.card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-lg);
}

.card-header {
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--text-color);
}

.card-body {
  color: var(--text-secondary);
  line-height: 1.6;
}

.card-footer {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* Feature Card */
.feature-card {
  text-align: center;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  transition: transform var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.feature-card p {
  flex-grow: 1;
}

/* ===================================
   FORMS
   =================================== */

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  background-color: var(--card-bg);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===================================
   IMAGE PLACEHOLDER
   =================================== */

.image-placeholder {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px;
  text-align: center;
  min-height: 300px;
}

.image-placeholder i {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  opacity: 0.7;
}

.image-placeholder p {
  font-size: 1.2rem;
  color: var(--text-secondary);
}

/* ===================================
   BADGES
   =================================== */

.badge {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 50px;
  background-color: var(--primary-color);
  color: white;
}

.badge-secondary {
  background-color: var(--text-secondary);
}

.badge-success {
  background-color: #27ae60;
}

.badge-warning {
  background-color: #f39c12;
}

.badge-danger {
  background-color: var(--accent-color);
}

/* ===================================
   DIVIDER
   =================================== */

.divider {
  height: 1px;
  background-color: var(--border-color);
  margin: var(--space-lg) 0;
}

/* ===================================
   SECTION HEADER
   =================================== */

.section-header {
  text-align: center;
  margin-bottom: 70px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

/* ===================================
   📱 RESPONSIVE
   =================================== */

@media screen and (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.95rem;
  }
  
  .card {
    padding: 25px;
  }
  
  .feature-icon {
    font-size: 2.5rem;
  }
}

@media screen and (max-width: 480px) {
  .section-header {
    margin-bottom: 50px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .card {
    padding: 20px;
  }
}
