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

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.control-btn {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.control-btn:hover {
    background-color: #555;
}

.zoom-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

#zoom-slider {
    width: 100px;
    cursor: pointer;
}

/* Main Content Styles */
main {
    display: flex;
    flex: 1;
    gap: 20px;
    flex-wrap: wrap;
}

#visualization {
    flex: 1;
    min-height: 500px;
    background-color: #111;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

#info-panel {
    width: 300px;
    padding: 20px;
    background-color: #111;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

#info-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #fff;
}

#info-description {
    margin-bottom: 20px;
    color: #ccc;
}

#info-details {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
}

#purchase-btn {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

#purchase-btn:hover {
    background-color: #45a049;
}

.hidden {
    display: none !important;
}

/* Footer Styles */
footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.legend {
    flex: 1;
    min-width: 300px;
}

.legend h3 {
    margin-bottom: 10px;
}

.legend-items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-right: 15px;
}

.legend-color {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-block;
}

.navigation {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navigation a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navigation a:hover {
    background-color: #333;
}

/* D3 Visualization Styles */
.node {
    cursor: pointer;
}

.node:hover {
    stroke: #fff;
    stroke-width: 2px;
}

.node-selected {
    stroke: #fff;
    stroke-width: 3px;
}

.link {
    stroke: #555;
    stroke-opacity: 0.4;
    stroke-width: 1px;
}

.link-highlighted {
    stroke: #fff;
    stroke-opacity: 0.8;
    stroke-width: 2px;
}

.node-label {
    font-size: 10px;
    pointer-events: none;
    text-shadow: 0 1px 0 #000, 1px 0 0 #000, 0 -1px 0 #000, -1px 0 0 #000;
}

/* Responsive Styles */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .controls {
        width: 100%;
        margin-top: 10px;
    }
    
    main {
        flex-direction: column;
    }
    
    #info-panel {
        width: 100%;
        order: -1;
    }
    
    #visualization {
        min-height: 400px;
    }
}

/* Special Highlighting for Video Tools */
.video-tool {
    stroke: #fff;
    stroke-width: 2px;
}
