/* GratisDobbelSteen.nl - Main Styles */

:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --success-color: #27ae60;
  --bg-color: #ecf0f1;
  --text-color: #2c3e50;
  --border-radius: 8px;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.top-nav {
  background: white;
  box-shadow: var(--shadow);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.5rem;
  color: var(--primary-color);
}

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.language-switcher a {
  color: var(--secondary-color);
  text-decoration: none;
}

.language-switcher .current {
  font-weight: bold;
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  color: white;
  padding: 3rem 0;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Scene Shortcuts */
.scene-shortcuts {
  padding: 2rem 0;
  background: white;
}

.scene-shortcuts h3 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.scene-buttons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.scene-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--bg-color);
  border: 2px solid transparent;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.scene-btn:hover {
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

.scene-btn .icon {
  font-size: 2rem;
}

/* Tool Container */
.tool-container {
  padding: 2rem 0;
}

.dice-type-selector,
.dice-count-selector,
.color-dice-controls {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.tabs button {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--bg-color);
  background: white;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
}

.tabs button.active {
  background: var(--secondary-color);
  color: white;
  border-color: var(--secondary-color);
}

.tabs button:hover:not(.active) {
  border-color: var(--secondary-color);
}

/* Dice Canvas */
.dice-canvas-container {
  position: relative;
  background: #1a1a1a;
  border-radius: var(--border-radius);
  height: 400px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

#dice-canvas {
  width: 100%;
  height: 100%;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
}

.progress-bar {
  width: 80%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress {
  height: 100%;
  background: var(--secondary-color);
  transition: width 0.3s ease;
}

/* Roll Button */
.roll-button-container {
  text-align: center;
  margin: 2rem 0;
}

.roll-btn {
  padding: 1.5rem 3rem;
  font-size: 1.5rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.roll-btn:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.roll-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  margin-top: 1rem;
  color: #7f8c8d;
  font-size: 0.9rem;
}

/* Results Section */
.results-section {
  padding: 2rem 0;
  background: white;
  margin-top: 2rem;
  border-radius: var(--border-radius);
}

.result-display {
  display: grid;
  gap: 2rem;
}

.dice-results {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.dice-value {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.stats-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}

.stat-item {
  padding: 1rem;
  background: var(--bg-color);
  border-radius: var(--border-radius);
  text-align: center;
}

.stat-item .value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 0.5rem;
}

/* Share Buttons */
.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.share-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  color: white;
}

.share-btn.facebook { background: #1877f2; }
.share-btn.twitter { background: #1da1f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.qr { background: #6c757d; }
.share-btn.copy { background: var(--primary-color); }

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: var(--border-radius);
  padding: 2rem;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #7f8c8d;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-color);
  color: white;
  padding: 1rem;
  z-index: 999;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.btn-accept {
  padding: 0.5rem 1.5rem;
  background: var(--success-color);
  color: white;
  border: none;
  border-radius: var(--border-radius);
  cursor: pointer;
}

/* Footer */
footer {
  background: var(--primary-color);
  color: white;
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

footer h4 {
  margin-bottom: 1rem;
}

footer ul {
  list-style: none;
}

footer a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition);
}

footer a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Content Sections */
.content-section,
.faq-section {
  padding: 3rem 0;
}

.content-section h2,
.faq-section h2 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
}

.content-section h3 {
  margin: 2rem 0 1rem;
  color: var(--secondary-color);
}

.faq-item {
  background: white;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

/* Utilities */
.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .mobile-only {
    display: block;
  }
  
  .tabs {
    display: none;
  }
  
  .dice-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}
