Files
Connect-5/styles.css

1387 lines
26 KiB
CSS

:root {
--bg-primary: #0a0e1a;
--bg-secondary: #141827;
--bg-tertiary: #1e2433;
--accent-primary: hsl(270, 70%, 60%);
--accent-secondary: hsl(195, 70%, 55%);
--accent-gradient: linear-gradient(
135deg,
hsl(270, 70%, 60%),
hsl(195, 70%, 55%)
);
--text-primary: #ffffff;
--text-secondary: #b4b9c9;
--text-muted: #6b7280;
--border-light: rgba(255, 255, 255, 0.1);
--border-medium: rgba(255, 255, 255, 0.2);
--success: #10b981;
--danger: #ef4444;
--grid-line-opacity: 0.3;
--grid-dot-opacity: 0.4;
--grid-line: rgba(147, 51, 234, var(--grid-line-opacity));
--grid-bg: #0f1420;
--cell-hover: rgba(147, 51, 234, 0.1);
--win-highlight: hsl(270, 70%, 60%);
}
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
sans-serif;
background: var(--bg-primary);
color: var(--text-primary);
line-height: 1.6;
min-height: 100vh;
overflow-x: hidden;
}
/* Container */
.container {
max-width: 1600px;
margin: 0 auto;
padding: 1rem;
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Header */
.header {
background: var(--bg-secondary);
border-radius: 16px;
padding: 1.5rem 2rem;
margin-bottom: 2rem;
border: 1px solid var(--border-light);
backdrop-filter: blur(10px);
}
.header-content {
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.title {
font-size: 2rem;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
display: flex;
align-items: center;
gap: 1rem;
}
.title-icon {
width: 48px;
height: 48px;
border-radius: 12px;
filter: drop-shadow(0 4px 12px rgba(147, 51, 234, 0.3));
}
.subtitle {
color: var(--text-secondary);
font-size: 1.1rem;
font-weight: 500;
}
.youtube-link {
display: inline-flex;
align-items: center;
gap: 0.5rem;
color: var(--text-secondary);
text-decoration: none;
font-size: 0.9rem;
transition: all 0.3s ease;
margin-top: 0.5rem;
}
.youtube-link:hover {
color: #ff0000;
transform: translateX(4px);
}
.youtube-icon {
width: 20px;
height: 20px;
transition: transform 0.3s ease;
}
.youtube-link:hover .youtube-icon {
transform: scale(1.1);
}
/* Game Container */
.game-container {
flex: 1;
display: flex;
flex-direction: column;
gap: 2rem;
}
/* Controls Panel */
.controls-panel {
background: var(--bg-secondary);
border-radius: 16px;
padding: 2rem;
border: 1px solid var(--border-light);
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 2rem;
align-items: center;
}
.size-selector label {
display: block;
color: var(--text-secondary);
font-weight: 600;
margin-bottom: 1rem;
font-size: 0.95rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.size-buttons {
display: flex;
gap: 0.75rem;
flex-wrap: wrap;
}
.size-btn {
padding: 0.75rem 1.5rem;
background: var(--bg-tertiary);
border: 2px solid var(--border-light);
border-radius: 12px;
color: var(--text-primary);
font-weight: 600;
font-size: 0.95rem;
cursor: pointer;
transition: all 0.3s ease;
font-family: "Inter", sans-serif;
}
.size-btn:hover {
border-color: var(--accent-primary);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(147, 51, 234, 0.2);
}
.size-btn.active {
background: var(--accent-gradient);
border-color: transparent;
box-shadow: 0 4px 16px rgba(147, 51, 234, 0.4);
}
/* Game Info */
.game-info {
display: flex;
flex-direction: column;
gap: 1.5rem;
}
.turn-indicator {
display: flex;
align-items: center;
gap: 1rem;
}
.turn-indicator .label {
color: var(--text-secondary);
font-weight: 600;
font-size: 0.95rem;
}
.player-display {
display: flex;
align-items: center;
justify-content: center;
min-width: 50px;
height: 50px;
background: var(--bg-tertiary);
border-radius: 12px;
border: 2px solid var(--accent-primary);
box-shadow: 0 0 20px rgba(147, 51, 234, 0.3);
}
.player-marker {
font-size: 1.5rem;
font-weight: 700;
color: var(--accent-primary);
}
.score-display {
display: flex;
gap: 1.5rem;
}
.score-item {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 1rem;
background: var(--bg-tertiary);
border-radius: 12px;
border: 1px solid var(--border-light);
flex: 1;
}
.score-label {
color: var(--text-secondary);
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
}
.score-value {
font-size: 1.75rem;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
/* Reset Button */
.reset-btn {
padding: 1rem 2rem;
background: var(--accent-gradient);
border: none;
border-radius: 12px;
color: var(--text-primary);
font-weight: 700;
font-size: 1rem;
cursor: pointer;
transition: all 0.3s ease;
font-family: "Inter", sans-serif;
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
box-shadow: 0 4px 16px rgba(147, 51, 234, 0.3);
justify-self: end;
}
.reset-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 24px rgba(147, 51, 234, 0.5);
}
.reset-btn:active {
transform: translateY(0);
}
/* Board Wrapper */
.board-wrapper {
display: flex;
justify-content: center;
align-items: center;
padding: 2rem;
background: var(--bg-secondary);
border-radius: 16px;
border: 1px solid var(--border-light);
overflow: auto;
}
/* Game Board */
.board {
display: grid;
gap: 0;
background: var(--grid-bg);
padding: 20px;
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
inset 0 0 40px rgba(147, 51, 234, 0.1);
border: 2px solid var(--grid-line);
}
/* Dynamic grid sizing */
.board[data-size="15"] {
grid-template-columns: repeat(15, 32px);
grid-template-rows: repeat(15, 32px);
}
.board[data-size="20"] {
grid-template-columns: repeat(20, 28px);
grid-template-rows: repeat(20, 28px);
}
.board[data-size="25"] {
grid-template-columns: repeat(25, 24px);
grid-template-rows: repeat(25, 24px);
}
.board[data-size="50"] {
grid-template-columns: repeat(50, 16px);
grid-template-rows: repeat(50, 16px);
}
/* Cell */
.cell {
background: transparent;
border: 1px solid var(--grid-line);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
position: relative;
transition: all 0.2s ease;
}
.cell::before {
content: "";
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 4px;
height: 4px;
background: var(--grid-line);
border-radius: 50%;
opacity: var(--grid-dot-opacity);
}
.cell:hover:not(.occupied) {
background: var(--cell-hover);
border-color: var(--accent-primary);
}
.cell:hover:not(.occupied)::before {
opacity: 0.7;
width: 6px;
height: 6px;
}
.cell.occupied {
cursor: not-allowed;
}
/* Player Markers */
.cell.x::after,
.cell.o::after {
content: "";
position: absolute;
animation: placeMarker 0.3s ease;
}
@keyframes placeMarker {
0% {
transform: scale(0) rotate(0deg);
opacity: 0;
}
50% {
transform: scale(1.2) rotate(180deg);
}
100% {
transform: scale(1) rotate(360deg);
opacity: 1;
}
}
.cell.x::after {
width: 70%;
height: 70%;
background: linear-gradient(
135deg,
var(--accent-primary),
hsl(270, 70%, 70%)
);
clip-path: polygon(
20% 0%,
0% 20%,
30% 50%,
0% 80%,
20% 100%,
50% 70%,
80% 100%,
100% 80%,
70% 50%,
100% 20%,
80% 0%,
50% 30%
);
box-shadow: 0 0 15px rgba(147, 51, 234, 0.6);
}
.cell.o::after {
width: 70%;
height: 70%;
border: 4px solid var(--accent-secondary);
border-radius: 50%;
box-shadow: 0 0 15px rgba(56, 189, 248, 0.6);
background: transparent;
}
/* Winning cells */
.cell.winning {
animation: winPulse 1s ease-in-out infinite;
background: rgba(147, 51, 234, 0.2);
}
@keyframes winPulse {
0%,
100% {
box-shadow: 0 0 10px rgba(147, 51, 234, 0.5);
}
50% {
box-shadow: 0 0 25px rgba(147, 51, 234, 0.8);
}
}
/* Game Status Bar */
.game-status-bar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem 1.5rem;
background: var(--bg-secondary);
border-radius: 16px;
border: 1px solid var(--border-light);
min-height: 70px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
gap: 1rem;
}
/* Left Side: Turn Info + Text */
.status-left {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
gap: 0.25rem;
flex: 1;
min-width: 0; /* Important for text truncation in flex item */
}
.turn-display {
display: flex;
align-items: center;
gap: 0.75rem;
}
.turn-display .label {
color: var(--text-secondary);
font-size: 0.9rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.turn-display .current-player {
font-size: 1.25rem;
font-weight: 700;
color: var(--text-primary);
}
.status-text-small {
font-size: 0.9rem;
color: var(--text-secondary);
font-weight: 500;
margin-top: 2px;
/* Text Truncation */
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
display: block;
}
/* Right Side: Identity */
.status-right {
display: flex;
align-items: center;
gap: 1rem;
padding-left: 1.5rem;
border-left: 1px solid var(--border-light);
}
.status-right .label {
color: var(--text-secondary);
font-size: 1rem;
font-weight: 600;
white-space: nowrap;
}
/* Dynamic status colors applied to the text, not full bg */
.status-text-small.success {
color: var(--success);
}
.status-text-small.info {
color: var(--accent-secondary);
}
.status-text-small.error {
color: #ef4444;
}
/* Victory Overlay */
.victory-overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(10, 14, 26, 0.95);
backdrop-filter: blur(10px);
display: flex;
align-items: center;
justify-content: center;
z-index: 1000;
opacity: 0;
pointer-events: none;
transition: opacity 0.4s ease;
}
.victory-overlay.active {
opacity: 1;
pointer-events: all;
}
.victory-content {
background: var(--bg-secondary);
padding: 3rem 4rem;
border-radius: 24px;
border: 2px solid var(--accent-primary);
box-shadow: 0 20px 60px rgba(147, 51, 234, 0.4);
text-align: center;
transform: scale(0.9);
transition: transform 0.4s ease;
}
.victory-overlay.active .victory-content {
transform: scale(1);
}
.victory-title {
font-size: 3rem;
font-weight: 700;
background: var(--accent-gradient);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 1rem;
animation: victoryPulse 2s ease-in-out infinite;
}
@keyframes victoryPulse {
0%,
100% {
transform: scale(1);
}
50% {
transform: scale(1.05);
}
}
.victory-subtitle {
font-size: 1.25rem;
color: var(--text-secondary);
margin-bottom: 2rem;
}
.play-again-btn {
padding: 1rem 3rem;
background: var(--accent-gradient);
border: none;
border-radius: 12px;
color: var(--text-primary);
font-weight: 700;
font-size: 1.1rem;
cursor: pointer;
transition: all 0.3s ease;
font-family: "Inter", sans-serif;
box-shadow: 0 4px 20px rgba(147, 51, 234, 0.4);
}
.play-again-btn:hover {
transform: translateY(-2px);
box-shadow: 0 6px 30px rgba(147, 51, 234, 0.6);
}
/* Database Status Bar */
.db-status-bar {
background: rgba(20, 24, 39, 0.95);
-webkit-backdrop-filter: blur(10px);
backdrop-filter: blur(10px);
border: 1px solid var(--border-light);
border-radius: 12px;
padding: 1rem 1.5rem;
margin: 2rem 0 1rem;
display: flex;
flex-wrap: wrap;
gap: 2rem;
align-items: center;
justify-content: space-between;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
transition: all 0.3s ease;
}
.db-status-bar:hover {
border-color: var(--border-medium);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}
.db-status-item {
display: flex;
align-items: center;
gap: 0.75rem;
min-width: fit-content;
}
.db-status-label {
color: var(--text-secondary);
font-size: 0.85rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.db-status-value {
color: var(--text-primary);
font-size: 0.95rem;
font-weight: 600;
font-family: "Courier New", monospace;
padding: 0.25rem 0.75rem;
background: var(--bg-tertiary);
border-radius: 6px;
border: 1px solid var(--border-light);
transition: all 0.3s ease;
}
.db-status-indicator {
display: flex;
align-items: center;
gap: 0.5rem;
padding: 0.25rem 0.75rem;
background: var(--bg-tertiary);
border-radius: 6px;
border: 1px solid var(--border-light);
transition: all 0.3s ease;
}
.status-dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: var(--text-muted);
transition: all 0.3s ease;
animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0.6;
}
}
.status-dot.status-connected {
background: var(--success);
box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}
.status-dot.status-disconnected {
background: var(--danger);
box-shadow: 0 0 10px rgba(239, 68, 68, 0.5);
animation: pulse-error 1s ease-in-out infinite;
}
.status-dot.status-warning {
background: #f59e0b;
box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}
@keyframes pulse-error {
0%,
100% {
opacity: 1;
transform: scale(1);
}
50% {
opacity: 0.7;
transform: scale(1.1);
}
}
.status-text {
color: var(--text-primary);
font-size: 0.9rem;
font-weight: 600;
}
.db-status-indicator.status-success {
border-color: rgba(16, 185, 129, 0.3);
background: rgba(16, 185, 129, 0.05);
}
.db-status-indicator.status-error {
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.05);
}
.db-status-indicator.status-warning {
border-color: rgba(245, 158, 11, 0.3);
background: rgba(245, 158, 11, 0.05);
}
/* Latency color coding */
.latency-good {
color: var(--success);
border-color: rgba(16, 185, 129, 0.3);
background: rgba(16, 185, 129, 0.05);
}
.latency-ok {
color: #f59e0b;
border-color: rgba(245, 158, 11, 0.3);
background: rgba(245, 158, 11, 0.05);
}
.latency-slow {
color: var(--danger);
border-color: rgba(239, 68, 68, 0.3);
background: rgba(239, 68, 68, 0.05);
}
.db-status-timestamp {
margin-left: auto;
opacity: 0.7;
}
/* Footer */
.footer {
margin-top: 2rem;
padding: 1.5rem;
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
border-top: 1px solid var(--border-light);
}
/* Ghost Piece Effect */
.game-board.turn-x .cell:not(.occupied):hover::after {
content: "X";
color: hsla(270, 70%, 60%, 0.4);
font-size: 1.5rem;
font-weight: 800;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
.game-board.turn-o .cell:not(.occupied):hover::after {
content: "O";
color: hsla(195, 70%, 55%, 0.4);
font-size: 1.5rem;
font-weight: 800;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}
/* Board Glow aligned with turn */
.game-board.turn-x {
border-color: hsla(270, 70%, 60%, 0.3);
box-shadow: 0 0 30px hsla(270, 70%, 60%, 0.1);
}
.game-board.turn-o {
border-color: hsla(195, 70%, 55%, 0.3);
box-shadow: 0 0 30px hsla(195, 70%, 55%, 0.1);
}
/* Responsive Cell Sizes */
.game-board[data-size="15"] .cell {
width: 30px;
height: 30px;
font-size: 1.5rem;
}
.game-board[data-size="20"] .cell {
width: 25px;
height: 25px;
font-size: 1.2rem;
}
.game-board[data-size="25"] .cell {
width: 20px;
height: 20px;
font-size: 0.9rem;
}
.game-board[data-size="50"] .cell {
width: 12px;
height: 12px;
font-size: 0.6rem;
}
.game-board[data-size="50"] .cell::after {
font-size: 0.6rem !important;
} /* Adjust ghost size for tiny cells */
/* Responsive Design */
@media (max-width: 1200px) {
.board[data-size="25"] {
grid-template-columns: repeat(25, 22px);
grid-template-rows: repeat(25, 22px);
}
.board[data-size="50"] {
grid-template-columns: repeat(50, 15px);
grid-template-rows: repeat(50, 15px);
}
}
@media (max-width: 768px) {
.container {
padding: 0.5rem;
}
.header {
padding: 1rem;
}
.title {
font-size: 1.5rem;
}
.title-icon {
width: 36px;
height: 36px;
}
.controls-panel {
padding: 1.5rem;
grid-template-columns: 1fr;
gap: 1.5rem;
}
.reset-btn {
justify-self: stretch;
}
.board-wrapper {
padding: 1rem;
overflow-x: auto;
}
.board[data-size="15"] {
grid-template-columns: repeat(15, 28px);
grid-template-rows: repeat(15, 28px);
}
.board[data-size="20"] {
grid-template-columns: repeat(20, 24px);
grid-template-rows: repeat(20, 24px);
}
.board[data-size="25"] {
grid-template-columns: repeat(25, 20px);
grid-template-rows: repeat(25, 20px);
}
.board[data-size="50"] {
grid-template-columns: repeat(50, 14px);
grid-template-rows: repeat(50, 14px);
}
.victory-content {
padding: 2rem 2.5rem;
}
.victory-title {
font-size: 2rem;
}
.db-status-bar {
flex-direction: column;
gap: 1rem;
padding: 1rem;
}
.db-status-item {
width: 100%;
justify-content: space-between;
}
.db-status-timestamp {
margin-left: 0;
}
}
/* Database Retry Button */
.db-retry-btn {
padding: 0.5rem 1rem;
background: var(--accent-gradient);
border: none;
border-radius: 8px;
color: var(--text-primary);
font-weight: 600;
font-size: 0.85rem;
cursor: pointer;
transition: all 0.3s ease;
font-family: "Inter", sans-serif;
display: flex;
align-items: center;
gap: 0.5rem;
box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}
.db-retry-btn:hover:not(:disabled) {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(147, 51, 234, 0.5);
}
.db-retry-btn:active:not(:disabled) {
transform: translateY(0);
}
.db-retry-btn:disabled {
opacity: 0.6;
cursor: not-allowed;
}
.db-retry-btn.retrying {
background: var(--bg-tertiary);
}
.db-retry-btn svg {
transition: transform 0.3s ease;
}
.db-retry-btn:hover:not(:disabled) svg {
transform: rotate(180deg);
}
.spinning {
animation: spin 1s linear infinite;
}
@keyframes spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}
/* Database Status Details Panel */
.db-status-details {
background: var(--bg-secondary);
border: 1px solid var(--border-light);
border-radius: 12px;
margin: 1rem 0;
overflow: hidden;
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
animation: slideDown 0.3s ease;
}
@keyframes slideDown {
from {
opacity: 0;
transform: translateY(-10px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.db-details-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background: var(--bg-tertiary);
border-bottom: 1px solid var(--border-light);
}
.db-details-title {
font-weight: 700;
font-size: 1rem;
color: var(--text-primary);
}
.db-details-close {
background: transparent;
border: none;
color: var(--text-secondary);
font-size: 1.5rem;
cursor: pointer;
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 6px;
transition: all 0.2s ease;
}
.db-details-close:hover {
background: var(--bg-primary);
color: var(--text-primary);
}
.db-details-content {
padding: 1.5rem;
display: flex;
flex-direction: column;
gap: 1rem;
}
.db-detail-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 0.75rem;
background: var(--bg-tertiary);
border-radius: 8px;
border: 1px solid var(--border-light);
}
.db-detail-label {
color: var(--text-secondary);
font-weight: 600;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.db-detail-value {
color: var(--text-primary);
font-weight: 600;
font-family: "Courier New", monospace;
font-size: 0.95rem;
}
.db-detail-error {
max-width: 60%;
text-align: right;
word-wrap: break-word;
}
/* Database Logs */
.db-detail-logs {
margin-top: 1rem;
padding: 1rem;
background: var(--bg-primary);
border-radius: 8px;
border: 1px solid var(--border-light);
max-height: 300px;
overflow-y: auto;
}
.db-logs-title {
font-weight: 700;
color: var(--text-secondary);
margin-bottom: 0.75rem;
font-size: 0.85rem;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.db-log-entry {
padding: 0.5rem 0.75rem;
margin-bottom: 0.5rem;
border-radius: 6px;
font-family: "Courier New", monospace;
font-size: 0.85rem;
line-height: 1.4;
border-left: 3px solid transparent;
}
.db-log-info {
background: rgba(56, 189, 248, 0.05);
border-left-color: rgba(56, 189, 248, 0.5);
color: #38bdf8;
}
.db-log-success {
background: rgba(16, 185, 129, 0.05);
border-left-color: rgba(16, 185, 129, 0.5);
color: #10b981;
}
.db-log-error {
background: rgba(239, 68, 68, 0.05);
border-left-color: rgba(239, 68, 68, 0.5);
color: #ef4444;
}
.db-log-warning {
background: rgba(245, 158, 11, 0.05);
border-left-color: rgba(245, 158, 11, 0.5);
color: #f59e0b;
}
/* Scrollbar styling for logs */
.db-detail-logs::-webkit-scrollbar {
width: 8px;
}
.db-detail-logs::-webkit-scrollbar-track {
background: var(--bg-tertiary);
border-radius: 4px;
}
.db-detail-logs::-webkit-scrollbar-thumb {
background: var(--border-medium);
border-radius: 4px;
}
.db-detail-logs::-webkit-scrollbar-thumb:hover {
background: var(--accent-primary);
}
/* SQL Error Banner (Testing Phase) */
.sql-error-banner {
background: linear-gradient(
135deg,
rgba(239, 68, 68, 0.1),
rgba(245, 158, 11, 0.1)
);
border: 2px solid #ef4444;
border-radius: 12px;
margin: 1rem 0;
overflow: hidden;
box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
animation: errorPulse 2s ease-in-out infinite;
}
@keyframes errorPulse {
0%,
100% {
box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
}
50% {
box-shadow: 0 4px 30px rgba(239, 68, 68, 0.5);
}
}
.sql-error-header {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 1rem 1.5rem;
background: rgba(239, 68, 68, 0.15);
border-bottom: 1px solid rgba(239, 68, 68, 0.3);
}
.sql-error-icon {
font-size: 1.5rem;
animation: shake 0.5s ease-in-out infinite;
}
@keyframes shake {
0%,
100% {
transform: translateX(0);
}
25% {
transform: translateX(-3px);
}
75% {
transform: translateX(3px);
}
}
.sql-error-title {
font-weight: 700;
font-size: 1.1rem;
color: #ef4444;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.sql-error-content {
padding: 1.5rem;
}
.sql-error-message {
font-size: 1rem;
font-weight: 600;
color: #ef4444;
margin-bottom: 1rem;
padding: 1rem;
background: rgba(239, 68, 68, 0.1);
border-radius: 8px;
border-left: 4px solid #ef4444;
font-family: "Courier New", monospace;
}
.sql-error-details {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 0.75rem;
}
.sql-error-detail-item {
padding: 0.75rem;
background: var(--bg-tertiary);
border-radius: 6px;
border: 1px solid var(--border-light);
color: var(--text-secondary);
font-size: 0.9rem;
font-weight: 500;
}
.sql-error-details {
grid-template-columns: 1fr;
}
}
/* Last Move Highlight - Enhanced */
.cell.latest-move {
background: rgba(255, 255, 255, 0.1);
box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1);
border-radius: 4px;
}
.cell.latest-move::after {
animation: movePulse 2s ease-out forwards;
z-index: 10;
}
@keyframes movePulse {
0% {
filter: brightness(3.0) drop-shadow(0 0 15px white);
transform: scale(1.3);
}
15% {
filter: brightness(2.5) drop-shadow(0 0 10px white);
transform: scale(1.1);
}
50% {
filter: brightness(1.5) drop-shadow(0 0 5px currentColor);
transform: scale(1.05);
}
100% {
filter: brightness(1.0) drop-shadow(0 0 0 transparent);
transform: scale(1.0);
}
}
/* Surrender Modal Styling */
.modal-content.surrender-modal {
background: linear-gradient(145deg, rgba(30, 10, 10, 0.95), rgba(45, 15, 15, 0.9));
border: 1px solid rgba(239, 68, 68, 0.3);
box-shadow: 0 0 30px rgba(239, 68, 68, 0.15);
max-width: 400px;
text-align: center;
padding: 2.5rem;
}
.surrender-icon {
font-size: 3.5rem;
margin-bottom: 1rem;
animation: warningPulse 2s infinite;
}
@keyframes warningPulse {
0% { transform: scale(1); opacity: 1; }
50% { transform: scale(1.1); opacity: 0.8; }
100% { transform: scale(1); opacity: 1; }
}
.surrender-modal h2 {
color: #ef4444;
font-size: 1.8rem;
margin-bottom: 0.5rem;
text-transform: uppercase;
letter-spacing: 1px;
}
.surrender-modal .modal-subtitle {
color: #d1d5db;
font-size: 1rem;
opacity: 0.8;
margin-bottom: 2rem;
line-height: 1.5;
}
.surrender-actions {
display: flex;
gap: 1rem;
justify-content: center;
}
.confirm-surrender-btn {
background: linear-gradient(135deg, #ef4444, #b91c1c);
color: white;
border: none;
padding: 0.8rem 1.5rem;
border-radius: 8px;
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}
.confirm-surrender-btn:hover {
transform: translateY(-2px);
box-shadow: 0 0 15px rgba(239, 68, 68, 0.4);
}
.cancel-surrender-btn {
background: transparent;
color: #9ca3af;
border: 1px solid rgba(255, 255, 255, 0.1);
padding: 0.8rem 1.5rem;
border-radius: 8px;
font-weight: 500;
cursor: pointer;
transition: all 0.2s ease;
}
.cancel-surrender-btn:hover {
background: rgba(255, 255, 255, 0.05);
color: white;
border-color: rgba(255, 255, 255, 0.2);
}
/* Version Pill in Status Bar */
.version-container {
margin-left: auto;
padding-left: 1rem;
border-left: 1px solid var(--border-light);
}
.version-pill {
display: flex;
align-items: center;
gap: 0.5rem;
background: rgba(255, 255, 255, 0.05);
padding: 0.25rem 0.75rem;
border-radius: 12px;
border: 1px solid var(--border-light);
font-family: monospace;
font-size: 0.8rem;
color: var(--text-secondary);
}
.commit-hash {
color: #8b5cf6; /* Violet */
font-weight: 600;
}
.version-separator {
color: var(--text-muted);
font-size: 0.6rem;
}
.commit-age {
color: var(--text-muted);
}