/* Bhatkal Ancient Port Explorer Styles */
:root {
    --bhatkal-primary: #e07a5f;
    --bhatkal-secondary: #3d405b;
    --bhatkal-accent: #81b29a;
    --bg-color: #1a1a1a;
    --text-color: #f0f0f0;
    --card-bg: #2d2d2d;
    --border-color: #444;
}

[data-theme="light"] {
    --bhatkal-primary: #f2cc8f;
    --bhatkal-secondary: #3d405b;
    --bhatkal-accent: #81b29a;
    --bg-color: #f8f9fa;
    --text-color: #212529;
    --card-bg: #ffffff;
    --border-color: #dee2e6;
}

.port-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: var(--text-color);
}

.port-hero {
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, var(--bhatkal-secondary), var(--bhatkal-primary));
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 40px;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: white;
}

.hero-title {
    font-size: 3rem;
}

.port-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    color: var(--text-color);
    cursor: pointer;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    border-bottom-color: var(--bhatkal-accent);
    font-weight: bold;
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

.trade-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.timeline {
    padding-left: 30px;
    border-left: 3px solid var(--bhatkal-accent);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 5px;
    width: 10px;
    height: 10px;
    background: var(--bhatkal-primary);
    border-radius: 50%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.gallery-item {
    background: var(--card-bg);
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.gallery-img-placeholder {
    font-size: 1.5rem;
    color: var(--bhatkal-accent);
}

.port-quiz {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin: 40px 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-color);
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bhatkal-primary);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
}

.btn-scroll-top.visible {
    display: block;
}
