/**
 * Flight Search Plugin Styles
 */

/* General Styles */
.flight-search-form {
    max-width: 100%;
    margin: 0 auto 30px;
    padding: 20px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 8px;
    color: white;
    direction: rtl;
}

.flight-search-title {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

.flight-search-notes-title {
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
}

.flight-search-notes {
    margin-bottom: 15px;
}

.flight-search-notes li {
    list-style-type: none;
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    font-weight: 400;
}

.flight-search-important {
    font-family: 'Assistant', sans-serif;
    font-size: 16px;
    margin-bottom: 10px;
}

.flight-search-warning {
    font-family: 'Open Sans Hebrew Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: red;
    margin-bottom: 10px;
    display: block;
}

.flight-search-instruction {
    font-family: 'Open Sans Hebrew Condensed', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
}

/* Form Fields */
.flight-search-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.airport-select {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

#flight-date {
    width: 100%;
    height: 40px;
    padding: 5px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.flight-search-button {
    width: 100%;
    padding: 12px;
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.flight-search-button:hover {
    background-color: #f57c00;
}

/* Loading Animation */
.flight-search-loading {
    display: none;
    text-align: center;
    margin: 30px 0;
}

.flight-search-loading .container {
    margin: 0 auto;
    position: relative;
    width: 100px;
    height: 100px;
}

.flight-search-loading .viewport {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.flight-search-loading .plane {
    width: 60px;
    height: 60px;
    position: absolute;
    top: 20px;
    left: 20px;
    animation: fly 5s infinite linear;
}

@keyframes fly {
    0% {
        transform: translateX(-100px) translateY(100px) rotate(45deg);
    }
    25% {
        transform: translateX(25px) translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateX(100px) translateY(-50px) rotate(45deg);
    }
    75% {
        transform: translateX(25px) translateY(0px) rotate(45deg);
    }
    100% {
        transform: translateX(-100px) translateY(100px) rotate(45deg);
    }
}

.flight-search-loading .search {
    margin-top: 15px;
    font-size: 18px;
    color: #1a2a6c;
    font-weight: bold;
}

/* Results */
.flight-search-results {
    width: 100%;
    margin: 30px 0;
}

.alert-wrapper {
    margin: 20px 0;
}

.wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Tickets */
.ticket {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 15px 0;
    padding: 20px;
    overflow: hidden;
    direction: rtl;
}

.airline-info {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.flight-segment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.segment-detail {
    flex: 1;
    margin-left: 15px;
}

.flight-times {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 16px;
}

.purchase {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: #1a2a6c;
}

.select-button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.select-button:hover {
    background-color: #45a049;
}

/* Slick Carousel Overrides */
.slick-slide {
    padding: 10px;
}

.slick-prev, .slick-next {
    z-index: 10;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

/* Flight Details Summary */
.flight-details-summary {
    background: linear-gradient(to right, #FFEAD2, #D6EBFF);
    padding: 20px;
    border-radius: 5px;
    margin: 20px 0;
    direction: rtl;
}

.flight-details-summary h3 {
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.flight-details-info {
    margin: 15px 0;
}

.flight-details-info p {
    margin: 8px 0;
}

.flight-details-error {
    background-color: #ffebee;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.flight-details-error h3 {
    color: #c62828;
    margin-top: 0;
}

.flight-details-error-link {
    color: #2196f3;
    font-weight: bold;
    text-decoration: none;
}

.flight-details-error-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (min-width: 768px) {
    .flight-search-form {
        padding: 30px;
    }
    
    .flight-search-fields {
        flex-direction: row;
    }
    
    .flight-search-button {
        width: auto;
        min-width: 150px;
    }
    
    .ticket {
        padding: 30px;
    }
}

/* Selection Notification */
.flight-selection-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 20px;
    text-align: center;
    z-index: 9999;
    max-width: 90%;
    width: 350px;
}

/* Plane Animation Elements */
#plane {
    width: 60px;
    height: 30px;
    position: absolute;
    top: 30px;
    left: 20px;
    animation: fly 5s infinite linear;
}

#plane #tip {
    position: absolute;
    top: 5px;
    left: 0;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid white;
}

#plane #body {
    position: absolute;
    top: 0;
    left: 8px;
    width: 35px;
    height: 15px;
    background-color: white;
}

#plane #wings {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 15px;
    height: 35px;
}

#plane #rwing,
#plane #lwing {
    position: absolute;
    width: 25px;
    height: 5px;
    background-color: white;
}

#plane #rwing {
    top: 0;
    transform: rotate(-20deg);
}

#plane #lwing {
    bottom: 0;
    transform: rotate(20deg);
}

#plane #rear {
    position: absolute;
    top: 5px;
    right: 0;
    width: 8px;
    height: 5px;
    background-color: white;
}

#plane #backwings {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 25px;
}

#plane #rearlwing,
#plane #rearrwing {
    position: absolute;
    width: 15px;
    height: 3px;
    background-color: white;
}

#plane #rearlwing {
    top: 0;
    transform: rotate(-30deg);
}

#plane #rearrwing {
    bottom: 0;
    transform: rotate(30deg);
}

#plane #engines {
    position: absolute;
    top: 5px;
    left: 15px;
}

#plane #lengine,
#plane #rengine {
    position: absolute;
    width: 8px;
    height: 3px;
    background-color: #ccc;
}

#plane #lengine {
    top: -8px;
}

#plane #rengine {
    bottom: -8px;
}