/* Modern CSS Padding Demo Styles */

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

body {
  background: linear-gradient(135deg, #F8B729 50%, #07AD4A 50%);
  color: #1f2937;
  line-height: 1.6;
  min-height: 100vh;
  padding: 20px;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header Section */
.header {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.header h1 {
  font-size: 3.5em;
  font-weight: 800;
  margin-bottom: 15px;
  color: #000;
}

.highlight {
  background: #1456A7;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.3em;
  color: #6b7280;
  font-weight: 400;
}

/* Intro Section */
.intro-section {
  margin-bottom: 30px;
}

.info-card {
  background: white;
  padding: 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-left: 19px solid #EE4060;
}

.info-card h2 {
  color: #164B9B;
  font-size: 2em;
  margin-bottom: 15px;
}

.info-card p {
  font-size: 1.15em;
  color: #000;
}

/* Demo Section */
.demo-section {
  margin-bottom: 40px;
}

.section-title {
  color: white;
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 30px;
}

.demo-item {
  background: #EE4060;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.demo-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.code-label {

  background: #164B9B;
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 15px;

  font-weight: bolder;
  color: #FFF;
  border: 5px;
}

.demo-box {
  background: linear-gradient(150deg, #F7B629 0%, #07AD4A 100%);
  border-radius: 10px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 9px solid #164B9B;
  position: relative;
  overflow: hidden;
}

.demo-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.05) 10px,
    rgba(255, 255, 255, 0.05) 20px
  );
  pointer-events: none;
}

.content {
  background: rgba(255, 255, 255, 0.95);
  color: #1f2937;
  font-weight: 600;
  text-align: center;
  border-radius: 6px;
  font-size: 0.95em;
  position: relative;
  z-index: 1;
}

/* Specific demo paddings */
.demo-1 .content { padding: 25px; }
.demo-2 .content { padding: 15px 40px; }
.demo-3 .content { padding: 10px 25px 40px; }
.demo-4 .content { padding: 10px 20px 30px 40px; }

/* Syntax Section */
.syntax-section {
  margin-bottom: 40px;
}

.syntax-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.syntax-card {
  background: white;
  padding: 35px;
  border-radius: 15px;
  border-right: 19px solid #164B9B;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.syntax-card:hover {
  transform: translateY(-5px);
}

.syntax-card h3 {
  color: #164B9B;
  font-size: 1.5em;
  margin-bottom: 15px;
}

.syntax-card code {
  display: block;
  background: #f9fafb;
  padding: 15px;
  border-radius: 8px;
  border-left: 6px solid #000;
  margin: 15px 0;
  font-family: 'Courier New', monospace;
  color: #EE4060;
  font-size: 0.95em;
}

.syntax-card p {
  color: #6b7280;
  font-size: 1.05em;
}

/* Tips Section */
.tips-section {
  margin-bottom: 40px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.tip-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border-right: 19px solid #F8B729;
}

.tip-card:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.tip-icon {
  font-size: 3em;
  display: block;
  margin-bottom: 15px;
}

.tip-card h3 {
  color: #1f2937;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.tip-card p {
  color: #6b7280;
  font-size: 1.05em;
}

/* Footer */
.footer {
  background: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.footer p {
  font-size: 1.1em;
  color: #4b5563;
  margin-bottom: 15px;
}

.footer a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: #764ba2;
  border-bottom-color: #764ba2;
}

.author {
  color: #9ca3af;
  font-size: 0.95em;
  margin-top: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5em;
  }
  
  .tagline {
    font-size: 1.1em;
  }
  
  .section-title {
    font-size: 2em;
  }
  
  .demo-grid,
  .syntax-grid,
  .tips-grid {
    grid-template-columns: 1fr;
  }
}