
/* Photo Information */
.photo-information-section {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid lightgray;
    border-radius: 12px;
    background-color: whitesmoke;
}

.photo-information-section h3 {
    color: darkred;
    font-size: 20px;
    border-bottom: 2px solid mistyrose;
    margin-bottom: 8px;
}

.photo-information-section p {
    margin: 12px 0;
    color: dimgray;
}

.photo-information-section span {
    color: black;
    font-weight: bold;
}

/* Metadata */
.metadata-section {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid lightgray;
    border-radius: 12px;
    background-color: whitesmoke;
}

.metadata-section h3 {
    color: darkred;
    font-size: 20px;
    border-bottom: 2px solid mistyrose;
    margin-bottom: 8px;
}

.metadata-section p {
    margin: 12px 0;
    color: dimgray;
}

.metadata-section span {
    color: black;
    font-weight: bold;
}

/* Forensic Analysis */
.forensic-analysis-section {
    margin-top: 25px;
    padding: 25px;
    border: 1px solid lightgray;
    border-radius: 12px;
    background-color: whitesmoke;
}

.forensic-analysis-section h3 {
    color: darkred;
    font-size: 20px;
    border-bottom: 2px solid mistyrose;
    margin-bottom: 8px;
}

.forensic-analysis-section p {
    margin: 12px 0;
    color: dimgray;
}

.forensic-analysis-section span {
    color: black;
    font-weight: bold;
}

/* Error Level Analysis Image */
#elaImage {
    width: auto;
    height: auto;
    max-width: min(100%, 400px);
    max-height: 300px;
    object-fit: contain;
    border-radius: 10px;
    margin: 15px 0;
}

/* Video Size */
.forensic-analysis-section video {
    display: block;
    width: 100%;
    max-width: 400px;
    max-height: 300px;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    margin: 15px 0;
}

/* Main Results Container */
.result-box {
    width: 850px;
    max-width: 90%;
    margin: 50px auto;
    padding: 35px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 8px 20px gray;
}

/* Main Heading */
.result-box > h3 {
    color: darkred;
    text-align: center;
    font-size: 30px;
    margin-bottom: 15px;
}

/* Analysis Status */
.result-status {
    padding: 15px;
    margin-bottom: 30px;
    background-color: #f8e6e6;
    color: darkred;
    border: 1px solid #e8baba;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
}

/* False Flag Explanations */
.false-flags-section {
    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 2px solid lightgray;
    border-radius: 12px;
    background-color: mistyrose;
}

.false-flags-section h3 {
    color: darkred;
    margin-bottom: 8px;
}

.false-flags-section p {
    color: dimgray;
}

.false-flag-item {
    margin-top: 12px;
    padding: 12px;
    background-color: white;
    border-left: 4px solid darkred;
    border-radius: 5px;
}

.false-flag-item strong {
    color: darkred;
}

/* Overall Result */
.overall-result {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
    border: 1px solid #6b0000;
    border-radius: 12px;
    background-color: #7a2020;
}

/* Overall Result Icon */
.overall-result-icon {
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    border-radius: 50%;
    background-color: #b94a4a;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
}

/* Overall Result Headings */
.overall-result h3 {
    color: white;
    font-size: 20px;
    margin-bottom: 8px;
}

/* Overall Result Text */
.overall-result p {
    color: #fff0f0;
    line-height: 1.6;
}

/* Print Results Button */
.print-section {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 10px;
}

.print-button {
    background-color: darkred;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.print-button:hover {
    background-color: #b22222;
}

/* Back to Home Button */
.results-home-link {
    text-align: center;
    margin: 15px auto 30px;
}

.results-home-link a {
    display: inline-block;
    padding: 12px 25px;
    background-color: darkred;
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
}

.results-home-link a:hover {
    background-color: #b22222;
}

/* Mobile Layout */
@media (max-width: 600px) {
    .result-box {
        width: 95%;
        max-width: 95%;
        padding: 15px;
        margin: 25px auto;
    }

    .photo-information-section,
    .metadata-section,
    .forensic-analysis-section,
    .false-flags-section,
    .overall-result {
        padding: 18px;
    }

    .overall-result {
        gap: 12px;
    }

    .result-box > h3 {
        font-size: 25px;
    }

    .result-box span {
        overflow-wrap: anywhere;
    }
}

/* Print Styling */
@media print {
    header,
    .print-section,
    .results-home-link,
    footer {
        display: none !important;
    }

    body {
        background: white !important;
    }

    .result-box {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
        border: none;
        box-shadow: none;
    }

    .photo-information-section,
    .metadata-section,
    .forensic-analysis-section,
    .false-flags-section,
    .overall-result {
        break-inside: avoid;
    }
}
