/* Base Styles */
:root {
    --primary: #04795B; /* Gnosis green */
    --primary-dark: #036348;
    --primary-light: #E6F3EE;
    --secondary: #3E6954; /* Gnosis dark green */
    --secondary-light: #EBF0ED;
    --accent: #FFC107; /* Gnosis accent yellow */
    --dark: #0A0B0D;
    --dark-light: #1A1C23;
    --gray-dark: #1E1F25;
    --gray: #2D2E36;
    --gray-medium: #4A4D55;
    --gray-light: #6C6F7B;
    --gray-very-light: #E9EAEC;
    --light: #FFFFFF;
    --success: #00E676;
    --error: #FF5252;
    --warning: #FFC107;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
}

/* Header Styles */
header {
    background-color: rgba(10, 11, 13, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(46, 52, 64, 0.3);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo img {
    height: 40px;
    width: auto;
}

.gnosis {
    color: var(--primary);
}

.chain {
    color: var(--light);
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 0;
    position: relative;
}

nav a:hover {
    color: var(--primary);
}

nav a.active {
    color: var(--primary);
    font-weight: 600;
}

nav a.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Main Content Styles */
main {
    min-height: calc(100vh - 160px);
    padding: 40px 0;
    background: radial-gradient(circle at 20% 50%, rgba(4, 121, 91, 0.15) 0%, transparent 30%);
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.subtitle {
    font-size: 18px;
    color: var(--gray-light);
    margin-bottom: 40px;
}

/* Quest Card Styles */
.quest-card {
    background-color: var(--gray-dark);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray);
}

.quest-progress {
    margin-bottom: 30px;
    position: relative;
}

.progress-bar {
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 8px rgba(4, 121, 91, 0.3);
}

.quest-progress span {
    position: absolute;
    right: 0;
    top: -25px;
    font-size: 14px;
    color: var(--gray-light);
    font-weight: 500;
}

/* Step Styles */
.quest-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: center;
    background-color: var(--gray);
    padding: 20px;
    border-radius: 12px;
    transition: all 0.3s;
    border: 1px solid var(--gray-medium);
}

.step:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--primary);
}

.step-number {
    width: 36px;
    height: 36px;
    background-color: var(--dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 20px;
    flex-shrink: 0;
    color: var(--light);
    border: 2px solid var(--primary);
}

.step-content {
    flex-grow: 1;
}

.step-content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--light);
}

.step-content p {
    color: var(--gray-light);
    font-size: 14px;
}

.step-button {
    padding: 12px 24px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
    font-size: 15px;
}

.step-button:not(:disabled) {
    background-color: var(--primary);
    color: white;
}

.step-button:not(:disabled):hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 121, 91, 0.3);
}

.step-button:disabled {
    background-color: var(--gray);
    color: var(--gray-light);
    cursor: not-allowed;
}

.connect-wallet {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    background-size: 200% auto;
    animation: gradient 3s linear infinite;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Reward Info Styles */
.reward-info {
    background-color: var(--gray-dark);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    border: 1px solid var(--primary);
}

.reward-info h3 {
    font-size: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.reward-amount {
    color: var(--accent);
    font-weight: 700;
}

.reward-info p {
    color: var(--gray-light);
    font-size: 15px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: var(--gray-dark);
    border-radius: 16px;
    width: 100%;
    max-width: 1004px;
    height: 800px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary);
    position: relative;
}

.gnosis-modal .modal-header {
    background-color: var(--dark);
    color: white;
    padding: 20px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gray);
}

.gnosis-modal .modal-header img {
    height: 30px;
}

.gnosis-modal .modal-header span {
    flex-grow: 1;
    text-align: center;
    padding-left: 40px; /* compensate for logo */
}

.close-modal {
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 28px;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0 10px;
    line-height: 1;
}

.close-modal:hover {
    color: var(--light);
    transform: scale(1.1);
}

.wallet-iframe {
    width: 100%;
    height: calc(100% - 65px);
    border: none;
}

/* Footer Styles */
footer {
    background-color: var(--gray-dark);
    padding: 24px 0;
    text-align: center;
    font-size: 14px;
    color: var(--gray-light);
    border-top: 1px solid var(--gray);
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 36px;
    }
    
    .logo img {
        height: 32px;
    }
    
    .logo {
        font-size: 20px;
    }
    
    nav {
        gap: 15px;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .step-button {
        width: 100%;
        margin-top: 10px;
    }
    
    .modal-content {
        height: 90vh;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 28px;
    }
    
    .subtitle {
        font-size: 16px;
    }
    
    .quest-card {
        padding: 20px;
    }
    
    header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .gnosis-modal .modal-header {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .gnosis-modal .modal-header span {
        padding-left: 0;
    }
}
