/* Main Page Styles for single-board-multi-window.html */

/* Body and Base Layout */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

/* Page Header */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  margin-bottom: 30px;
  padding: 20px;
  position: relative;
}

.page-header .logo-section {
  flex-shrink: 0;
  z-index: 1;
}

.page-header .page-content {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 0;
}

.page-header .header-actions {
  flex-shrink: 0;
  z-index: 1;
}

.page-header h1 {
  font-size: 2.5em;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .subtitle {
  font-size: 1.2em;
  margin-top: 10px;
  opacity: 0.9;
}

.page-header .seo-description {
  font-size: 1.1em;
  margin-top: 8px;
  opacity: 0.8;
  font-weight: 500;
  color: #f8f9fa;
}

/* Game Wrapper */
.game-wrapper {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  max-width: 95vw;
  margin: 0 auto;
}

/* Multiplayer Connection Section */
.multiplayer-connection {
  background: #f8f9fa;
  border-bottom: 2px solid #dee2e6;
  padding: 20px;
  text-align: center;
}

.multiplayer-connection h3 {
  margin: 0 0 15px 0;
  color: #495057;
}

.multiplayer-connection input {
  padding: 10px 15px;
  margin: 5px;
  border: 2px solid #ced4da;
  border-radius: 8px;
  font-size: 1em;
}

.multiplayer-connection input:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 5px rgba(128, 189, 255, 0.5);
}

/* Button styles moved to ConnectionUIStyles.css for proper manager separation */

/* Main Game Area */
.main-game-area {
  padding: 20px;
}

/* Connection Status Indicator */
.connection-status {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9em;
  font-weight: bold;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .page-header h1 {
    font-size: 2em;
  }

  .multiplayer-connection {
    padding: 15px;
  }

  .multiplayer-connection input,
  .multiplayer-connection button {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 10px auto;
  }

  .main-game-area {
    padding: 10px;
  }
}

/* Page Attribution */
.page-header .attribution {
  font-size: 0.8em;
  margin-top: 10px;
  opacity: 0.8;
}

/* Test Ad Banner */
#test-ad-banner {
  background: linear-gradient(45deg, #ffeb3b, #ffc107);
  color: #333;
  padding: 15px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 2px dashed #f57c00;
}

/* Error Container */
.error-container {
  text-align: center;
  padding: 40px;
  color: #dc3545;
}

/* Refresh Button */
.refresh-btn {
  padding: 10px 20px;
  margin-top: 20px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Legal Footer */
.legal-footer {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  margin-top: 30px;
  text-align: center;
  border-radius: 10px;
}

.legal-links {
  color: white;
  font-size: 0.9em;
}

.legal-links a {
  color: white;
  text-decoration: none;
  transition: opacity 0.3s;
}

.legal-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.legal-links .separator {
  margin: 0 15px;
  opacity: 0.7;
}

.legal-links .copyright {
  opacity: 0.8;
}

/* Mobile responsive for legal footer */
@media (max-width: 768px) {
  .legal-footer {
    padding: 15px;
    margin-top: 20px;
  }

  .legal-links {
    font-size: 0.8em;
  }

  .legal-links .separator {
    margin: 0 10px;
  }
}

/* Instructions Link Section */
.instructions-link-section {
  margin: 20px 0;
  text-align: center;
}

.instructions-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1em;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.instructions-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  color: white;
}

.instructions-link:active {
  transform: translateY(0);
}