/* 
SITUAȚIA INCIDENTELOR CU DRONE
*/


/* 
1. SECȚIUNEA PRINCIPALĂ
*/

.drone-section {
    width: 100%;
    margin: 25px 0 30px 0;
    padding: 20px;

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;

    background: #071c2c;
    color: #ffffff;

    border-radius: 12px;
}


/* 
2. ANTET
*/

.drone-header {
    text-align: center;
    margin-bottom: 18px;
}

.drone-section .drone-header h2 {
    margin: 0 0 8px 0;
    padding: 0;

    text-align: center;

    font-size: 25px;
    line-height: 1.3;

    color: #ffffff;
}


/* 
3. DATA ACTUALIZĂRII
*/

.drone-section .drone-update {
    margin: 0;

    text-align: center;

    font-size: 14px;

    color: #d5e4ec;
}


/* 
4. RADAR
   */

.drone-radar {
    position: relative;

    width: 300px;
    height: 300px;

    max-width: 100%;

    margin: 0 auto;

    box-sizing: border-box;

    overflow: hidden;

    border: 2px solid rgba(210, 235, 245, 0.45);

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(38, 116, 145, 0.24) 0%,
            rgba(7, 28, 44, 0.98) 72%
        );

    color: #ffffff;
}


/* 
5. CERCURILE RADARULUI
*/

.drone-radar-circle {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    border: 1px solid rgba(210, 235, 245, 0.18);

    border-radius: 50%;

    pointer-events: none;

    z-index: 1;
}

.drone-radar-circle.circle-1 {
    width: 75%;
    height: 75%;
}

.drone-radar-circle.circle-2 {
    width: 50%;
    height: 50%;
}

.drone-radar-circle.circle-3 {
    width: 25%;
    height: 25%;
}


/* 
   6. LINIILE RADARULUI
*/

.drone-radar-line {
    position: absolute;

    background: rgba(210, 235, 245, 0.15);

    pointer-events: none;

    z-index: 1;
}

.drone-radar-line.horizontal {
    top: 50%;
    left: 0;

    width: 100%;
    height: 1px;
}

.drone-radar-line.vertical {
    top: 0;
    left: 50%;

    width: 1px;
    height: 100%;
}


/*
7. RAZA RADARULUI - ANIMAȚIE
*/



.drone-radar::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    border-radius: 50%;

/*
Sector luminos mai vizibil, asemănător unei raze de radar.
*/
    background:
        conic-gradient(
            from 0deg,

            rgba(120, 225, 240, 0) 0deg,
            rgba(120, 225, 240, 0) 275deg,

            rgba(120, 225, 240, 0.04) 290deg,
            rgba(130, 230, 245, 0.10) 305deg,
            rgba(145, 235, 250, 0.18) 320deg,
            rgba(165, 240, 250, 0.30) 335deg,
            rgba(190, 245, 255, 0.48) 348deg,
            rgba(220, 250, 255, 0.80) 358deg,

            rgba(220, 250, 255, 0) 360deg
        );

    transform-origin: center center;

    animation:
        droneRadarSweep 4s linear infinite;

    pointer-events: none;

    z-index: 2;
}


/* 
8. ANIMAȚIA DE ROTAȚIE
 */

@keyframes droneRadarSweep {

    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }

}


/*
9. PUNCTUL LUMINOS DIN CENTRU
*/

.drone-radar::after {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 7px;
    height: 7px;

    transform: translate(-50%, -50%);

    border-radius: 50%;

    background: #e7fbff;

    box-shadow:
        0 0 5px rgba(220, 250, 255, 0.95),
        0 0 10px rgba(160, 235, 245, 0.70);

    pointer-events: none;

    z-index: 3;
}


/*
10. CONȚINUTUL RADARULUI
*/

.drone-radar-content {
    position: relative;

    z-index: 5;

    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 25px;

    box-sizing: border-box;

    color: #ffffff;
}


/* 
11. TITLUL DIN RADAR
 */

.drone-section .drone-radar-title {
    margin-bottom: 15px;

    text-align: center;

    font-size: 14px;
    line-height: 1.3;

    color: #e7f3f7;
}


/* 
12. STATISTICILE DIN RADAR
 */

.drone-radar-stats {
    width: 100%;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;

    align-items: start;
}

.drone-radar-stat {
    min-width: 0;

    text-align: center;

    color: #ffffff;
}


/* 
13. CIFRELE DIN RADAR
*/

.drone-section .drone-radar .drone-radar-number {
    display: block;

    margin: 0 0 4px 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 24px;
    line-height: 1.1;

    font-weight: 700;

    color: #ffffff;

    text-decoration: none;
}


/* 
14. TEXTELE DE SUB CIFRE
 */

.drone-section .drone-radar .drone-radar-label {
    margin: 0;
    padding: 0;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 11px;
    line-height: 1.25;

    font-weight: normal;

    color: #dcecf3;
}


/*
15. BUTON "VEZI MAI MULT"
*/

.drone-section .drone-more-button {
    margin-top: 18px;

    padding: 8px 16px;

    border: 1px solid #dcecf3;

    border-radius: 5px;

    background: rgba(7, 28, 44, 0.70);

    color: #ffffff;

    font-family: Arial, Helvetica, sans-serif;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;
}

.drone-section .drone-more-button:hover,
.drone-section .drone-more-button:focus {
    background: #ffffff;

    color: #071c2c;

    outline: none;
}

.drone-section .drone-more-button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}


/* 
16. NOTA
*/

.drone-section .drone-note {
    margin-top: 18px;

    padding-top: 15px;

    border-top:
        1px solid rgba(255, 255, 255, 0.20);

    font-size: 13px;
    line-height: 1.5;

    color: #d5e4ec;
}

.drone-section .drone-note strong {
    color: #ffffff;
}


/* 
17. SURSA
*/

.drone-section .drone-source {
    margin-top: 8px;

    color: #d5e4ec;
}

.drone-section .drone-source a {
    color: #ffffff;

    text-decoration: underline;
}

.drone-section .drone-source a:hover,
.drone-section .drone-source a:focus {
    color: #d7edf5;
}


/* 
18. MODAL
*/

.drone-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;
}

.drone-modal[hidden] {
    display: none;
}


/* 
19. FUNDAL MODAL
*/

.drone-modal-backdrop {
    position: absolute;

    inset: 0;

    background:
        rgba(0, 0, 0, 0.72);
}


/* 
20. FEREASTRA MODAL
 */

.drone-modal-dialog {
    position: relative;

    z-index: 2;

    width: calc(100% - 40px);

    max-width: 1000px;

    max-height: 90vh;

    margin: 5vh auto;

    overflow-y: auto;

    box-sizing: border-box;

    background: #ffffff;

    color: #222222;

    border-radius: 10px;
}


/* 
21. ANTET MODAL
*/

.drone-modal-header {
    display: flex;

    justify-content: space-between;

    align-items: flex-start;

    gap: 20px;

    padding: 25px;

    border-bottom:
        1px solid #dddddd;
}

.drone-modal-header h3 {
    margin: 0 0 8px 0;

    color: #17364b;

    font-size: 22px;
}

.drone-modal-header p {
    margin: 0;

    color: #666666;
}


/* 
22. BUTON ÎNCHIDERE
*/

.drone-modal-close {
    border: 0;

    padding: 0 5px;

    background: transparent;

    color: #17364b;

    font-size: 32px;
    line-height: 1;

    cursor: pointer;
}


/* 
23. CORP MODAL
*/

.drone-modal-body {
    padding: 25px;
}


/* 
24. BUTOANE TOTAL / ANI
*/

.drone-years {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 10px;

    margin-bottom: 30px;
}

.drone-year-button {
    padding: 9px 16px;

    border:
        1px solid #17364b;

    border-radius: 5px;

    background: #ffffff;

    color: #17364b;

    cursor: pointer;
}

.drone-year-button:hover,
.drone-year-button:focus,
.drone-year-button.active {
    background: #17364b;

    color: #ffffff;
}


/* 
25. GRAFIC
 */

.drone-chart-row {
    margin-bottom: 22px;
}

.drone-chart-label {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 7px;

    color: #222222;
}

.drone-chart-number {
    flex-shrink: 0;

    font-size: 18px;

    font-weight: bold;

    color: #17364b;
}


/* 
26. BARE GRAFIC
*/

.drone-chart-track {
    width: 100%;

    height: 20px;

    overflow: hidden;

    background: #e3e8ec;

    border-radius: 20px;
}

.drone-chart-bar {
    height: 100%;

    background: #17364b;

    border-radius: 20px;

    transition:
        width 0.4s ease;
}


/* 
27. EROARE
*/

.drone-error {
    padding: 15px;

    background: #fff1f1;

    color: #900000;

    border:
        1px solid #e6bbbb;

    border-radius: 5px;
}


/*
28. TABLETĂ
*/

@media screen and (max-width: 900px) {

    .drone-radar {
        width: 290px;
        height: 290px;
    }

}


/* 
29. TELEFON
 */

@media screen and (max-width: 640px) {

    .drone-section {
        margin: 20px 0;

        padding: 15px;
    }

    .drone-section .drone-header h2 {
        font-size: 21px;
    }

    .drone-radar {
        width: 270px;
        height: 270px;
    }

    .drone-radar-content {
        padding: 20px;
    }

    .drone-section .drone-radar-title {
        margin-bottom: 12px;

        font-size: 13px;
    }

    .drone-radar-stats {
        gap: 7px;
    }

    .drone-section .drone-radar .drone-radar-number {
        font-size: 21px;
    }

    .drone-section .drone-radar .drone-radar-label {
        font-size: 9px;
    }

    .drone-section .drone-more-button {
        margin-top: 14px;

        padding: 7px 13px;
    }

    .drone-modal-dialog {
        width: calc(100% - 20px);

        max-height:
            calc(100vh - 20px);

        margin: 10px auto;
    }

    .drone-modal-header {
        padding: 18px;
    }

    .drone-modal-header h3 {
        font-size: 19px;
    }

    .drone-modal-body {
        padding: 18px;
    }

    .drone-chart-label {
        font-size: 13px;
    }

}


/* 
30. REDUCEREA ANIMAȚIILOR
*/

@media (prefers-reduced-motion: reduce) {

    .drone-radar::before {
        animation: none;

        transform: rotate(45deg);
    }

}