/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

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

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

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

/* Utility Classes */
.transition-all {
    transition: all 0.3s ease;
}

/* Form Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
}

/* Button Hover Effects */
button,
a.btn {
    transition: all 0.2s ease;
}

button:active,
a.btn:active {
    transform: scale(0.98);
}

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

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


.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* Toast Notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    animation: slideIn 0.3s ease;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Typography */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.5rem;
    }
}

/* ============================================
   Turnstile Widget Styling
   ============================================ */
.cf-turnstile {
    transform-origin: center center;
    max-width: 100%;
    width: 300px;
}

.cf-turnstile iframe {
    transform-origin: center center;
}

/* Responsive scaling for mobile */
@media (max-width: 400px) {
    .cf-turnstile {
        transform: scale(0.9);
    }
}

@media (max-width: 350px) {
    .cf-turnstile {
        transform: scale(0.8);
    }
}

@media (max-width: 320px) {
    .cf-turnstile {
        transform: scale(0.75);
    }
}