:root {
    --primary: #9945FF;
    --secondary: #14F195;
    --dark: #121212;
    --light: #FFFFFF;
    --gray: #222222;
    --light-gray: #555555;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo img {
    height: 150px;
}

.connect-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(153, 69, 255, 0.4);
}

/* Main Content */
main {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

.price-card, .past-results {
    background-color: var(--gray);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.current-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.9rem;
    color: var(--light-gray);
}

.price-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--secondary);
}

.timer {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 1.1rem;
}

.question {
    text-align: center;
    font-size: 1.5rem;
    margin: 30px 0;
}

.voting-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: transparent;
    border: 2px solid;
    border-radius: 15px;
    padding: 20px;
    width: 200px;
    cursor: pointer;
    transition: all 0.3s;
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.up-btn {
    border-color: #14F195;
    color: #14F195;
}

.down-btn {
    border-color: #FF4545;
    color: #FF4545;
}

.vote-btn:not(:disabled):hover {
    transform: translateY(-5px);
}

.vote-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.vote-text {
    font-size: 1.2rem;
    font-weight: bold;
}

.results-section {
    margin-top: 40px;
}

.section-title {
    font-size: 1.3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.prediction-bar {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    height: 40px;
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
}

.up-votes {
    position: absolute;
    height: 100%;
    background-color: rgba(20, 241, 149, 0.3);
    border-right: 2px solid var(--light);
    width: 50%; /* Default, will be updated by JS */
}

.vote-percentage {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    padding: 0 20px;
    font-weight: bold;
}

.up-percentage {
    left: 20px;
    color: #14F195;
}

.down-percentage {
    right: 20px;
    color: #FF4545;
}

.wallet-info {
    background-color: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.token-balance {
    display: flex;
    align-items: center;
}

.token-icon {
    width: 30px;
    height: 30px;
    background-color: var(--primary);
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
}

.result-date {
    color: var(--light-gray);
}

.result-prediction {
    display: flex;
    align-items: center;
}

.prediction-icon {
    margin-right: 10px;
}

.correct {
    color: #14F195;
}

.incorrect {
    color: #FF4545;
}

.loading {
    text-align: center;
    color: var(--light-gray);
    padding: 20px;
}

/* Info Section */
.info-section {
    margin: 50px 0;
    text-align: center;
}

.info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background-color: var(--gray);
    border-radius: 15px;
    padding: 30px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.info-card h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

/* Footer */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--gray);
    margin-top: 30px;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--light);
    margin: 0 10px;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary);
}

.copyright {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 100;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: var(--gray);
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
}

.modal-btn {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: var(--light);
    border: none;
    padding: 10px 30px;
    border-radius: 30px;
    margin-top: 20px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .voting-options {
        flex-direction: column;
        align-items: center;
    }
    
    .vote-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .wallet-info {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
}