/* Custom CSS for bash.cards */

:root {
    --primary-green: #28a745;
    --terminal-green: #00ff00;
    --dark-bg: #0d1117;
    --card-bg: #161b22;
    --gradient-start: #667eea;
    --gradient-end: #764ba2;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(45deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navbar Styling */
.navbar-brand {
    font-size: 1.5re/* File Version: 1.3.0 */;
    font-weight: 700;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 50%, #16213e 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 193, 7, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Pulse Button Animation */
.pulse-btn {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

/* Hero Card Display */
.hero-card-display {
    position: relative;
    height: 500px;
}

.floating-card {
    position: absolute;
    transition: transform 0.3s ease;
}

.floating-card:hover {
    transform: translateY(-10px) rotate(2deg);
}

.card-1 {
    top: 50px;
    left: 20px;
    animation: float 6s ease-in-out infinite;
}

.card-2 {
    top: 120px;
    right: 20px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Bash Card Styling */
.bash-card {
    width: 200px;
    height: 280px;
    background: linear-gradient(145deg, #ffffff, #f0f0f0);
    border-radius: 15px;
    border: 2px solid #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    padding: 15px;
    font-family: 'Courier New', monospace;
}

.card-corners {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
}

.corner {
    position: absolute;
    font-weight: bold;
    font-size: 1.2rem;
    color: #333;
}

.top-left {
    top: 0;
    left: 0;
}

.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(180deg);
}

.card-content {
    text-align: center;
    margin-top: 30px;
    color: #333;
}

.card-content h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.card-desc {
    font-size: 0.75rem;
    margin-bottom: 15px;
    color: #666;
}

.ascii-art {
    font-size: 0.6rem;
    line-height: 1;
    color: var(--primary-green);
}

/* QR Code Overlay */
.qr-code-overlay {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    animation: glow 2s ease-in-out infinite alternate;
}

.qr-code-overlay i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    display: block;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    }
    to {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Features Section */
.features-section {
    background: #f8f9fa;
}

.feature-card {
    background: white;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

/* Demo Section */
.demo-steps {
    margin-top: 30px;
}

.demo-step {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.step-number {
    background: var(--primary-green);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 20px;
    flex-shrink: 0;
}

.step-content h5 {
    margin-bottom: 5px;
    color: #fff;
}

/* Terminal Demo */
.terminal-demo {
    background: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background: #333;
    padding: 10px 15px;
    display: flex;
    align-items: center;
}

.terminal-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.terminal-button.red {
    background: #ff5f56;
}

.terminal-button.yellow {
    background: #ffbd2e;
}

.terminal-button.green {
    background: #27ca3f;
}

.terminal-title {
    color: #ccc;
    font-size: 0.9rem;
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: 'Courier New', monospace;
    color: #ccc;
}

.terminal-line {
    margin-bottom: 10px;
}

.prompt {
    color: var(--terminal-green);
}

.command {
    color: #fff;
}

.terminal-output {
    margin-top: 15px;
}

.output-line {
    margin-bottom: 8px;
    color: #ccc;
}

.output-line.success {
    color: var(--terminal-green);
}

/* Deck Cards */
.deck-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.deck-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.deck-card.featured {
    border: 3px solid var(--primary-green);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--primary-green);
    color: white;
    padding: 5px 40px;
    font-size: 0.8rem;
    font-weight: bold;
    transform: rotate(45deg);
    z-index: 1;
}

.deck-header {
    padding: 30px 20px 20px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
}

.deck-icon {
    font-size: 3rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.deck-body {
    padding: 0 20px 20px;
}

.deck-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.deck-features li {
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.deck-footer {
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.bg-gradient {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* Footer */
.social-links a {
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-green) !important;
}

/* Registration Modal Styles */
#registrationModal .modal-content {
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

#registrationModal .modal-body {
    padding: 30px;
}

#registrationModal .generation-step {
    padding: 8px 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#registrationModal .generation-step.active {
    opacity: 1;
    font-weight: 600;
}

#registrationModal .generation-step.completed {
    opacity: 0.8;
    color: var(--bs-success);
}

#registrationModal .validation-step {
    padding: 8px 0;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#registrationModal .validation-step.active {
    opacity: 1;
    font-weight: 600;
}

#registrationModal .validation-step.completed {
    opacity: 0.8;
    color: var(--bs-success);
}

/* Form validation styles */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.4.31.71-.71.4-.32 1.44-1.44L6.7 3.71 5.26 2.27 4.82 1.83l-.8.8-1.6 1.6-.4.32-.4-.32-.8-.8-.4-.32L.7 3.71l.31.4 1.29 1.29.4.31.31.4z'/%3e%3c/svg%3e");
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
}

/* Phone number input styling */
#regPhone::placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Date input styling */
#regBirthday {
    position: relative;
}

/* Progress bar animation */
.progress-bar-animated {
    animation: progress-bar-stripes 1s linear infinite;
}

@keyframes progress-bar-stripes {
    0% { background-position: 1rem 0; }
    100% { background-position: 0 0; }
}

/* Responsive adjustments for registration modal */
@media (max-width: 768px) {
    #registrationModal .modal-body {
        padding: 20px;
    }
    
    #registrationModal .modal-dialog {
        margin: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    .hero-card-display {
        height: 300px;
        margin-top: 50px;
    }
    
    .floating-card {
        position: relative;
        display: inline-block;
        margin: 10px;
    }
    
    .card-1, .card-2 {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
    }
    
    .demo-step {
        text-align: center;
        flex-direction: column;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Animation Styles */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.6s ease-out;
}

.card, .feature-item, .demo-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.hero-title, .hero-subtitle {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.hero-title.animate-in, .hero-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.terminal-ready {
    border: 1px solid var(--terminal-green);
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.deck-card {
    transition: transform 0.3s ease;
    cursor: pointer;
}

.deck-card:hover {
    transform: scale(1.05);
}

.deck-card.flipped {
    transform: rotateY(180deg);
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Game of Life Modal Styles */
.game-of-life-display {
    position: relative;
    display: inline-block;
}

.game-of-life-display img {
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
    image-rendering: crisp-edges;
}

.loading-spinner {
    padding: 40px;
    color: var(--primary-green);
}

#guestModal .modal-content {
    border: none;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
}

#guestModal .modal-body {
    padding: 30px;
}

#guestModal .btn {
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
}

/* Game of Life Canvas Styling */
.game-of-life-canvas {
    border: 3px solid var(--primary-green);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(40, 167, 69, 0.3);
    background: #f8f9fa;
}

/* Members Area Specific Styles */
.member-dashboard .container {
    max-width: 1200px;
}

.user-identifier-display {
    transition: all 0.3s ease;
}

.user-identifier-display:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* Responsive adjustments for Game of Life */
@media (max-width: 768px) {
    .game-of-life-display img {
        max-width: 250px;
        height: auto;
    }
    
    #guestModal .modal-body {
        padding: 20px;
    }
    
    .user-identifier-thumb {
        width: 35px;
        height: 35px;
    }
}

/* Login Modal Upload Area Styles */
.upload-area {
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9fa;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: #007bff;
    background: #e7f3ff;
}

.upload-area.dragover {
    border-color: #28a745;
    background: #e8f5e8;
    transform: scale(1.02);
}

.upload-content {
    width: 100%;
}

.upload-area.has-file {
    border-color: #28a745;
    background: #e8f5e8;
}

.upload-area.has-file .upload-content i {
    color: #28a745 !important;
}

/* Upload area styling */
.upload-area {
    border: 2px dashed #ccc;
    border-radius: 10px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #f8f9fa;
}

.upload-area:hover,
.upload-area.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
}

.upload-area .upload-content {
    pointer-events: none;
}

.upload-area.drag-over {
    border-color: #28a745;
    background-color: #d4edda;
}

/* Image preview styling */
#imagePreview img {
    max-width: 100%;
    height: auto;
    border: 2px solid #dee2e6;
}

/* File input styling */
.file-input-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    cursor: pointer;
}

.file-input-wrapper input[type=file] {
    position: absolute;
    left: -9999px;
}
