/* ============================================
   GLYCON PAGE COMPONENTS
   Inner pages, forms, and common elements
   ============================================ */

/* ============================================
   PAGE HERO / BREADCRUMB
   ============================================ */
.g-page-hero {
  background: linear-gradient(135deg, var(--g-secondary) 0%, var(--g-primary) 100%);
  padding: var(--g-space-8) 0;
  color: var(--g-white);
}

.g-page-hero-content {
  text-align: center;
}

.g-page-hero-title {
  font-size: var(--g-font-size-4xl);
  font-weight: var(--g-font-weight-extrabold);
  margin-bottom: var(--g-space-3);
}

.g-page-hero-desc {
  font-size: var(--g-font-size-lg);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--g-space-5);
}

.g-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--g-space-2);
  font-size: var(--g-font-size-sm);
}

.g-breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color var(--g-transition-fast);
}

.g-breadcrumb a:hover {
  color: var(--g-white);
  transform: none;
}

.g-breadcrumb-sep {
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.g-breadcrumb span:last-child {
  color: var(--g-white);
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.g-content-section {
  padding: var(--g-space-10) 0;
}

.g-content-section-sm {
  padding: var(--g-space-6) 0;
}

.g-content-section-gray {
  background: var(--g-bg-secondary);
}

/* ============================================
   SOFTWARE DETAIL PAGE
   ============================================ */
.g-software-detail {
  padding: var(--g-space-16) 0;
}

.g-software-detail-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--g-space-12);
  align-items: start;
}

.g-software-detail-gallery {
  position: relative;
}

.g-software-detail-main-image {
  width: 100%;
  max-width: 100%;
  max-height: 450px;
  object-fit: contain;
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-lg);
  margin-bottom: var(--g-space-4);
  background: var(--g-gray-50);
  display: block;
}

/* Fix images inside software content */
.g-software-content img {
  max-width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  border-radius: var(--g-radius-lg);
  margin: var(--g-space-4) 0;
}

.g-software-content .g-card img,
.g-software-content .g-card-body img {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

.g-software-detail-thumbs {
  display: flex;
  gap: var(--g-space-3);
}

.g-software-detail-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--g-radius-md);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--g-transition-fast);
}

.g-software-detail-thumb:hover,
.g-software-detail-thumb.g-active {
  border-color: var(--g-primary);
}

.g-software-detail-sidebar {
  position: sticky;
  top: 100px;
}

.g-software-detail-card {
  background: var(--g-white);
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-lg);
  overflow: hidden;
}

.g-software-detail-card-header {
  padding: var(--g-space-6);
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-secondary) 100%);
  color: var(--g-white);
}

.g-software-detail-card-title {
  font-size: var(--g-font-size-xl);
  font-weight: var(--g-font-weight-bold);
  margin-bottom: var(--g-space-2);
}

.g-software-detail-card-subtitle {
  font-size: var(--g-font-size-sm);
  opacity: 0.9;
}

.g-software-detail-card-body {
  padding: var(--g-space-6);
}

.g-software-detail-price {
  text-align: center;
  padding-bottom: var(--g-space-5);
  margin-bottom: var(--g-space-5);
  border-bottom: 1px solid var(--g-border-light);
}

.g-software-detail-price-label {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-tertiary);
  margin-bottom: var(--g-space-1);
}

.g-software-detail-price-amount {
  font-size: var(--g-font-size-4xl);
  font-weight: var(--g-font-weight-extrabold);
  color: var(--g-primary);
}

.g-software-detail-price-period {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
}

.g-software-detail-features {
  margin-bottom: var(--g-space-6);
}

.g-software-detail-feature {
  display: flex;
  align-items: center;
  gap: var(--g-space-3);
  padding: var(--g-space-3) 0;
  border-bottom: 1px solid var(--g-border-light);
}

.g-software-detail-feature:last-child {
  border-bottom: none;
}

.g-software-detail-feature i {
  color: var(--g-accent);
  font-size: var(--g-font-size-sm);
}

.g-software-detail-feature span {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
}

.g-software-detail-actions {
  display: flex;
  flex-direction: column;
  gap: var(--g-space-3);
}

/* Software Content */
.g-software-content {
  margin-top: var(--g-space-12);
}

.g-software-content h2 {
  font-size: var(--g-font-size-2xl);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-4);
  padding-bottom: var(--g-space-3);
  border-bottom: 2px solid var(--g-primary);
}

.g-software-content p {
  font-size: var(--g-font-size-base);
  color: var(--g-text-secondary);
  line-height: var(--g-line-height-relaxed);
  margin-bottom: var(--g-space-4);
}

.g-software-content ul {
  margin-bottom: var(--g-space-6);
  padding-left: var(--g-space-6);
}

.g-software-content li {
  font-size: var(--g-font-size-base);
  color: var(--g-text-secondary);
  line-height: var(--g-line-height-relaxed);
  margin-bottom: var(--g-space-2);
}

/* ============================================
   HOSTING / PACKAGES PAGE
   ============================================ */
.g-packages-section {
  padding: var(--g-space-16) 0;
}

.g-packages-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: var(--g-space-6) !important;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.g-package-card {
  background: var(--g-white);
  border-radius: var(--g-radius-xl);
  border: 1px solid var(--g-border-light);
  overflow: hidden;
  transition: all var(--g-transition-normal);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.g-package-card:hover {
  box-shadow: var(--g-shadow-xl);
  transform: translateY(-4px);
}

.g-package-card-featured {
  border-color: var(--g-primary);
  box-shadow: var(--g-shadow-primary);
}

.g-package-card-featured:hover {
  box-shadow: 0 20px 40px rgba(63, 147, 214, 0.3);
}

.g-package-card-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-accent) 100%);
  color: var(--g-white);
  padding: var(--g-space-2) var(--g-space-5);
  font-size: var(--g-font-size-xs);
  font-weight: var(--g-font-weight-bold);
  border-radius: 0 0 var(--g-radius-lg) var(--g-radius-lg);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(63, 147, 214, 0.3);
  z-index: 10;
}

.g-package-card-header {
  padding: var(--g-space-6);
  padding-top: var(--g-space-8);
  text-align: center;
  border-bottom: 1px solid var(--g-border-light);
}

.g-package-card-featured .g-package-card-header {
  padding-top: var(--g-space-10);
}

.g-package-card-title {
  font-size: var(--g-font-size-xl);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-2);
}

.g-package-card-desc {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-tertiary);
}

.g-package-card-price {
  padding: var(--g-space-6);
  text-align: center;
  background: var(--g-gray-50);
}

.g-package-card-featured .g-package-card-price {
  background: linear-gradient(135deg, var(--g-primary-light) 0%, rgba(58, 216, 182, 0.1) 100%);
}

.g-package-card-price-amount {
  font-size: var(--g-font-size-3xl);
  font-weight: var(--g-font-weight-extrabold);
  color: var(--g-primary);
  line-height: 1.2;
}

.g-package-card-price-period {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
  margin-top: var(--g-space-1);
}

.g-package-card-features {
  padding: var(--g-space-6);
  flex: 1;
}

.g-package-card-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--g-space-3);
  padding: var(--g-space-2) 0;
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
  border-bottom: 1px solid var(--g-border-light);
}

.g-package-card-feature:last-child {
  border-bottom: none;
}

.g-package-card-feature i {
  color: var(--g-success);
  font-size: var(--g-font-size-sm);
  margin-top: 2px;
  flex-shrink: 0;
}

.g-package-card-feature span {
  line-height: 1.5;
}

.g-package-card-feature strong {
  color: var(--g-text-primary);
  font-weight: var(--g-font-weight-semibold);
}

.g-package-card-footer {
  padding: var(--g-space-6);
  padding-top: 0;
  margin-top: auto;
}

.g-package-card-footer .g-btn {
  width: 100%;
  justify-content: center;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.g-contact-section {
  padding: var(--g-space-10) 0;
}

.g-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--g-space-12);
}

.g-contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: var(--g-space-4);
  padding: var(--g-space-6);
  background: var(--g-white);
  border-radius: var(--g-radius-lg);
  border: 1px solid var(--g-border-light);
  margin-bottom: var(--g-space-4);
}

.g-contact-info-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-primary-light);
  border-radius: var(--g-radius-md);
  color: var(--g-primary);
  font-size: var(--g-font-size-lg);
  flex-shrink: 0;
}

.g-contact-info-title {
  font-size: var(--g-font-size-base);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-1);
}

.g-contact-info-text {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
}

.g-contact-info-text a {
  color: var(--g-primary);
  text-decoration: none;
}

.g-contact-form-card {
  background: var(--g-white);
  border-radius: var(--g-radius-xl);
  padding: var(--g-space-8);
  box-shadow: var(--g-shadow-lg);
}

.g-contact-form-title {
  font-size: var(--g-font-size-2xl);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-6);
}

/* ============================================
   AUTH PAGES (Login, Register)
   ============================================ */
.g-auth-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--g-space-12) 0;
  background: var(--g-bg-secondary);
}

.g-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--g-white);
  border-radius: var(--g-radius-2xl);
  box-shadow: var(--g-shadow-xl);
  overflow: hidden;
}

.g-auth-header {
  padding: var(--g-space-8);
  text-align: center;
  background: linear-gradient(135deg, var(--g-primary) 0%, var(--g-secondary) 100%);
  color: var(--g-white);
}

.g-auth-logo {
  margin-bottom: var(--g-space-4);
}

.g-auth-logo img {
  height: 40px;
  filter: brightness(0) invert(1);
}

.g-auth-title {
  font-size: var(--g-font-size-2xl);
  font-weight: var(--g-font-weight-bold);
  margin-bottom: var(--g-space-2);
}

.g-auth-subtitle {
  font-size: var(--g-font-size-sm);
  opacity: 0.9;
}

.g-auth-body {
  padding: var(--g-space-8);
}

.g-auth-footer {
  padding: var(--g-space-6);
  text-align: center;
  background: var(--g-gray-50);
  border-top: 1px solid var(--g-border-light);
}

.g-auth-footer p {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
  margin: 0;
}

.g-auth-footer a {
  color: var(--g-primary);
  font-weight: var(--g-font-weight-semibold);
  text-decoration: none;
}

/* ============================================
   ORDER STEPS
   ============================================ */
.g-order-steps {
  display: flex;
  justify-content: center;
  margin-bottom: var(--g-space-10);
}

.g-order-step {
  display: flex;
  align-items: center;
  gap: var(--g-space-3);
  padding: var(--g-space-4) var(--g-space-6);
  position: relative;
}

.g-order-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 2px;
  background: var(--g-border-light);
}

.g-order-step-number {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-gray-200);
  border-radius: var(--g-radius-full);
  font-size: var(--g-font-size-sm);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-tertiary);
}

.g-order-step.g-active .g-order-step-number {
  background: var(--g-primary);
  color: var(--g-white);
}

.g-order-step.g-completed .g-order-step-number {
  background: var(--g-success);
  color: var(--g-white);
}

.g-order-step-text {
  font-size: var(--g-font-size-sm);
  font-weight: var(--g-font-weight-medium);
  color: var(--g-text-tertiary);
}

.g-order-step.g-active .g-order-step-text {
  color: var(--g-text-primary);
}

/* ============================================
   BASKET / CART
   ============================================ */
.g-basket-section {
  padding: var(--g-space-16) 0;
}

.g-basket-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--g-space-8);
  align-items: start;
}

.g-basket-items {
  background: var(--g-white);
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-md);
  overflow: hidden;
}

.g-basket-item {
  display: flex;
  align-items: center;
  gap: var(--g-space-5);
  padding: var(--g-space-5);
  border-bottom: 1px solid var(--g-border-light);
}

.g-basket-item:last-child {
  border-bottom: none;
}

.g-basket-item-image {
  width: 80px;
  height: 60px;
  border-radius: var(--g-radius-md);
  object-fit: cover;
  background: var(--g-gray-100);
}

.g-basket-item-info {
  flex: 1;
}

.g-basket-item-title {
  font-size: var(--g-font-size-base);
  font-weight: var(--g-font-weight-semibold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-1);
}

.g-basket-item-meta {
  font-size: var(--g-font-size-sm);
  color: var(--g-text-tertiary);
}

.g-basket-item-price {
  font-size: var(--g-font-size-lg);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-primary);
}

.g-basket-item-remove {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--g-error-light);
  border: none;
  border-radius: var(--g-radius-md);
  color: var(--g-error);
  cursor: pointer;
  transition: all var(--g-transition-fast);
}

.g-basket-item-remove:hover {
  background: var(--g-error);
  color: var(--g-white);
}

.g-basket-summary {
  background: var(--g-white);
  border-radius: var(--g-radius-xl);
  box-shadow: var(--g-shadow-md);
  padding: var(--g-space-6);
  position: sticky;
  top: 100px;
}

.g-basket-summary-title {
  font-size: var(--g-font-size-lg);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-5);
  padding-bottom: var(--g-space-4);
  border-bottom: 1px solid var(--g-border-light);
}

.g-basket-summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--g-space-3) 0;
  font-size: var(--g-font-size-sm);
  color: var(--g-text-secondary);
}

.g-basket-summary-total {
  display: flex;
  justify-content: space-between;
  padding: var(--g-space-4) 0;
  margin-top: var(--g-space-4);
  border-top: 2px solid var(--g-border-light);
  font-size: var(--g-font-size-lg);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
}

.g-basket-summary-total span:last-child {
  color: var(--g-primary);
}

/* ============================================
   404 PAGE
   ============================================ */
.g-404-section {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--g-space-16) 0;
}

.g-404-code {
  font-size: 120px;
  font-weight: var(--g-font-weight-extrabold);
  color: var(--g-primary);
  line-height: 1;
  margin-bottom: var(--g-space-4);
}

.g-404-title {
  font-size: var(--g-font-size-3xl);
  font-weight: var(--g-font-weight-bold);
  color: var(--g-text-primary);
  margin-bottom: var(--g-space-4);
}

.g-404-desc {
  font-size: var(--g-font-size-lg);
  color: var(--g-text-secondary);
  margin-bottom: var(--g-space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .g-packages-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 1024px) {
  .g-software-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .g-software-detail-sidebar {
    position: static;
  }
  
  .g-packages-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .g-contact-grid {
    grid-template-columns: 1fr;
  }
  
  .g-basket-grid {
    grid-template-columns: 1fr;
  }
  
  .g-basket-summary {
    position: static;
  }
  
  .g-sw-filter-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: var(--g-space-2);
    -webkit-overflow-scrolling: touch;
  }
  
  .g-sw-filter-tab {
    white-space: nowrap;
    flex-shrink: 0;
  }
}

@media (max-width: 768px) {
  .g-packages-grid {
    grid-template-columns: 1fr !important;
    gap: var(--g-space-4) !important;
  }
  
  .g-page-hero {
    padding: var(--g-space-8) 0;
  }
  
  .g-page-hero-title {
    font-size: var(--g-font-size-2xl);
  }
  
  .g-packages-grid {
    grid-template-columns: 1fr;
  }
  
  .g-order-steps {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .g-order-step:not(:last-child)::after {
    display: none;
  }
  
  .g-404-code {
    font-size: 80px;
  }
}
