modern-theme.css

2.91 KB
05/11/2024 05:56
CSS
modern-theme.css
:root {
  /* Color Scheme */
  --primary-gradient: linear-gradient(135deg, #FF9933 0%, #FF8133 100%);
  --secondary-gradient: linear-gradient(135deg, #663300 0%, #4D2600 100%);
  --accent-gradient: linear-gradient(135deg, #FFE338 0%, #FFD700 100%);
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  /* Border Radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 2rem;
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
}
/* Modern Card Design */
.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
/* Modern Buttons */
.button-modern {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.button-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg,
      transparent,
      rgba(255, 255, 255, 0.3),
      transparent);
  transition: 0.5s;
}
.button-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 153, 51, 0.4);
}
.button-modern:hover::before {
  left: 100%;
}
/* Modern Input Fields */
.input-modern {
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition: all 0.3s ease;
  width: 100%;
  font-size: 1rem;
}
.input-modern:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(255, 153, 51, 0.2);
  outline: none;
}
/* Loading Animations */
.loading-skeleton {
  background: linear-gradient(90deg,
      #f0f0f0 25%,
      #f8f8f8 50%,
      #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
/* Modern Grid Layout */
.grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  padding: var(--space-lg);
}
/* Responsive Typography */
@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
}
@media (max-width: 767px) {
  html {
    font-size: 14px;
  }
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 2rem;
  }
  h3 {
    font-size: 1.5rem;
  }
}