/* 
 * Home Page Styles based on Ant Design principles
 * Design System: Professional, Clean, Modern
 * Note: Ant Design variables are defined in antd-variables.css
 */

/* Hero Section - Ant Design Card Style */
.hero-section {
  background: linear-gradient(135deg, var(--antd-primary) 0%, #096dd9 100%);
  position: relative;
  overflow: hidden;
  color: white;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

/* Domain Search Section - Ant Design Input Style */
.domain-search-card {
  border-radius: 8px;
  box-shadow: var(--antd-shadow);
  border: 1px solid var(--antd-border);
  transition: var(--antd-transition);
}

.domain-search-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.domain-search-card .card-body {
  padding: 24px;
}

/* Features Section - Ant Design Card Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 0 auto;
}

.feature-card {
  border-radius: 8px;
  border: 1px solid var(--antd-border);
  background: var(--antd-bg-base);
  box-shadow: var(--antd-shadow);
  transition: var(--antd-transition);
  padding: 24px;
  text-align: center;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  border-color: var(--antd-primary);
}

.feature-card .icon {
  margin-bottom: 16px;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 144, 255, 0.1);
  border-radius: 50%;
  margin-left: auto;
  margin-right: auto;
}

.feature-card h5 {
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--antd-text-primary);
}

.feature-card p {
  margin-bottom: 0;
  color: var(--antd-text-secondary);
  line-height: 1.6;
}

/* Product Cards - Ant Design Card Style */
.product-card {
  border-radius: 8px;
  border: 1px solid var(--antd-border);
  background: var(--antd-bg-base);
  box-shadow: var(--antd-shadow);
  transition: var(--antd-transition);
  height: 100%;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.product-card.featured {
  border: 2px solid var(--antd-primary);
  position: relative;
}

.product-card.featured::before {
  content: 'Featured';
  position: absolute;
  top: 12px;
  right: -10px;
  background: var(--antd-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transform: rotate(45deg);
  z-index: 1;
}

.product-card .card-header {
  background: var(--antd-primary);
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: 600;
}

.product-card .card-body {
  padding: 24px;
  text-align: center;
}

.product-card h4 {
  margin-bottom: 16px;
  font-weight: 600;
  color: var(--antd-text-primary);
}

.product-card .price {
  margin-bottom: 16px;
}

.product-card .price .current {
  font-size: 2rem;
  font-weight: 700;
  color: var(--antd-primary);
  margin-bottom: 4px;
  display: block;
}

.product-card .price .original {
  font-size: 1rem;
  color: var(--antd-text-tertiary);
  text-decoration: line-through;
  margin-bottom: 8px;
  display: block;
}

.product-card .price .period {
  color: var(--antd-text-secondary);
  font-size: 0.9rem;
}

.product-card ul {
  text-align: left;
  margin-bottom: 24px;
  padding-left: 0;
}

.product-card ul li {
  list-style: none;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.product-card ul li i {
  margin-right: 8px;
  color: var(--antd-success);
}

/* Blog Card Styles - Ant Design Card Style */
.blog-card {
  transition: var(--antd-transition);
  border-radius: 8px;
  border: 1px solid var(--antd-border);
  background: var(--antd-bg-base);
  box-shadow: var(--antd-shadow);
  height: 100%;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--antd-primary);
}

.blog-image-wrapper {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: linear-gradient(135deg, var(--antd-primary) 0%, #096dd9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--antd-transition);
}

.blog-card:hover .blog-image-wrapper img {
  transform: scale(1.05);
}

.blog-card .card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.blog-meta {
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-meta small {
  color: var(--antd-text-tertiary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-card h5 a {
  color: var(--antd-text-primary);
  transition: var(--antd-transition);
  text-decoration: none;
  display: block;
  margin-bottom: 12px;
}

.blog-card h5 a:hover {
  color: var(--antd-primary);
}

.blog-card p {
  color: var(--antd-text-secondary);
  margin-bottom: 16px;
  flex-grow: 1;
}

/* Button Styles - Ant Design Buttons */
.btn-primary {
  background: var(--antd-primary);
  border-color: var(--antd-primary);
  transition: var(--antd-transition);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--antd-primary-hover);
  border-color: var(--antd-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
}

.btn-success {
  background: var(--antd-success);
  border-color: var(--antd-success);
  transition: var(--antd-transition);
  font-weight: 500;
}

.btn-success:hover {
  background: #73d83c;
  border-color: #73d83c;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(82, 196, 26, 0.3);
}

.btn-outline-primary {
  color: var(--antd-primary);
  border-color: var(--antd-primary);
}

.btn-outline-primary:hover {
  background: var(--antd-primary);
  border-color: var(--antd-primary);
  color: white;
}

.btn-light {
  background: white;
  border-color: white;
  color: var(--antd-text-primary);
}

.btn-light:hover {
  background: #f0f0f0;
  border-color: #f0f0f0;
}

/* Section Styling */
.py-5 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.bg-light {
  background-color: var(--antd-bg-light) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--antd-primary) 0%, #096dd9 100%) !important;
}

.text-primary {
  color: var(--antd-primary) !important;
}

.text-success {
  color: var(--antd-success) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-section .row {
    text-align: center;
  }
  
  .hero-section .col-lg-6:last-child .fa-server {
    margin-top: 2rem;
  }
}

/* Accessibility & Print */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .blog-card {
    box-shadow: none;
  }
}