@font-face { font-family: 'TWK Everett'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/web/TWKEverett-Regular.woff2?v=1') format('woff2'), url('../assets/fonts/web/TWKEverett-Regular.woff?v=1') format('woff'), url('../assets/fonts/TWKEverett-Regular.otf?v=1') format('opentype'); }
@font-face { font-family: 'TWK Everett'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/web/TWKEverett-Bold.woff2?v=1') format('woff2'), url('../assets/fonts/web/TWKEverett-Bold.woff?v=1') format('woff'), url('../assets/fonts/TWKEverett-Bold.otf?v=1') format('opentype'); }

:root {
    /* Brand colors based on sigortam.net logo */
    --primary-blue: #0099cc;
    --secondary-orange: #ff6600;
    --light-blue: #e6f7ff;
    --dark-blue: #006699;
    --light-orange: #ffcc99;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-700: #374151;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

html, body { font-family: 'TWK Everett', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important; }

body {
    color: var(--gray-700);
    background-color: #FFF6E5;
    margin: 0;
    padding: 0;
    position: relative; /* allow pseudo-element layering */
}

/* Decorative top-left crow image */
/* Crow image (natural size, no transparency) */
#crow-bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Serçe image (natural size, no transparency) */
#serce-bg {
    position: fixed;
    top: 50%;
    left: 0 !important;
    transform: none;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Martı image (natural size, no transparency) */
#marti-bg {
    position: fixed;
    top: 10%;
    right: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Güvercin image (natural size, no transparency) */
#guvercin-bg {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Saksagan image (natural size, no transparency) */
#saksagan-bg {
    position: fixed;
    bottom: 5%;
    right: 0;
    z-index: 0;
    pointer-events: none;
    display: block;
}

/* Ensure main content sits above decorative image */
.header-container, .container, .footer { position: relative; z-index: 1; }

/* Header styles */
.header-container {
    background-color: var(--white);
    padding: 0.25rem 1rem 1rem;
    border-bottom: 3px solid var(--primary-blue);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-logo {  
    height: 60px;
    margin-right: 1rem;
}

.header-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

#map {
    height: 320px;
    border-radius: 0;
    margin: 0 -2.5rem 0 -2.5rem;
    width: calc(100% + 5rem);
}

.risk-level {
    font-weight: 300;
    font-size: 16px;
    color: white;
    height: 30px;
    padding: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    width: 100%;
}

.risk-level-low {
    color: #ffffff;
    background-color: #22bb66;
}

.risk-level-medium {
    color: #ffffff;
    background-color: var(--secondary-orange);
}

.risk-level-high {
    color: #ffffff;
    background-color: #dd3333;
}

.risk-level-no {
    color: #ffffff;
    background-color: #6b7280;
}

#result-container {
    border: none !important;
    border-radius: 0.75rem;
    padding: 1.75rem;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background-color: var(--white);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.result-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
}

/* Button styles */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--secondary-orange);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e55c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#start-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 300px;
    height: 61px;
    padding: 0 1.25rem;
    font-size: 20px;
    font-weight: 900; /* black */
    font-family: 'TWK Everett', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    letter-spacing: .5px;
    color: #fff;
    background-color: #F26E21;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

#start-btn:hover {
    background-color: #d95f15;
}

#share-btn {
    width: 324px;
    background-color: #FFFCF6;
    border: 1px solid #2828DD;
    color: #2828DD;
}

#share-btn:hover {
    background-color: #2828DD;
    border: 1px solid #2828DD;
    color: #FFFCF6;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Card styles */
.card {
    border-radius: 0.75rem;
    background-color: var(--white);
    padding: 1.5rem 1.5rem 0 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
}

.card-header {
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin: 0;
}

/* Information displays */
.info-display {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.weather-display {
    background-color: var(--light-orange);
    border-left: 4px solid var(--secondary-orange);
}

.bird-display {
    background-color: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
}

/* Bird list styling */
.bird-list {
    list-style: none;
    padding: 0;
}

.bird-list li {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.5rem;
    background-color: var(--light-blue);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bird-list-name {
    font-weight: 500;
}

.bird-list-score {
    font-weight: 700;
}

/* Loading indicator */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    background-color: #FFF6E5;
}

.loading-gif {
    width: 250px;
    height: auto;
}

/* Footer styles */
.footer {
    text-align: center;
    margin-top: 3rem;
    display: none; /* Hidden by default, shown when welcome screen is dismissed */
}

.footer-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.footer-logo {
    display: block;
}

.footer-text {
    font-size: 12px;
    color: #F26E21;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

/* Share buttons */
.share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Additional enhancements */
.capturing {
    box-shadow: none !important;
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Improved district selection form */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-blue);
}

.form-select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    background-color: var(--white);
    font-size: 1rem;
    color: var(--gray-700);
}

/* Select dropdown improvements */
.form-select:disabled {
    background-color: var(--gray-100);
    cursor: not-allowed;
}

.form-select option[disabled] {
    color: var(--gray-700);
    font-style: italic;
}

.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 153, 204, 0.1);
}

/* Error message styles */
.error-message {
    background-color: #fee2e2;
    border-left: none !important;
    color: #b91c1c;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 0.5rem;
}

/* Typography improvements */
h1, h2, h3, h4 {
    line-height: 1.2;
}

p {
    line-height: 1.5;
}

/* Welcome logo styles */
#welcome-logo img {
    margin: 200px auto 0px auto !important;
}

/* Welcome phase styles */
#welcome-phase {
    text-align: center;
    margin: 0 auto 2rem auto;
    padding: 1.5rem;
    background-color: #f9f9f9;
}

/* Welcome phase text style */
.welcome-text {
    font-family: 'TWK Everett', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #374151; /* --gray-700 */
    font-weight: normal;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Responsive design */
@media (max-width: 768px) {
    #map {
        height: 225px;
    }

    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .header-logo {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .btn {
        display: block;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* Safari mobile rotation fix only */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 1) {
    #serce-bg {
        top: 50% !important;
        left: 0 !important;
        -webkit-transform: rotate(-90deg) !important;
        transform: rotate(-90deg) !important;
    }
    
    #crow-bg {
        /* Ensure crow is fully visible on mobile */
        top: 0 !important;
        left: 0 !important;
        position: fixed !important;
        z-index: 0 !important;
        display: block;
    }
}

/* Additional mobile Safari fix */
@media screen and (max-width: 768px) {
    #serce-bg {
        /* Default for all browsers */
        -webkit-transform: translate(0, -50%) rotate(0deg) !important;
        transform: translate(0, -50%) rotate(0deg) !important;
        left: 0 !important;
    }
}

/* Safari-only fix using webkit scrollbar detection */
@media screen and (max-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
    _::-webkit-full-page-media, _:future, :root #serce-bg {
        -webkit-transform: translate(0, -50%) rotate(-90deg) !important;
        transform: translate(0, -50%) rotate(-90deg) !important;
        left: -50px !important;
    }
}

/* Leaflet customizations */
.leaflet-control-container .leaflet-top {
    top: 10px;
}

.leaflet-control-container .leaflet-top .leaflet-control {
    margin-top: 10px;
    box-shadow: var(--box-shadow);
    border-radius: 8px;
}

.custom-popup {
    background-color: var(--white);
    border-left: none !important;
    padding: 10px;
    border-radius: 4px;
    box-shadow: var(--box-shadow);
}

/* Custom marker */
.custom-marker {
    background: transparent;
    border: none;
}

/* Transparentize card-like containers (added override) */
.card, #result-container, .info-display, #welcome-phase, .result-header, .bird-list li { background: transparent !important; }
.weather-display, .bird-display { background: transparent !important; }

/* Risk display components */
.risk-display-container {
    padding: 10px 20px 10px 20px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-height: 120px;
}

.risk-display-content {
    margin-top: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bird-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 13px;
    margin-bottom: 5px;
}

.bird-description {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.9;
}

.percentage-display {
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.percentage-sign {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 40px;
}

.percentage-number {
    font-family: 'Montserrat', sans-serif;
    font-weight: 100;
    font-size: 80px;
}

.bird-image-container {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
}

.bird-result-image {
    object-fit: contain;
}

.promotional-text {
    padding: 0px 15px 0px 15px;
    text-align: center;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #3A39FF;
    line-height: 1;
}

.promotional-text .line1 {
    margin-bottom: 6px;
}

.promotional-text .line2 {
    margin-bottom: 3px;
}

.promotional-text .highlight {
    color: #F26E21;
    font-weight: bold;
}
