/* Βασικά στυλ και μεταβλητές χρωμάτων */
:root {
    --primary-blue: #006988;
    --light-blue: #56b6cb;
    --dark-blue: #004a5d;
    --accent-yellow: #ffd100;
    --text-grey: #666666;
    --light-grey: #f5f5f5;
    --white: #ffffff;
    --deep-teal: #0A4A4A;
    --light-gray: #F2F2F2;
    --dark-gray: #333333;
    --accent-blue: #2C85D3;
}

/* Import Titillium Web Font */
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@300;400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Titillium Web', sans-serif;
}

body {
    background-color: var(--white);
    color: var(--dark-gray);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--deep-teal);
    padding: 1rem;
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    display: flex;
    align-items: center;
}

.logo-square {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent-blue);
    margin-left: 5px;
}

.hello-badge {
    background-color: var(--accent-blue);
    color: var(--white);
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.2rem;
}

/* Navigation */
.nav-tabs {
    display: flex;
    background-color: var(--light-gray);
    border-bottom: 3px solid var(--deep-teal);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.nav-tab {
    padding: 1rem 1.5rem;
    white-space: nowrap;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tab.active {
    color: var(--deep-teal);
    border-bottom: 3px solid var(--deep-teal);
    margin-bottom: -3px;
}

.nav-tab:hover {
    color: var(--deep-teal);
}

/* Main Content */
.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-section {
    display: none;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease;
}

.page-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Styles */
.section-title {
    color: var(--deep-teal);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.section-title .icon {
    background-color: var(--accent-yellow);
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 12px;
}

.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.info-box {
    flex: 1 1 300px;
    background-color: var(--light-grey);
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.info-title {
    color: var(--dark-gray);
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: var(--accent-yellow);
    margin-right: 8px;
}

.value-tag {
    display: inline-block;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-box {
    flex: 1 1 200px;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-box::after {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    right: -30px;
    bottom: -30px;
}

/* Map Styles */
.office-map {
    height: 300px;
    background-color: var(--light-grey);
    border-radius: 8px;
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
}

.map-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 5px rgba(255, 209, 0, 0.3);
}

.map-marker::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: var(--primary-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.athens { top: 43%; left: 55%; }
.shanghai { top: 42%; left: 82%; }
.singapore { top: 60%; left: 79%; }

.location-name {
    position: absolute;
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    transform: translateY(12px);
    white-space: nowrap;
}

/* Footer */
footer {
    background-color: var(--deep-teal);
    color: var(--white);
    padding: 1.5rem;
    text-align: center;
    margin-top: 2rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background-color: var(--white);
    margin: 1rem auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qr-placeholder::before {
    content: "QR";
    color: var(--primary-blue);
    font-weight: bold;
}

.contact-info {
    margin-top: 1rem;
    font-size: 0.9rem;
}

.version-info {
    font-size: 0.8rem;
    margin-top: 1rem;
    opacity: 0.7;
}

.version-info p {
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
}

/* Add animation keyframes */
@keyframes wobble {
  0% { transform: translateX(0%); }
  15% { transform: translateX(-5%) rotate(-3deg); }
  30% { transform: translateX(3%) rotate(2deg); }
  45% { transform: translateX(-3%) rotate(-2deg); }
  60% { transform: translateX(2%) rotate(1deg); }
  75% { transform: translateX(-1%) rotate(-1deg); }
  100% { transform: translateX(0%); }
}

/* Apply animation to preBoarding section when active */
#preBoarding.active {
    animation: wobble 0.8s ease-in-out;
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-tab {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }

    .page-section {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Print styles for physical leaflet */
@media print {
    .nav-tabs, .page-section:not(.active) {
        display: none;
    }

    .page-section.active {
        display: block;
        box-shadow: none;
        page-break-inside: avoid;
    }

    header, footer {
        background-color: var(--primary-blue) !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }

    body {
        background-color: white;
    }
}