

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  color: #333;
  min-height: 100vh;
  padding: 20px;
  animation: fadeIn 1s ease-in-out;
}

h1, h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #4a148c;
}

/* Navigation */
nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  padding: 10px 0;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease;
}

nav a:hover {
  transform: scale(1.1);
}

/* Container */
.container {
  background-color: #ffffffdd;
  max-width: 800px;
  margin: 40px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(10px);
  animation: slideIn 1s ease;
}

/* Form */
form label {
  display: block;
  margin: 15px 0 5px;
  font-weight: 600;
  color: #6a1b9a;
}

input[type="text"],
input[type="email"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid #ccc;
  border-radius: 8px;
  transition: border 0.3s ease;
  font-size: 1rem;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7b1fa2;
  outline: none;
}

button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to right, #8e2de2, #4a00e0);
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: linear-gradient(to right, #4a00e0, #8e2de2);
  transform: scale(1.05);
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  color: #ff4081;
  font-weight: bold;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 250px;
  background-color: #333;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -125px;
  opacity: 0;
  transition: opacity 0.4s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* Result Output */
#result {
  margin-top: 20px;
  padding: 15px;
  background: #e1bee7;
  border-radius: 10px;
  font-size: 1.1rem;
  text-align: center;
  font-weight: bold;
}

/* Share Buttons */
#shareButtons button {
  margin: 5px;
  padding: 10px;
  background: #ff9800;
  border: none;
  border-radius: 8px;
  color: white;
  transition: all 0.3s;
}

#shareButtons button:hover {
  background: #f57c00;
  transform: scale(1.05);
}

/* Historical & Culture Section */
.historical-dates,
.faqs,
.conversation-section {
  background-color: #ffffffcc;
  margin: 40px auto;
  max-width: 800px;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.hidden-content {
  display: none;
  padding: 10px;
  border-left: 4px solid #7b1fa2;
  margin-top: 10px;
}

.content {
  margin-top: 15px;
}

/* Comments */
textarea {
  resize: vertical;
}

.icon-toolbar {
  margin: 10px 0;
}

.icon-toolbar i {
  font-size: 1.5rem;
  color: #f06292;
  cursor: pointer;
  transition: transform 0.3s;
}

.icon-toolbar i:hover {
  transform: scale(1.2);
}

#conversationList {
  margin-top: 20px;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive */
@media screen and (max-width: 600px) {
  .container, .historical-dates, .faqs, .conversation-section {
    padding: 15px;
  }
}

.akan-btn {
  padding: 12px 24px;
  background: #4b6584;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.akan-btn:hover {
  background: #3867d6;
}

.akan-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.akan-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2em;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.akan-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.akan-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

.akan-description {
  text-align: center;
  color: #555;
  margin-bottom: 1.5em;
}

.akan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2em;
}

.akan-card {
  background: #f7f9fb;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 1.2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.akan-card h3 {
  margin-bottom: 0.3em;
  color: #34495e;
}

.akan-card p {
  color: #444;
  line-height: 1.4;
}

.traits {
  font-style: italic;
  color: #666;
  margin-top: 0.5em;
}

/* Certificate Design Gallery */
.gallery {
  margin-top: 50px;
  padding: 30px 20px;
  background: linear-gradient(to right, #f8f9fb, #ffffff);
  border-top: 3px solid #d1d1d1;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.gallery h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #222;
  letter-spacing: 0.5px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  align-items: stretch;
}

.design-item {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.design-item:hover,
.design-item.selected {
  border-color: #007bff;
  background: #e9f3ff;
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0, 123, 255, 0.2);
}

.design-item img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.design-item:hover img {
  transform: scale(1.03);
}

.design-item p {
  font-weight: 600;
  font-size: 15px;
  color: #333;
  margin: 0;
  text-transform: capitalize;
  letter-spacing: 0.3px;
}

.design-item {
  opacity: 0;
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.certificate-preview-section {
  margin-top: 30px;
}

.certificate-preview-section h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.certificate-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
}

.certificate-preview-grid .cert-thumb {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: cover;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.certificate-preview-grid .cert-thumb:hover {
  transform: scale(1.05);
}

/* Scoped modal styles */
#certificateModal.modal-preview {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

#certificateModal.modal-preview .modal-content-preview {
  display: block;
  margin: auto;
  max-width: 80%;
  max-height: 80%;
  border-radius: 12px;
}

#certificateModal.modal-preview .close-preview {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#certificateModal.modal-preview .close-preview:hover {
  color: #ffcc00;
}

.akan-btn {
  padding: 12px 24px;
  background: #4b6584;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s;
}

.akan-btn:hover {
  background: #3867d6;
}

.akan-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.akan-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2em;
  border-radius: 15px;
  width: 90%;
  max-width: 900px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.akan-close {
  float: right;
  font-size: 28px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

.akan-title {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 0.5em;
}

.akan-description {
  text-align: center;
  color: #555;
  margin-bottom: 1.5em;
}

.akan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2em;
}

.akan-card {
  background: #f7f9fb;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 1.2em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.akan-card h3 {
  margin-bottom: 0.3em;
  color: #34495e;
}

.akan-card p {
  color: #444;
  line-height: 1.4;
}

.traits {
  font-style: italic;
  color: #666;
  margin-top: 0.5em;
}
