/**
 * =========================================================
 * $EPIMP Custom Styles
 * Built on top of Windows 95 UI Kit
 * =========================================================
 */

/* ============================================
   ROOT VARIABLES & GLOBAL STYLES
   ============================================ */

:root {
    --epimp-primary: #008080;
    --epimp-secondary: #000080;
    --epimp-accent: #800080;
    --epimp-success: #008000;
    --epimp-gold: #FFD700;
    --epimp-dark: #000000;
    --epimp-light: #c0c0c0;
}

/* Custom scrollbar for Windows 95 feel */
::-webkit-scrollbar {
    width: 16px;
}

::-webkit-scrollbar-track {
    background: var(--epimp-light);
    border: 1px solid #808080;
}

::-webkit-scrollbar-thumb {
    background: var(--epimp-light);
    border: 2px outset #ffffff;
    border-right-color: #808080;
    border-bottom-color: #808080;
}

::-webkit-scrollbar-thumb:hover {
    background: #a0a0a0;
}

/* ============================================
   TYPOGRAPHY ENHANCEMENTS
   ============================================ */

body {
    background: var(--epimp-primary);
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23007070' fill-opacity='0.3'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.display-4 {
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 2px 2px 0 #808080;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
    }
}

h1, h2, h3, h4, h5, h6 {
    text-shadow: 1px 1px 0 rgba(255, 255, 255, 0.5);
}

.lead {
    font-size: 1.25rem;
    color: #333;
}

/* ============================================
   SECTION STYLING
   ============================================ */

section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.section-lg {
    padding-top: 80px;
    padding-bottom: 80px;
}

.section-sm {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* ============================================
   CARD ENHANCEMENTS
   ============================================ */

.card {
    box-shadow: 
        inset -1px -1px #0a0a0a,
        inset 1px 1px #ffffff,
        inset -2px -2px grey,
        inset 2px 2px #dfdfdf;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
}

.card-header {
    background: linear-gradient(90deg, var(--epimp-secondary) 0%, var(--epimp-primary) 100%);
    color: white;
    font-weight: bold;
    padding: 6px 10px;
}

.card-tertiary .card-header {
    background: linear-gradient(90deg, var(--epimp-secondary) 0%, #000050 100%);
}

.card-success .card-header {
    background: linear-gradient(90deg, #008000 0%, #006400 100%);
    color: white;
}

.card-warning .card-header {
    background: linear-gradient(90deg, #FF8C00 0%, #FFA500 100%);
    color: white;
}

.card-info .card-header {
    background: linear-gradient(90deg, #00CED1 0%, #008B8B 100%);
    color: white;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */

.btn {
    transition: all 0.1s ease;
    position: relative;
}

.btn:active {
    transform: translateY(1px);
}

.btn-success {
    background-color: #00c800 !important;
    color: #000 !important;
}

.btn-success:hover {
    background-color: #00a800 !important;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Pulsing animation for CTA buttons */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 200, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 200, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 200, 0, 0);
    }
}

.btn-success.border-dark {
    animation: pulse 2s infinite;
}

/* ============================================
   HERO SECTION
   ============================================ */

#home .card-tertiary {
    max-width: 900px;
    margin: 0 auto;
}

.hero-stats .card {
    background: var(--epimp-light);
    border: none;
}

.hero-stats h3 {
    font-size: 2.5rem;
    margin-bottom: 0;
}

/* ============================================
   PROGRESS BARS (Windows 95 Style)
   ============================================ */

.progress {
    background-color: #ffffff;
    border: 2px inset #808080;
    border-radius: 0;
    overflow: hidden;
    height: 20px;
}

.progress-bar {
    background: #000080;
    transition: width 0.5s ease;
}

.progress-bar.bg-success {
    background: #008000;
}

.progress-bar.bg-info {
    background: #008080;
}

.progress-bar.bg-warning {
    background: #ffa500;
}

.progress-bar.bg-danger {
    background: #c00000;
}

/* ============================================
   TOKENOMICS DISTRIBUTION BARS
   ============================================ */

.tokenomics-distribution {
    width: 100%;
}

.distribution-bar {
    width: 100%;
    height: 24px;
    background: #ffffff;
    border: 2px inset #808080;
    position: relative;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.distribution-fill.bg-success {
    width: 60%;
    background: linear-gradient(180deg, #00c800 0%, #008000 100%);
}

.distribution-fill.bg-info {
    width: 20%;
    background: linear-gradient(180deg, #00c8c8 0%, #008080 100%);
}

.distribution-fill.bg-warning {
    width: 10%;
    background: linear-gradient(180deg, #ffc800 0%, #ffa500 100%);
}

.distribution-fill.bg-danger {
    width: 10%;
    background: linear-gradient(180deg, #ff4444 0%, #c00000 100%);
}

.distribution-item strong {
    font-size: 0.95rem;
}

/* ============================================
   TABLE STYLING
   ============================================ */

.table {
    background: white;
    border: 2px inset #808080;
}

.table thead tr {
    background: var(--epimp-secondary);
}

.table td, .table th {
    border-color: #808080;
    vertical-align: middle;
}

.table-bordered {
    border: 2px solid #808080;
}

.table-borderless {
    border: none;
}

.table-borderless td {
    border: none;
    padding: 8px 12px;
}

.table-sm td {
    padding: 6px 10px;
}

/* ============================================
   BADGE STYLING
   ============================================ */

.badge {
    font-weight: normal;
    padding: 4px 8px;
    border: 1px outset #ffffff;
    border-radius: 0;
}

.badge-success {
    background: #00c800;
    color: #000;
}

.badge-info {
    background: var(--epimp-primary);
    color: #fff;
}

.badge-warning {
    background: #ffa500;
    color: #000;
}

/* ============================================
   NAVBAR / TASKBAR ENHANCEMENTS
   ============================================ */

.navbar-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar-footer {
    position: relative;
}

main {
    padding-top: 45px;
}

.nav-link:hover {
    background: var(--epimp-secondary) !important;
}

.time {
    background: #c0c0c0;
    border: 2px inset #808080;
    padding: 2px 10px;
    min-width: 80px;
}

/* ============================================
   STEP ICONS
   ============================================ */

.step-icon {
    width: 80px;
    height: 80px;
    background: var(--epimp-light);
    border: 3px outset #ffffff;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* ============================================
   FAQ ACCORDION STYLE
   ============================================ */

#faq .card {
    cursor: default;
}

#faq .card-header {
    cursor: default;
}

#faq .card-body {
    border-top: 2px solid #808080;
}

/* ============================================
   IMAGE STYLING
   ============================================ */

.img-fluid {
    border: 3px inset #808080;
    background: white;
    padding: 5px;
}

/* ============================================
   LIST STYLING
   ============================================ */

.list-unstyled li {
    padding: 4px 0;
}

/* ============================================
   FORM ENHANCEMENTS
   ============================================ */

.form-control:focus {
    border-color: var(--epimp-secondary);
    box-shadow: inset 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Stagger animation for cards in a row */
.row .col-lg-4:nth-child(1) .card { animation-delay: 0.1s; }
.row .col-lg-4:nth-child(2) .card { animation-delay: 0.2s; }
.row .col-lg-4:nth-child(3) .card { animation-delay: 0.3s; }
.row .col-lg-6:nth-child(1) .card { animation-delay: 0.1s; }
.row .col-lg-6:nth-child(2) .card { animation-delay: 0.2s; }

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 991px) {
    .navbar-nav {
        flex-wrap: wrap;
    }
    
    .nav-item {
        margin-bottom: 2px;
    }
    
    section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
}

@media (max-width: 767px) {
    .hero-stats h3 {
        font-size: 1.8rem;
    }
    
    .display-4 {
        font-size: 1.8rem;
    }
    
    .btn-lg {
        padding: 8px 16px;
        font-size: 1rem;
    }
    
    main {
        padding-top: 35px;
    }
}

/* ============================================
   SPECIAL EFFECTS
   ============================================ */

/* Glowing text effect for important elements */
.text-success {
    text-shadow: 0 0 10px rgba(0, 200, 0, 0.5);
}

/* Hover effects for AI showcase cards */
#showcase .card:hover {
    transform: translateY(-5px);
    box-shadow: 
        inset -1px -1px #0a0a0a,
        inset 1px 1px #ffffff,
        inset -2px -2px grey,
        inset 2px 2px #dfdfdf,
        0 10px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   LOADING ANIMATION (Windows 95 Style)
   ============================================ */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #c0c0c0;
    border-radius: 0;
    border-top-color: var(--epimp-secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-gold {
    color: var(--epimp-gold) !important;
}

.bg-teal {
    background-color: var(--epimp-primary) !important;
}

.border-gold {
    border-color: var(--epimp-gold) !important;
}

/* Z-index helpers */
.z-1 { z-index: 1; }
.z-2 { z-index: 2; }
.z-3 { z-index: 3; }

/* ============================================
   ABOUT SECTION IMAGE STYLES
   ============================================ */

.about-img {
    max-height: 250px;
    width: auto;
    object-fit: cover;
    border: 3px inset #808080;
}

/* ============================================
   AI GALLERY STYLES
   ============================================ */

.ai-showcase-main {
    max-height: 400px;
    width: auto;
    border: 4px inset #808080;
}

.ai-gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 3px inset #808080;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10;
    position: relative;
}

.coming-soon-placeholder {
    background: linear-gradient(135deg, #c0c0c0 0%, #808080 100%);
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px inset #808080;
    margin-bottom: 15px;
}

.coming-soon-placeholder span {
    font-size: 3rem;
    margin-bottom: 10px;
}

.coming-soon-placeholder p {
    margin: 0;
    color: #333;
    font-weight: bold;
}

/* ============================================
   NSFW SECTION STYLES
   ============================================ */

.nsfw-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border: 4px inset #808080;
    background: #000;
}

.nsfw-video {
    width: 100%;
    display: block;
    filter: blur(30px);
    transition: filter 0.5s ease;
}

.nsfw-blur-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.nsfw-blur-overlay.revealed {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.nsfw-blur-overlay.revealed + .nsfw-video,
.nsfw-container:has(.nsfw-blur-overlay.revealed) .nsfw-video {
    filter: blur(0);
}

.nsfw-warning {
    text-align: center;
    color: white;
    padding: 30px;
}

.nsfw-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.nsfw-warning h4 {
    color: #ff4444;
    margin-bottom: 10px;
    text-shadow: none;
}

.nsfw-warning p {
    margin-bottom: 5px;
}

/* Fix for browsers that don't support :has() */
.nsfw-video.revealed {
    filter: blur(0) !important;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .navbar-main,
    .navbar-footer,
    .btn {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
}

