@tailwind base;
@tailwind components;
@tailwind utilities;

@layer utilities {
  .animate-fade-in {
    animation: fadeIn 0.5s ease-in-out;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

/* Alvo geral para todos os scrolls */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, .06) transparent;
}

:root {
    /* Original Colors */
    --primary: rgba(16, 45, 105, 1);
    --secondary: rgba(255, 204, 0, 1);

    /* Primary Color Tints (Lighter) */
    --primary-tint-1: rgba(59, 81, 134, 1);
    --primary-tint-2: rgba(102, 117, 163, 1);

    /* Primary Color Shades (Darker) */
    --primary-shade-1: rgba(12, 34, 79, 1);
    --primary-shade-2: rgba(8, 23, 53, 1);

    /* Secondary Color Tints (Lighter) */
    --secondary-tint-1: rgba(255, 214, 51, 1);
    --secondary-tint-2: rgba(255, 223, 102, 1);

    /* Secondary Color Shades (Darker) */
    --secondary-shade-1: rgba(204, 163, 0, 1);
    --secondary-shade-2: rgba(153, 122, 0, 1);
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

*::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

*::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .06);
    border-radius: 4px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}


*::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, .06);
}

@font-face {
    font-family: 'AEB';
    src: url('../fonts/HandelGot.ttf') format('truetype');
    font-display: swap;
}

.custom-text {
    font-family: 'AEB', sans-serif;
}

.scrolling-container {
    position: relative;
    display: flex;
    text-align: center;
    align-items: center;
    overflow-x: hidden;
}

.scrolling-container p {
    display: inline-block;
    margin-top: 0.5rem;
    white-space: nowrap;
}

.scrolling-container:hover .scrolling-text {
    animation: scroll 10s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }

}

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    opacity: 0.85;
}

.sticky-nav:hover {
    opacity: 1;
}

.banner-start {
    background-color: #003c87;
}

.page-wrapper {
    display: block;
}

.fullscreen .page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.fullscreen main {
    flex-grow: 1;
}

.partial-fullscreen .page-wrapper {
    min-height: 100vh;
}

@media (width >= 64rem) {
    .partial-fullscreen .page-wrapper {
        display: flex;
        flex-direction: column;
        height: 100vh;
    }

    .partial-fullscreen main {
        flex-grow: 1;
    }
}

.banner-container {
    position: relative; 
    color: #fff; 
    width: 100%;
    overflow: hidden;
    aspect-ratio: 3 / 1;
}
  
.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    z-index: -1; /* Ficará atrás do overlay e do conteúdo */
}

.logo-image {
    top: -40px;
    position: absolute;
    width: 80px;
    height: 80px;
    background: #fff 50% no-repeat;
    background-size: cover;
    object-fit: contain;
    display: inline-block;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    border-radius: 100%;
    border: solid #ebebeb 1px;
}

.logo-image-big {
    position: absolute;
    top: -40px;
    left: 35px;
    width: 80px;
    height: 80px;
    background: #fff 50% no-repeat;
    background-size: cover;
    object-fit: contain;
    display: inline-block;
    -webkit-transition: all .15s ease-in-out;
    transition: all .15s ease-in-out;
    border-radius: 100%;
    border: solid #ebebeb 1px;
}

.content-block {
    background: #fff;
    padding: 20px;
    border: 1px solid #ebebeb;
    border-radius: 5px;
}

.scale-150 {
    transform: scale(1.5);
    cursor: zoom-out;
}

.custom-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 8px;
    background-color: #fff;
    max-width: none !important;
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: auto !important;
    min-width: 100px;
}

.active-page a {
    position: relative;
    color: var(--secondary);
}

@media (width >= 64rem) {
    .active-page a::after {
        content: '';
        position: absolute;
        width: 6px;
        height: 6px;
        background-color: var(--secondary);
        border-radius: 50%;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (width >= 40rem) {
    .logo-image-big {
        position: initial;
        width: 100px;
        height: 100px;
        background: #fff 50% no-repeat;
        background-size: cover;
        object-fit: contain;
        display: inline-block;
        -webkit-transition: all .15s ease-in-out;
        transition: all .15s ease-in-out;
        border-radius: 100%;
        border: solid #ebebeb 1px;
    }
}

#cropped-image-preview img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

body.modal-open {
  overflow: hidden;
}

#logo-image-preview {
    border-radius: 50%;
    overflow: hidden;
}

#space-program-seal {
    transition: -webkit-transform 1s ease-in;
    -webkit-transform-style: preserve-3d;
}

#space-program-seal.flip {
    -webkit-animation: coin-flip 3s ease-out forwards;
    -moz-animation: coin-flip 3s ease-out forwards;
    -o-animation: coin-flip 3s ease-out forwards;
    animation: coin-flip 3s ease-out forwards;
}

@keyframes coin-flip {
    from {
        transform: rotateY(0);
    }
    to {
        transform: rotateY(1800deg);
    }
}

.leaflet-container .leaflet-marker-pane .custom-div-icon img {
  max-width: 100% !important;
  max-height: 100% !important;
}

.custom-leaflet-popup .leaflet-popup-tip-container {
  display: none;
}

.custom-leaflet-popup .leaflet-popup-content p {
    margin: 0;
    margin-bottom: 0.75rem;
}

/* ============================================================== */
/* INPUT */
.input {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem; /* rounded-xl */
  border: 1px solid rgba(0, 0, 0, 0.1); /* border-black/10 */
  background-color: rgba(255, 255, 255, 0.5); /* bg-white/50 */
  backdrop-filter: blur(8px); /* backdrop-blur */
  font-size: 0.875rem; /* text-sm */
  color: rgb(17, 24, 39); /* text-gray-900 */
}
.input::placeholder {
  color: rgb(156, 163, 175); /* placeholder-gray-400 */
}
.input:focus {
  outline: none;
  border-color: rgba(0, 0, 0, 0.2); /* focus:border-black/20 */
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1); /* focus:ring-2 focus:ring-black/10 */
}
.input {
  transition: all 0.2s ease; /* transition-all */
}

.textarea {
  min-height: 120px;
  resize: vertical;

  line-height: 1.5;
}

/* READONLY / DISPLAY MODE */
.input-readonly {
  width: 100%;
  padding: 0.625rem 1rem;
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  font-size: 0.875rem;
  
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: rgba(243, 244, 246, 0.7); /* gray-100/70 */
  color: rgb(75, 85, 99); /* gray-600 */
  cursor: not-allowed;
}
/* remove interações visuais */
.input-readonly:focus {
  outline: none;
  
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: none;
}
/* ============================================================== */
