/* IKAROS Token Presale Platform - Main Stylesheet */

/* Global Styles */
:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --accent-color: #f39c12;
    --success-color: #2ecc71;
    --danger-color: #e74c3c;
    --dark-bg: #343a40;
    --light-bg: #f8f9fa;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.content {
    flex: 1 0 auto;
}

.footer {
    flex-shrink: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

/* Navigation */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.network-selector select {
    font-size: 0.9rem;
    padding: 0.25rem 0.5rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    background-color: var(--dark-bg);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

/* Presale Info Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.stat-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.stat-item:last-child {
    border-bottom: none;
}

/* Presale Timer */
.countdown {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, rgba(13,17,43,0.95) 0%, rgba(25,31,65,0.9) 100%);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 80px;
}

.countdown-value {
    font-family: 'Cinzel Decorative', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #f3c13a;
    text-shadow: 0 2px 8px rgba(243, 193, 58, 0.3);
    background-color: rgba(18, 22, 38, 0.8);
    border-radius: 0.5rem;
    width: 100%;
    padding: 0.5rem 0;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(243, 193, 58, 0.1);
}

.countdown-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-dots {
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.countdown-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #f3c13a;
    opacity: 0.7;
}

.presale-timer .badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-top: 1rem;
    background: rgba(243, 193, 58, 0.15);
    color: #f3c13a;
    border: 1px solid rgba(243, 193, 58, 0.3);
}

/* Progress Bar */
.progress {
    height: 25px;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.1);
}

.progress-bar {
    border-radius: 50px;
    background-color: var(--primary-color);
}

/* Buy Form */
.buy-tokens .card-header {
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 1rem;
}

.buy-tokens .form-control {
    border: 1px solid rgba(0, 0, 0, 0.2);
}

#buyBtn {
    padding: 0.8rem;
    font-weight: 600;
}

/* Token Distribution */
.token-distribution .distribution-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.token-distribution .distribution-item:last-child {
    border-bottom: none;
}

/* Contract Info */
.contract-info p {
    margin-bottom: 0.5rem;
}

.contract-address .input-group {
    margin-bottom: 1rem;
}

/* Timeline for Roadmap */
.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0.5rem;
    top: 0;
    height: 100%;
    width: 2px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
}

.timeline-marker {
    position: absolute;
    left: -2rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background-color: var(--dark-bg);
    border: 2px solid var(--primary-color);
    top: 0.5rem;
}

.timeline-marker.bg-success {
    background-color: var(--success-color);
}

.timeline-content {
    padding-bottom: 1rem;
}

.timeline-content h5 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    margin-bottom: 1.5rem;
}

.feature-list i {
    font-size: 2rem;
    margin-right: 1rem;
    color: var(--primary-color);
}

.feature-list h5 {
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.feature-list p {
    margin-bottom: 0;
}

/* FAQs */
.accordion-button:not(.collapsed) {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: rgba(52, 152, 219, 0.5);
}

/* Footer */
.footer {
    background-color: #0f1630;
    color: var(--text-light);
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/greek-pattern.png');
    background-repeat: repeat;
    opacity: 0.03;
    pointer-events: none;
}

.footer h5 {
    font-family: 'Cinzel Decorative', serif;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
}

.footer-about img {
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(52, 152, 219, 0.5));
}

.footer a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links li:last-child {
    border-bottom: none;
}

.social-links {
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1.1rem;
    transition: all 0.3s ease !important;
    position: relative;
    line-height: 1;
    padding: 0;
}

.social-link i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.social-link:hover {
    background-color: var(--primary-color);
    color: white !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.5);
}

.footer .input-group {
    margin-top: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0.25rem;
    overflow: hidden;
}

.footer .input-group .form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 0.75rem 1rem;
    color: white;
}

.footer .input-group .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.footer .input-group .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.footer-bottom {
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.2);
}

/* Transaction Modal */
#transactionModal .modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Toast Notifications */
.toast {
    background-color: var(--light-bg);
    border-left: 4px solid var(--primary-color);
}

.toast-header {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 0;
    }
    
    .timeline {
        padding-left: 1.5rem;
    }
    
    .timeline-marker {
        left: -1.5rem;
    }
    
    .feature-list li {
        flex-direction: column;
    }
    
    .feature-list i {
        margin-bottom: 0.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease-in-out;
    transform: translateY(20px) scale(0.9);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover, .back-to-top:focus {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
    transform: translateY(-5px) scale(1.05);
}

.back-to-top i {
    font-size: 1.2rem;
    animation: bounce 2s ease infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-2px);
    }
}

/* Dark Mode Adjustments */
[data-bs-theme="dark"] {
    --text-dark: #f8f9fa;
    
    .card {
        background-color: #2d3338;
    }
    
    .form-control, .form-select {
        background-color: #1e2124;
        border-color: #424649;
        color: #f8f9fa;
    }
    
    .input-group-text {
        background-color: #343a40;
        border-color: #424649;
        color: #f8f9fa;
    }
    
    .accordion-button {
        background-color: #2d3338;
        color: #f8f9fa;
    }
    
    .accordion-button:not(.collapsed) {
        background-color: rgba(52, 152, 219, 0.2);
    }
    
    .accordion-body {
        background-color: #212529;
    }
    
    .btn-outline-secondary {
        color: #f8f9fa;
        border-color: #6c757d;
    }
    
    .btn-outline-secondary:hover {
        background-color: #6c757d;
        color: #f8f9fa;
    }
}
