/* Custom styles for FrameShare */

/* Import Google fonts */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Custom Fonts */
@font-face {
  font-family: 'AvenirCondensedHand';
  src: url("/static/fonts/AvenirCondensedHand.e1c30f214f88.ttf") format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
  font-family: 'AvenirCondensedHand', cursive !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 0.5px currentColor;
  font-size: 1.1em !important;
  line-height: 1 !important;
}

p {
  font-family: 'Lato', sans-serif !important;
  font-weight: 400 !important;
  -webkit-text-stroke: 0px !important;
}

/* Loading spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6366f1;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Smooth transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Form focus states */
.form-input:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Card hover effects */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.tab-active {
    background: linear-gradient(180deg, transparent 60%, #ffd89b 60%) !important;
    background-size: 100% calc(1.2em + 3px) !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    border-bottom: none !important;
}

.instant-session-active {
    background: linear-gradient(180deg, transparent 60%, #ffd89b 60%), rgba(220, 252, 231, 0.8) !important;
    background-size: 100% calc(1.2em + 3px), 100% 100% !important;
    background-repeat: no-repeat !important;
    background-position: center, center !important;
    position: relative !important;
}

@media (min-width: 768px) {
    .instant-session-active::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        transform: translateX(-50%) rotate(2deg);
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 11px solid transparent;
        border-bottom: 9px solid rgba(37, 99, 235, 0.4);
    }
}