//
// CSS for ETF Individual HTML Pages
// Version: 1.3.250722
//

html {
    height: 100%;
}

body {
	min-height: 100vh;
    background-color: black;
    background-image: url('/../../assets/texture_brickwall.png');
    font-family: Arial, sans-serif;
    color: blanchedalmond;
    margin: 0;
    padding: 0;
}


.top-banner {
    // Text styles set below:  etf_name  rank  manager
    display: flex;
    flex-direction: column;
	// position: fixed;
    background-color: #2c3e50;
    color: blanchedalmond;
	font-size: 1.5em;
    gap: 10px;
    padding: 1em;
}

.footer-banner {
    background-color: #2c3e50;
    font-family: Arial, sans-serif;
    color: blanchedalmond;
    font-size: 1em;
    text-align: center;
    padding: 1em;
}


.top-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.etf_name, .etf_rank {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 2.2em;
    font-weight: bold;
}

.manager {
    font-family: Arial, sans-serif;
    font-size: 0.8em;
    font-weight: normal;
    align-self: flex-start;
}

.symbol {
    font-family: Arial, sans-serif;
    font-size: 1em;
    font-weight: normal;
}

a {
	text-decoration:none;     /* no underline    */
	link {color: white;}      /* unvisited link  */
	visited {color: white;}   /* visited link    */
	hover {color: white;}     /* mouse over link */
	active {color: white;}    /* selected link   */
}

.etf_content {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 2em auto;
    padding: 1em;
    gap: 2em;
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5em;
}

.panel {                        // panel_etf same as panel_analysis
    display: flex;
    flex-direction: column;
    width: 300px;
	height: 550px;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 48%;
}

.panel-analysis_deprecated {    // panel_etf same as panel_analysis
    display: flex;
    flex-direction: column;
	background-color: white;
    width: 300px;
	height: 550px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 48%;
	overflow-y: auto; 
}

.panel-header {
	// position: fixed;
	position: sticky;
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: white;
    padding: 0.75em;
    font-size: 1.5em;
    font-weight: bold;
}

.panel-content {
	font-size: 1.2em;
	color: black;
    padding: 1em;
}

.panel-content-etf {
	font-size: 1.2em;
	color: black;
    padding: 1em;
}

.panel-content-analysis {
	height: 400px;
	font-size: 1.2em;
	color: black;
    padding: 1em;
	overflow-y: auto;
}

.panel-footer {
	// position: fixed;
    font-family: Arial, sans-serif;
    background-color: #2c3e50;
    color: white;
    text-align: right;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0.75em;
    border-top: 2px solid #bdc3c7;
}

.stock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75em 0;
    border-bottom: 1px solid #e1e4e8;
}

.stock-even-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8em 0;
    border-bottom: 1px solid #eee;
    padding: 0 0.8em;
    background-color: lightcyan;          // blue row
}

.stock-odd-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.8em 0;
    border-bottom: 1px solid #eee;
    padding: 0 0.8em;
}

.stock-row:last-child {
    border-bottom: none;
}

.stock-name {
    font-weight: 500;
}

.stock-change {
    display: flex;
    align-items: center;
    font-weight: bold;
}

.change-indicator {
    margin-right: 0.5em;
}

.change-indicator.up {
    color: green;
}

.change-indicator.down {
    color: red;
}

.change-indicator.no-data {
    color: gray;
}


/* Mobile responsive styles */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 1em;
    }

    .panel {
        flex: 1 1 100%;
    }

    .top-banner,
    .footer-banner {
        font-size: 1.2em;
        padding: 0.75em;
    }

    .panel-header {
        font-size: 1em;
    }

    .panel-footer {
        text-align: center;
    }
}