/* Shared styles for petir.id. Tailwind utilities live in tailwind.css. */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    padding-top: 80px;
}

.font-retro {
    font-family: 'Space Mono', monospace;
}

.pricing-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.lightning-animation {
    animation: lightning 2s infinite;
}

@keyframes lightning {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    52% {
        opacity: 1;
    }

    54% {
        opacity: 0.5;
    }

    56% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
}

.table-row-hover:hover {
    transition: background-color 0.3s ease;
}

.glow-text {
    transition: text-shadow 0.3s ease;
}

/* Dark mode styles */
.dark body {
    background-color: #1a1a1a;
    color: #f7f7f7;
}

.dark .bg-amber-50,
.dark.bg-amber-50 {
    background-color: #1a1a1a !important;
}

.dark .bg-amber-100,
.dark.bg-amber-100 {
    background-color: #2c2c2c !important;
}

.dark .hero-title {
    color: #fb923c !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.dark .glow-text {
    text-shadow: 0 0 10px rgba(251, 146, 60, 0.5),
        0 0 20px rgba(251, 146, 60, 0.3),
        0 0 30px rgba(251, 146, 60, 0.2);
}

.dark .container p.text-orange-700 {
    color: #fdba74 !important;
}

.dark .text-orange-800 {
    color: #fed7aa;
}

.dark .text-orange-700 {
    color: #fdba74;
}

.dark .text-orange-600 {
    color: #fb923c;
}

.dark .bg-white {
    background-color: #2c2c2c;
    color: #f7f7f7;
}

.dark .border-orange-100 {
    border-color: #3d3d3d;
}

.dark .border-orange-50 {
    border-color: #2c2c2c;
}

.dark .table-row-hover:hover {
    background-color: #3d3d3d;
}

.dark .border-orange-600 {
    border-color: #fb923c;
}

.dark .bg-orange-100 {
    background-color: #3d3d3d;
    color: #fdba74;
}

.dark .pricing-card {
    color: #f7f7f7;
    background-color: #2c2c2c;
    border-color: #fb923c;
}

.dark .pricing-card p {
    color: #fdba74;
}

.dark .pricing-card:hover {
    box-shadow: 0 10px 15px rgba(251, 146, 60, 0.2);
}

.dark table {
    color: #f7f7f7;
}

.dark .sticky-header {
    background-color: #2c2c2c;
}

.dark .bg-orange-200 {
    background-color: #3d3d3d;
    color: #fdba74;
}

.dark .bg-orange-600,
.dark .bg-orange-700 {
    background-color: #fb923c;
    color: #1a1a1a;
}

.dark footer a:hover {
    color: #fb923c;
}

/* The light orange gradient band would leave light text unreadable in dark mode */
.dark .cta-band {
    background-color: #2c2c2c;
    background-image: linear-gradient(to right, rgba(251, 146, 60, 0.15), rgba(245, 158, 11, 0.08));
}

.dark th {
    color: #fed7aa;
}

.dark td {
    color: #fdba74;
}

.dark .table-row-hover:hover td {
    color: #f7f7f7;
}

/* Theme Switch */
.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    margin: 0 10px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #fb923c;
}

input:checked+.slider:before {
    transform: translateX(30px);
}

input:focus-visible+.slider {
    outline: 2px solid #ea580c;
    outline-offset: 2px;
}

.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch-label {
    margin-left: 10px;
    font-size: 14px;
}

/* Navigation */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
    cursor: pointer;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ea580c;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.menu-icon.hidden,
.close-icon.hidden {
    display: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

.dark .whatsapp-float {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
