/* Greeting Card Generator Styles */
.gcg-container {
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Breadcrumbs */
.gcg-breadcrumbs {
  margin-bottom: 20px;
  padding: 15px 20px;
  font-size: 14px;
  color: #666;
  border-bottom: 1px solid #eee;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}

.gcg-breadcrumbs a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s;
}

.gcg-breadcrumbs a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 8px;
  color: #999;
}

.gcg-header {
  text-align: center;
  padding: 30px 20px;
  
}

.gcg-header h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.gcg-header p {
  font-size: 1.2em;
}

.gcg-main-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 200px);
}

/* Mobile First - Preview at top */
@media (max-width: 768px) {
  .gcg-main-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .gcg-preview {
    order: 1;
    position: sticky;
    top: 80px;
    z-index: 50;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  }

  .gcg-controls {
    order: 2;
    margin-top: 20px;
  }
}

.gcg-controls {
  background: #f8f9fa;
  padding: 30px;
  overflow-y: visible;
  max-height: none;
  border-right: 1px solid #e0e0e0;
}

.gcg-section {
  margin-bottom: 40px;
}

.gcg-section h3 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.4em;
  padding-bottom: 10px;
  border-bottom: 2px solid #3498db;
}

.gcg-section h3 i {
  margin-right: 10px;
  color: #3498db;
}

.gcg-select,
.gcg-input,
.gcg-textarea {
  width: 100%;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s;
  margin-bottom: 10px;
}

.gcg-select:focus,
.gcg-input:focus,
.gcg-textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.gcg-textarea {
  min-height: 120px;
  resize: vertical;
}

.gcg-templates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.template-option {
  cursor: pointer;
  transition: transform 0.3s;
}

.template-option:hover {
  transform: scale(1.05);
}

.template-preview {
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  color: white;
  font-weight: bold;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.template-preview i {
  font-size: 2.5em;
  margin-bottom: 15px;
  display: block;
}

.classic-template {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.modern-template {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.elegant-template {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.festive-template {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.template-option.active .template-preview {
  box-shadow: 0 0 25px rgba(52, 152, 219, 0.8);
  transform: scale(1.1);
  border: 3px solid #3498db;
}

.gcg-names {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.gcg-image-upload {
  text-align: center;
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 10px;
  transition: border-color 0.3s;
  background: transparent;
}

.gcg-image-upload:hover {
  border-color: #3498db;
}

.gcg-btn {
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
  margin: 8px;
  min-width: 150px;
}

.gcg-btn i {
  margin-right: 10px;
}

.gcg-btn-primary {
  background: #3498db;
  color: white;
}

.gcg-btn-primary:hover {
  background: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.gcg-btn-secondary {
  background: #95a5a6;
  color: white;
}

.gcg-btn-secondary:hover {
  background: #7f8c8d;
  transform: translateY(-2px);
}

.gcg-btn-success {
  background: #25d366;
  color: white;
}

.gcg-btn-success:hover {
  background: #128c7e;
  transform: translateY(-2px);
}

.gcg-btn-info {
  background: #1877f2;
  color: white;
}

.gcg-btn-info:hover {
  background: #166fe5;
  transform: translateY(-2px);
}

.gcg-btn-warning {
  background: #f39c12;
  color: white;
}

.gcg-btn-warning:hover {
  background: #e67e22;
  transform: translateY(-2px);
}

.gcg-preview {
  background: white;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border-left: 1px solid #e0e0e0;
}

.gcg-preview h3 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 1.4em;
  text-align: center;
  width: 100%;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.card-preview {
  margin-bottom: 30px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.card-content {
  width: 400px;
  min-height: 500px;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.card-header {
  text-align: center;
  margin-bottom: 30px;
}

.card-icon {
  font-size: 3.5em;
  margin-bottom: 20px;
  display: block;
}

.occasion-title {
  font-size: 2.2em;
  margin: 0;
  font-weight: bold;
}

.card-body {
  text-align: center;
}

.card-image-container {
  margin-bottom: 25px;
}

.card-image-container img {
  max-width: 180px;
  max-height: 180px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-message {
  margin: 35px 0;
  padding: 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.card-message p {
  font-size: 1.3em;
  line-height: 1.7;
  margin: 0;
}

.card-names {
  margin-top: 35px;
}

.recipient-name {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 25px;
}

.sender-name {
  font-size: 1.2em;
  font-style: italic;
}

.gcg-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.gcg-ai-suggestions {
  margin-top: 15px;
}

#image-preview {
  margin-top: 20px;
}

#image-preview img {
  max-width: 250px;
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Customization Styles */
.gcg-subsection {
  margin-bottom: 35px;
  padding: 25px;
  background: white;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.gcg-subsection h4 {
  color: #2c3e50;
  margin-bottom: 20px;
  font-size: 1.2em;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

.gcg-subsection h4 i {
  margin-right: 10px;
  color: #3498db;
}

/* Typography Controls */
.gcg-typography-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-group label {
  font-weight: bold;
  color: #2c3e50;
  font-size: 15px;
}

.gcg-range {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
  margin: 10px 0;
}

.gcg-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gcg-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Color Controls */
.gcg-color-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.color-control-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.color-picker-wrapper {
  display: flex;
  gap: 15px;
  align-items: center;
}

.color-picker-wrapper input[type="color"] {
  width: 60px;
  height: 50px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hex-input {
  flex: 1;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 16px;
}

/* Background Controls */
.bg-type-selector {
  margin-bottom: 25px;
}

.bg-type-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.bg-type-btn {
  padding: 15px 20px;
  border: 2px solid #ddd;
  background: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  text-align: center;
}

.bg-type-btn.active,
.bg-type-btn:hover {
  border-color: #3498db;
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.bg-control-panel {
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
}

.gradient-colors {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Pattern Controls */
.pattern-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pattern-option {
  text-align: center;
  cursor: pointer;
  padding: 15px;
  border: 2px solid transparent;
  border-radius: 8px;
  transition: all 0.3s;
}

.pattern-option:hover,
.pattern-option.active {
  border-color: #3498db;
  background: #f0f8ff;
  transform: translateY(-2px);
}

.pattern-preview {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 6px;
}

.dots-pattern {
  background: radial-gradient(circle, #3498db 2px, transparent 2px);
  background-size: 15px 15px;
}

.stripes-pattern {
  background: repeating-linear-gradient(45deg, #3498db, #3498db 5px, transparent 5px, transparent 10px);
}

.waves-pattern {
  background: linear-gradient(45deg, #3498db 25%, transparent 25%),
    linear-gradient(-45deg, #3498db 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #3498db 75%),
    linear-gradient(-45deg, transparent 75%, #3498db 75%);
  background-size: 20px 20px;
}

.geometric-pattern {
  background: conic-gradient(from 0deg, #3498db, transparent, #3498db);
  background-size: 20px 20px;
}

.pattern-color-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

/* Border and Layout Controls */
.gcg-border-controls,
.gcg-layout-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* Preset Styles */
.preset-styles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 15px;
}

.preset-btn {
  padding: 15px 25px;
  border: 2px solid #3498db;
  background: white;
  color: #3498db;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  text-align: center;
}

.preset-btn:hover {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* Background Image Preview */
#bg-image-preview {
  margin-top: 20px;
}

#bg-image-preview img {
  max-width: 250px;
  max-height: 200px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Enhanced Card Styles */
.card-content.custom-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.card-content.pattern-bg {
  background-size: 20px 20px;
}

/* Related Occasions */
.gcg-related-occasions {
  margin-top: 50px;
  padding: 40px 30px;
  background: #f8f9fa;
  border-radius: 15px;
}

.gcg-related-occasions h3 {
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 1.4em;
  text-align: center;
}

.gcg-related-occasions h3 i {
  margin-right: 10px;
  color: #3498db;
}

.related-occasions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.related-occasion-item {
  background: white;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.related-occasion-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
  color: #2c3e50;
  text-decoration: none;
}

.related-occasion-item.view-all {
  background: #3498db;
  color: white;
}

.related-occasion-item.view-all:hover {
  background: #2980b9;
  color: white;
}

.related-occasion-icon {
  font-size: 3em;
  margin-bottom: 20px;
  color: #3498db;
}

.related-occasion-item.view-all .related-occasion-icon {
  color: white;
}

.related-occasion-name {
  font-weight: bold;
  font-size: 1.2em;
}

/* Greeting Card Types Page */
.gcg-types-container {
  max-width: 100%;
  margin: 0;
  padding: 30px;
  min-height: 100vh;
  background: #f8f9fa;
}

.gcg-types-header {
  text-align: center;
  margin-bottom: 50px;
  padding: 40px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 15px;
}

.gcg-types-header h1 {
  color: white;
  font-size: 2.8em;
  margin-bottom: 15px;
}

.gcg-types-header p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.3em;
}

.gcg-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.gcg-type-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  color: #2c3e50;
  transition: all 0.3s;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border: 2px solid transparent;
}

.gcg-type-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
  color: #2c3e50;
  text-decoration: none;
}

.gcg-type-icon {
  font-size: 4.5em;
  margin-bottom: 25px;
  color: #3498db;
}

.gcg-type-card h3 {
  font-size: 1.6em;
  margin-bottom: 20px;
  color: #2c3e50;
}

.gcg-type-card p {
  color: #7f8c8d;
  line-height: 1.7;
  margin-bottom: 25px;
  font-size: 1.1em;
}

.gcg-type-action {
  margin-top: 25px;
}

.gcg-btn-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #3498db;
  font-weight: bold;
  transition: all 0.3s;
  font-size: 1.1em;
}

.gcg-type-card:hover .gcg-btn-link {
  color: #2980b9;
}

/* Loading States */
.gcg-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  z-index: 1000;
}

.gcg-loading {
  display: inline-block;
  width: 30px;
  height: 30px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Bengali Font Support */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@300;400;500;600;700&display=swap");

/* Mobile Floating Menu System */
.gcg-mobile-menu {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  padding: 15px 0 10px;
}

.gcg-mobile-menu-tabs {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gcg-mobile-menu-tabs::-webkit-scrollbar {
  display: none;
}

.gcg-mobile-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 15px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  min-width: 70px;
  text-align: center;
  background: transparent;
  border: none;
  color: #666;
}

.gcg-mobile-tab.active {
  background: #3498db;
  color: white;
  transform: translateY(-2px);
}

.gcg-mobile-tab i {
  font-size: 20px;
  margin-bottom: 5px;
}

.gcg-mobile-tab span {
  font-size: 11px;
  font-weight: 500;
}

.gcg-mobile-panel {
  position: fixed;
  bottom: 80px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
  max-height: 60vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 999;
  padding: 20px;
  
}

.gcg-mobile-panel.active {
  transform: translateY(0);
}

.gcg-mobile-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid #3498db;
}

.gcg-mobile-panel-title {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

.gcg-mobile-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 5px;
}

.gcg-mobile-close:hover {
  color: #e74c3c;
}

/* Mobile Panel Content Styles */
.gcg-mobile-content {
  display: grid;
  gap: 20px;
}

.gcg-mobile-quick-colors {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.gcg-quick-color {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
}

.gcg-quick-color.active {
  border-color: #3498db;
  transform: scale(1.1);
}

.gcg-quick-color::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: inherit;
}

.gcg-mobile-templates {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.gcg-mobile-template {
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.gcg-mobile-template.active {
  border-color: #3498db;
  transform: scale(1.05);
}

.gcg-mobile-template-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  text-align: center;
  padding: 10px;
}

.gcg-mobile-template-content i {
  font-size: 24px;
  margin-bottom: 8px;
}

.gcg-mobile-slider-group {
  margin-bottom: 20px;
}

.gcg-mobile-slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-weight: bold;
  color: #2c3e50;
}

.gcg-mobile-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.gcg-mobile-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gcg-mobile-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3498db;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.gcg-mobile-bg-types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.gcg-mobile-bg-type {
  padding: 15px;
  border: 2px solid #ddd;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.gcg-mobile-bg-type.active {
  border-color: #3498db;
  background: #3498db;
  color: white;
}

.gcg-mobile-bg-type i {
  font-size: 20px;
  margin-bottom: 5px;
  display: block;
}

.gcg-mobile-patterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gcg-mobile-pattern {
  aspect-ratio: 1;
  border: 3px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  overflow: hidden;
}

.gcg-mobile-pattern.active {
  border-color: #3498db;
  transform: scale(1.1);
}

.gcg-mobile-pattern-preview {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.gcg-mobile-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gcg-mobile-preset {
  padding: 15px;
  border: 2px solid #3498db;
  border-radius: 25px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
  color: #3498db;
  font-weight: bold;
}

.gcg-mobile-preset:hover {
  background: #3498db;
  color: white;
}

/* Mobile Upload Button */
.gcg-mobile-upload {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.gcg-mobile-upload-btn {
  padding: 20px;
  border: 2px dashed #3498db;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: #f8f9fa;
}

.gcg-mobile-upload-btn:hover {
  background: #e3f2fd;
  border-color: #2980b9;
}

.gcg-mobile-upload-btn i {
  font-size: 24px;
  margin-bottom: 10px;
  display: block;
  color: #3498db;
}

/* Mobile Color Picker */
.gcg-mobile-color-picker {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
}

.gcg-mobile-color-picker input[type="color"] {
  width: 50px;
  height: 50px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
}

.gcg-mobile-color-picker .hex-input {
  flex: 1;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  text-transform: uppercase;
}

/* Mobile Actions */
.gcg-mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 20px;
}

.gcg-mobile-action-btn {
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gcg-mobile-action-btn.primary {
  background: #3498db;
  color: white;
}

.gcg-mobile-action-btn.secondary {
  background: #95a5a6;
  color: white;
}

.gcg-mobile-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Mobile Overlay */
.gcg-mobile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
}

.gcg-mobile-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Hide desktop controls on mobile */
@media (max-width: 768px) {
  .gcg-controls {
    display: none;
  }

  .gcg-mobile-menu {
    display: block;
  }

  .gcg-main-content {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding-bottom: 180px;
  }

  .gcg-preview {
    order: 1;
    position: relative;
    top: 0;
    z-index: 1;
    background: white;
    box-shadow: none;
    border: none;
    padding: 20px 15px 20px;
  }

  .gcg-actions {
    bottom: 100px;
    left: 15px;
    right: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    border: 1px solid #e0e0e0;
  }

  .gcg-actions .gcg-btn {
    margin: 0;
    padding: 12px 15px;
    font-size: 14px;
    min-width: auto;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .gcg-header {
    padding: 20px 15px;
  }

  .gcg-header h1 {
    font-size: 2em;
  }

  .gcg-header p {
    font-size: 1em;
  }

  .gcg-controls {
    padding: 20px 15px;
    border-right: none;
    border-top: 1px solid #e0e0e0;
  }

  .gcg-preview {
    padding: 20px 15px;
    border-left: none;
  }

  .card-content {
    width: 100%;
    max-width: 320px;
    min-height: 400px;
    padding: 20px;
  }

  .gcg-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gcg-btn {
    width: 100%;
    margin: 5px 0;
  }

  .gcg-templates {
    grid-template-columns: repeat(2, 1fr);
  }

  .gcg-names {
    grid-template-columns: 1fr;
  }

  .gcg-typography-controls,
  .gcg-color-controls,
  .gradient-colors,
  .pattern-color-controls,
  .gcg-border-controls,
  .gcg-layout-controls {
    grid-template-columns: 1fr;
  }

  .pattern-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-type-options {
    grid-template-columns: repeat(2, 1fr);
  }

  .preset-styles {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-occasions-grid {
    grid-template-columns: 1fr;
  }

  .gcg-types-grid {
    grid-template-columns: 1fr;
  }

  .gcg-breadcrumbs {
    font-size: 12px;
    padding: 10px 15px;
  }

  .breadcrumb-separator {
    margin: 0 4px;
  }

  .gcg-subsection {
    padding: 20px 15px;
    margin-bottom: 25px;
  }

  .gcg-section {
    margin-bottom: 30px;
  }
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .gcg-main-content {
    grid-template-columns: 1fr 1fr;
  }

  .card-content {
    width: 100%;
    max-width: 350px;
  }

  .gcg-controls {
    padding: 25px 20px;
  }

  .gcg-preview {
    padding: 25px 20px;
  }
}

/* Large Screen Optimizations */
@media (min-width: 1200px) {
  .gcg-main-content {
    grid-template-columns: 1fr 600px;
  }

  .card-content {
    width: 450px;
    min-height: 550px;
  }

  .gcg-controls {
    padding: 40px;
  }

  .gcg-preview {
    padding: 40px;
  }
}

/* Print Styles */
@media print {
  .gcg-controls,
  .gcg-actions,
  .gcg-breadcrumbs,
  .gcg-related-occasions,
  .gcg-header {
    display: none;
  }

  .gcg-main-content {
    grid-template-columns: 1fr;
  }

  .card-content {
    box-shadow: none;
    border: 1px solid #ddd;
  }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
  .gcg-btn {
    border: 2px solid currentColor;
  }

  .card-content {
    border: 2px solid #000;
  }

  .gcg-breadcrumbs {
    border-bottom: 2px solid #000;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .gcg-container {
    background: #1a1a1a;
    color: #fff;
  }

  .gcg-controls,
  .gcg-preview {
    background: #2d2d2d;
    color: #fff;
    border-color: #555;
  }

  .gcg-subsection {
    background: #3d3d3d;
    border-color: #555;
  }

  .gcg-select,
  .gcg-input,
  .gcg-textarea {
    background: #3d3d3d;
    color: #fff;
    border-color: #555;
  }

  .hex-input {
    background: #3d3d3d;
    color: #fff;
    border-color: #555;
  }

  .bg-control-panel {
    background: #2d2d2d;
  }

  .gcg-breadcrumbs {
    background: #2d2d2d;
    color: #fff;
    border-color: #555;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
.gcg-btn:focus,
.gcg-select:focus,
.gcg-input:focus,
.gcg-textarea:focus {
  outline: 3px solid #3498db;
  outline-offset: 2px;
}

/* Custom Scrollbar for Webkit browsers */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: #3498db;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2980b9;
}

/* Desktop Image Upload Clean Style */
@media (min-width: 769px) {
  .gcg-image-upload {
    background: transparent;
    border: 2px dashed #ddd;
  }

  .gcg-image-upload:hover {
    border-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
  }
}
