/* =====================================================
   TinyToolWeb - poker-timer-pro.css
   Poker Tournament Timer PRO Styles
   ===================================================== */

/* Tool Container */
.tool-poker-timer-pro .tool-container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

/* Panel Styles */
.tool-poker-timer-pro .panel {
  padding: 0;
  background: var(--bg-surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.tool-poker-timer-pro .panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-light);
  border-bottom: 2px solid var(--border);
}

.tool-poker-timer-pro .panel-title {
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1rem;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Setup Content */
.tool-poker-timer-pro .setup-content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.tool-poker-timer-pro .setup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.tool-poker-timer-pro .config-group {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.tool-poker-timer-pro .config-group label {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.tool-poker-timer-pro .config-group input,
.tool-poker-timer-pro .config-group select {
  padding: var(--spacing-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-dark);
  font-size: 1rem;
  font-family: inherit;
  transition: all var(--transition-base);
}

.tool-poker-timer-pro .config-group input:focus,
.tool-poker-timer-pro .config-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Sound Settings */
.tool-poker-timer-pro .sound-settings {
  padding: var(--spacing-lg);
  background: var(--bg-body);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
}

.tool-poker-timer-pro .sound-settings h3 {
  margin: 0 0 var(--spacing-md) 0;
  color: var(--text-dark);
  font-size: 1rem;
}

.tool-poker-timer-pro .sound-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.tool-poker-timer-pro .checkbox-label {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.tool-poker-timer-pro .checkbox-label:hover {
  background: var(--bg-surface);
}

.tool-poker-timer-pro .checkbox-label input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.tool-poker-timer-pro .checkbox-label span {
  font-weight: 500;
  color: var(--text-dark);
}

/* Buttons */
.tool-poker-timer-pro .btn {
  padding: var(--spacing-md) var(--spacing-xl);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
}

.tool-poker-timer-pro .btn-primary {
  background: var(--primary);
  color: white;
}

.tool-poker-timer-pro .btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.tool-poker-timer-pro .btn-large {
  padding: var(--spacing-lg) var(--spacing-xxl);
  font-size: 1.2rem;
  width: 100%;
  margin-top: var(--spacing-md);
}

/* =====================================================
   FULLSCREEN TIMER DISPLAY
   ===================================================== */

.tool-poker-timer-pro .timer-fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: none;
  flex-direction: column;
  z-index: 10000;
  color: white;
  overflow: hidden;
  user-select: none;
}

.tool-poker-timer-pro .timer-fullscreen.active {
  display: flex;
}

/* Timer Header */
.tool-poker-timer-pro .timer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 2px solid rgba(37, 99, 235, 0.3);
}

.tool-poker-timer-pro .tournament-info {
  flex: 1;
}

.tool-poker-timer-pro .tournament-name {
  margin: 0 0 var(--spacing-sm) 0;
  font-size: 1.8rem;
  font-weight: 700;
  color: #60a5fa;
}

.tool-poker-timer-pro .tournament-stats {
  display: flex;
  gap: var(--spacing-xl);
  flex-wrap: wrap;
}

.tool-poker-timer-pro .stat {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
}

.tool-poker-timer-pro .stat strong {
  color: white;
  font-weight: 700;
}

.tool-poker-timer-pro .exit-btn {
  width: 50px;
  height: 50px;
  border: none;
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  font-size: 1.8rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
}

.tool-poker-timer-pro .exit-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  transform: scale(1.05);
}

/* Main Timer Display */
.tool-poker-timer-pro .timer-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: var(--spacing-xxl);
  gap: var(--spacing-xxl);
}

.tool-poker-timer-pro .level-info {
  display: flex;
  justify-content: center;
}

.tool-poker-timer-pro .level-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg) var(--spacing-xxl);
  background: rgba(37, 99, 235, 0.2);
  border: 2px solid rgba(37, 99, 235, 0.5);
  border-radius: var(--radius-lg);
}

.tool-poker-timer-pro .level-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #60a5fa;
  letter-spacing: 2px;
}

.tool-poker-timer-pro .level-number {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  line-height: 1;
}

/* Timer Display */
.tool-poker-timer-pro .timer-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-lg);
  width: 100%;
  max-width: 800px;
}

.tool-poker-timer-pro .time-remaining {
  font-size: 8rem;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  color: white;
  text-shadow: 0 0 30px rgba(96, 165, 250, 0.5);
  letter-spacing: 0.1em;
  line-height: 1;
}

.tool-poker-timer-pro .time-remaining.warning {
  color: #f59e0b;
  animation: pulse 1s ease-in-out infinite;
}

.tool-poker-timer-pro .time-remaining.danger {
  color: #ef4444;
  animation: pulse 0.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.9; }
}

.tool-poker-timer-pro .timer-progress {
  width: 100%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
}

.tool-poker-timer-pro .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10b981 0%, #3b82f6 50%, #ef4444 100%);
  transition: width 1s linear;
  border-radius: 6px;
}

/* Blinds Display */
.tool-poker-timer-pro .blinds-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-xxl);
  margin-top: var(--spacing-xl);
}

.tool-poker-timer-pro .blind-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.tool-poker-timer-pro .blind-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.tool-poker-timer-pro .blind-value {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  font-family: 'Courier New', Courier, monospace;
}

.tool-poker-timer-pro .small-blind .blind-value {
  color: #60a5fa;
}

.tool-poker-timer-pro .big-blind .blind-value {
  color: #10b981;
}

.tool-poker-timer-pro .blind-divider {
  font-size: 4rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.3);
}

/* Ante Display */
.tool-poker-timer-pro .ante-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(245, 158, 11, 0.1);
  border: 2px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  margin-top: var(--spacing-lg);
}

.tool-poker-timer-pro .ante-display.hidden {
  display: none;
}

.tool-poker-timer-pro .ante-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f59e0b;
  letter-spacing: 1px;
}

.tool-poker-timer-pro .ante-value {
  font-size: 2rem;
  font-weight: 900;
  color: white;
  font-family: 'Courier New', Courier, monospace;
}

/* Next Level Preview */
.tool-poker-timer-pro .next-level {
  padding: var(--spacing-lg) var(--spacing-xl);
  background: rgba(0, 0, 0, 0.2);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  font-size: 1.2rem;
}

.tool-poker-timer-pro .next-label {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.tool-poker-timer-pro .next-blinds {
  color: white;
  font-weight: 700;
  font-family: 'Courier New', Courier, monospace;
}

.tool-poker-timer-pro .next-time {
  color: #60a5fa;
  font-weight: 600;
}

/* Timer Controls */
.tool-poker-timer-pro .timer-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-xl);
  background: rgba(0, 0, 0, 0.3);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.tool-poker-timer-pro .control-btn {
  width: 60px;
  height: 60px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-poker-timer-pro .control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
  transform: scale(1.05);
}

.tool-poker-timer-pro .control-btn-play {
  width: 80px;
  height: 80px;
  background: rgba(37, 99, 235, 0.3);
  border-color: #2563eb;
  font-size: 2rem;
}

.tool-poker-timer-pro .control-btn-play:hover {
  background: rgba(37, 99, 235, 0.5);
}

.tool-poker-timer-pro .control-btn-play.paused {
  background: rgba(16, 185, 129, 0.3);
  border-color: #10b981;
}

/* Break Overlay */
.tool-poker-timer-pro .break-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.tool-poker-timer-pro .break-overlay.active {
  display: flex;
}

.tool-poker-timer-pro .break-content {
  text-align: center;
  padding: var(--spacing-xxl);
}

.tool-poker-timer-pro .break-title {
  font-size: 4rem;
  font-weight: 900;
  color: #f59e0b;
  margin: 0 0 var(--spacing-xl) 0;
  text-shadow: 0 0 30px rgba(245, 158, 11, 0.5);
}

.tool-poker-timer-pro .break-timer {
  font-size: 8rem;
  font-weight: 900;
  font-family: 'Courier New', Courier, monospace;
  color: white;
  margin-bottom: var(--spacing-xl);
}

.tool-poker-timer-pro .break-message {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--spacing-xl);
}

.tool-poker-timer-pro .break-progress {
  width: 600px;
  max-width: 90%;
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  overflow: hidden;
  margin: 0 auto;
}

.tool-poker-timer-pro .break-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #ef4444);
  transition: width 1s linear;
  border-radius: 6px;
}

/* Gesture Hint */
.tool-poker-timer-pro .gesture-hint {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  padding: var(--spacing-md) var(--spacing-xl);
  background: rgba(0, 0, 0, 0.8);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.tool-poker-timer-pro .gesture-hint.visible {
  opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .tool-poker-timer-pro .tournament-name {
    font-size: 1.4rem;
  }
  
  .tool-poker-timer-pro .level-number {
    font-size: 3rem;
  }
  
  .tool-poker-timer-pro .time-remaining {
    font-size: 6rem;
  }
  
  .tool-poker-timer-pro .blind-value {
    font-size: 3rem;
  }
  
  .tool-poker-timer-pro .break-title {
    font-size: 3rem;
  }
  
  .tool-poker-timer-pro .break-timer {
    font-size: 6rem;
  }
}

@media (max-width: 768px) {
  .tool-poker-timer-pro .setup-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-poker-timer-pro .sound-grid {
    grid-template-columns: 1fr;
  }
  
  .tool-poker-timer-pro .tournament-stats {
    flex-direction: column;
    gap: var(--spacing-xs);
  }
  
  .tool-poker-timer-pro .level-number {
    font-size: 2.5rem;
  }
  
  .tool-poker-timer-pro .time-remaining {
    font-size: 4rem;
  }
  
  .tool-poker-timer-pro .blind-value {
    font-size: 2rem;
  }
  
  .tool-poker-timer-pro .blinds-display {
    gap: var(--spacing-lg);
  }
  
  .tool-poker-timer-pro .blind-label {
    font-size: 0.9rem;
  }
  
  .tool-poker-timer-pro .control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
  
  .tool-poker-timer-pro .control-btn-play {
    width: 70px;
    height: 70px;
  }
  
  .tool-poker-timer-pro .break-title {
    font-size: 2rem;
  }
  
  .tool-poker-timer-pro .break-timer {
    font-size: 4rem;
  }
  
  .tool-poker-timer-pro .gesture-hint {
    font-size: 0.75rem;
    white-space: normal;
    text-align: center;
    max-width: 80%;
  }
}

/* =====================================================
   End of poker-timer-pro.css
   ===================================================== */