/* ============================================
   IP Geolocation Detector - Tailwind-like Styles
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body & Background */
body {
    min-height: 100vh;
    background: linear-gradient(to bottom right, #1e3a8a, #7c3aed, #4c1d95);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.min-h-screen {
    min-height: 100vh;
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-900 {
    --tw-gradient-from: #1e3a8a;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30, 58, 138, 0));
}

.via-purple-900 {
    --tw-gradient-stops: var(--tw-gradient-from), #7c3aed, var(--tw-gradient-to, rgba(124, 58, 237, 0));
}

.to-indigo-900 {
    --tw-gradient-to: #4c1d95;
}

/* Apply gradient to body */
body.bg-gradient-to-br.from-blue-900.via-purple-900.to-indigo-900 {
    background: linear-gradient(to bottom right, #1e3a8a, #7c3aed, #4c1d95);
}

/* Apply gradient to address box */
.bg-gradient-to-br.from-blue-500\/20.to-purple-500\/20 {
    background: linear-gradient(to bottom right, rgba(59, 130, 246, 0.2), rgba(168, 85, 247, 0.2));
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-8 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 0.75rem;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 1rem;
}

header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

header p {
    color: #bfdbfe;
    font-size: 0.95rem;
}

/* Max Width Container */
.max-w-4xl {
    max-width: 56rem;
    margin: 0 auto;
}

/* Glass Card */
.bg-white\/10 {
    background-color: rgba(255, 255, 255, 0.1);
}

.backdrop-blur-lg {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.rounded-2xl {
    border-radius: 0.875rem;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.border-white\/20 {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.p-6 {
    padding: 1rem;
}

.p-8 {
    padding: 1.25rem;
}

/* Text Utilities */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-lg {
    font-size: 1rem;
}

.text-xl {
    font-size: 1.125rem;
}

.text-2xl {
    font-size: 1.25rem;
}

.text-3xl {
    font-size: 1.5rem;
}

.text-4xl {
    font-size: 1.75rem;
}

.text-5xl {
    font-size: 2.25rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.font-mono {
    font-family: 'Courier New', monospace;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wide {
    letter-spacing: 0.025em;
}

.leading-relaxed {
    line-height: 1.625;
}

.italic {
    font-style: italic;
}

/* Colors */
.text-blue-200 {
    color: #bfdbfe;
}

.text-blue-300 {
    color: #93c5fd;
}

.text-blue-100 {
    color: #dbeafe;
}

.text-blue-400 {
    color: #60a5fa;
}

.text-green-300 {
    color: #86efac;
}

.text-green-400 {
    color: #4ade80;
}

.text-green-100 {
    color: #dcfce7;
}

.text-yellow-300 {
    color: #fde047;
}

.text-yellow-400 {
    color: #facc15;
}

.text-purple-300 {
    color: #c4b5fd;
}

.text-purple-400 {
    color: #a78bfa;
}

.text-pink-300 {
    color: #f9a8d4;
}

.text-pink-400 {
    color: #f472b6;
}

.text-indigo-300 {
    color: #a5b4fc;
}

.text-indigo-400 {
    color: #818cf8;
}

.text-cyan-300 {
    color: #67e8f9;
}

.text-cyan-400 {
    color: #22d3ee;
}

.text-orange-300 {
    color: #fdba74;
}

.text-orange-400 {
    color: #fb923c;
}

.text-teal-300 {
    color: #5eead4;
}

.text-teal-400 {
    color: #2dd4bf;
}

.text-red-200 {
    color: #fecaca;
}

.text-red-300 {
    color: #fca5a5;
}

.text-red-400 {
    color: #f87171;
}

.text-emerald-300 {
    color: #6ee7b7;
}

.text-emerald-400 {
    color: #34d399;
}

.text-violet-300 {
    color: #c4b5fd;
}

.text-violet-400 {
    color: #a78bfa;
}

.text-rose-300 {
    color: #fda4af;
}

.text-rose-400 {
    color: #fb7185;
}

.text-sky-300 {
    color: #7dd3fc;
}

.text-sky-400 {
    color: #38bdf8;
}

.text-green-300\/80 {
    color: rgba(134, 239, 172, 0.8);
}

.text-blue-300\/80 {
    color: rgba(147, 197, 253, 0.8);
}

/* Background Colors */
.bg-blue-500\/20 {
    background-color: rgba(59, 130, 246, 0.2);
}

.bg-blue-500\/30 {
    background-color: rgba(59, 130, 246, 0.3);
}

.bg-green-500\/30 {
    background-color: rgba(34, 197, 94, 0.3);
}

.bg-green-500\/50 {
    background-color: rgba(34, 197, 94, 0.5);
}

.bg-red-500\/20 {
    background-color: rgba(239, 68, 68, 0.2);
}

.bg-white\/5 {
    background-color: rgba(255, 255, 255, 0.05);
}

.bg-gradient-to-br {
    background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-blue-500\/20 {
    --tw-gradient-from: rgba(59, 130, 246, 0.2);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-purple-500\/20 {
    --tw-gradient-to: rgba(168, 85, 247, 0.2);
}

.from-blue-500 {
    --tw-gradient-from: #3b82f6;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(59, 130, 246, 0));
}

.to-purple-600 {
    --tw-gradient-to: #9333ea;
}

.from-green-500 {
    --tw-gradient-from: #22c55e;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(34, 197, 94, 0));
}

.to-emerald-600 {
    --tw-gradient-to: #059669;
}

.bg-red-500 {
    background-color: #ef4444;
}

.bg-green-600 {
    background-color: #16a34a;
}

/* Borders */
.border {
    border-width: 1px;
}

.border-2 {
    border-width: 2px;
}

.border-blue-400\/50 {
    border-color: rgba(96, 165, 250, 0.5);
}

.border-blue-400\/80 {
    border-color: rgba(96, 165, 250, 0.8);
}

.border-red-500\/50 {
    border-color: rgba(239, 68, 68, 0.5);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.1);
}

.rounded-lg {
    border-radius: 0.5rem;
}

.rounded-xl {
    border-radius: 0.625rem;
}

.rounded-2xl {
    border-radius: 0.875rem;
}

.rounded-full {
    border-radius: 9999px;
}

/* Spacing */
.mb-2 {
    margin-bottom: 0.375rem;
}

.mb-3 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 0.75rem;
}

.mb-6 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 1.25rem;
}

.mt-4 {
    margin-top: 0.75rem;
}

.mt-6 {
    margin-top: 1rem;
}

.mt-8 {
    margin-top: 1.25rem;
}

.mr-1 {
    margin-right: 0.25rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-auto {
    margin-left: auto;
}

.p-4 {
    padding: 0.625rem;
}

.p-5 {
    padding: 0.75rem;
}

.p-6 {
    padding: 0.875rem;
}

.px-3 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.px-6 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.px-8 {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.py-1 {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
}

.py-2 {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.py-3 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.py-12 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Flexbox */
.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
    width: 100%;
}

.justify-between {
    justify-content: space-between;
}

.flex-wrap {
    flex-wrap: wrap;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-3 {
    gap: 0.75rem;
}

.gap-4 {
    gap: 1rem;
}

/* Grid */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-4 {
    gap: 1rem;
}

/* Display */
.hidden {
    display: none;
}

.inline-block {
    display: inline-block;
}

/* Sizing */
.w-4 {
    width: 1rem;
}

.w-5 {
    width: 1.25rem;
}

.w-6 {
    width: 1.5rem;
}

.w-16 {
    width: 4rem;
}

.h-4 {
    height: 1rem;
}

.h-5 {
    height: 1.25rem;
}

.h-6 {
    height: 1.5rem;
}

.h-16 {
    height: 4rem;
}

/* Text Sizes */
.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

/* Border Widths */
.border-t {
    border-top-width: 1px;
}

.border-t-4 {
    border-top-width: 4px;
}

.border-b-4 {
    border-bottom-width: 4px;
}

.pt-4 {
    padding-top: 1rem;
}

/* Transitions */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.transition-colors {
    transition-property: color, background-color, border-color;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Hover States */
.hover\:bg-white\/10:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.hover\:bg-blue-500\/50:hover {
    background-color: rgba(59, 130, 246, 0.5);
}

.hover\:bg-green-500\/50:hover {
    background-color: rgba(34, 197, 94, 0.5);
}

.hover\:bg-red-600:hover {
    background-color: #dc2626;
}

.hover\:from-blue-600:hover {
    --tw-gradient-from: #2563eb;
}

.hover\:to-purple-700:hover {
    --tw-gradient-to: #7e22ce;
}

.hover\:from-green-600:hover {
    --tw-gradient-from: #16a34a;
}

.hover\:to-emerald-700:hover {
    --tw-gradient-to: #047857;
}

.hover\:border-blue-400\/80:hover {
    border-color: rgba(96, 165, 250, 0.8);
}

.hover\:scale-105:hover {
    transform: scale(1.05);
}

/* Transform */
.transform {
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

/* Break All */
.break-all {
    word-break: break-all;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Gradient Buttons */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

button.bg-gradient-to-r.from-blue-500.to-purple-600 {
    background: linear-gradient(to right, #3b82f6, #9333ea);
}

button.bg-gradient-to-r.from-green-500.to-emerald-600 {
    background: linear-gradient(to right, #22c55e, #059669);
}

button.hover\:from-blue-600:hover {
    background: linear-gradient(to right, #2563eb, #7e22ce);
}

button.hover\:to-purple-700:hover {
    background: linear-gradient(to right, #2563eb, #7e22ce);
}

button.hover\:from-green-600:hover {
    background: linear-gradient(to right, #16a34a, #047857);
}

button.hover\:to-emerald-700:hover {
    background: linear-gradient(to right, #16a34a, #047857);
}

/* Shadow */
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Cursor */
button {
    cursor: pointer;
}

a.cursor-pointer {
    cursor: pointer;
}

a.cursor-not-allowed {
    cursor: not-allowed;
}

.opacity-50 {
    opacity: 0.5;
}

/* SVG Sizing */
svg {
    display: inline-block;
}

svg.w-16 {
    width: 4rem;
    height: 4rem;
}

svg.h-16 {
    height: 4rem;
}

svg.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (min-width: 768px) {
    .md\:text-5xl {
        font-size: 3rem;
    }
    
    .md\:text-3xl {
        font-size: 1.875rem;
    }
    
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .md\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .md\:p-8 {
        padding: 2rem;
    }
}
