/* Paper-craft travel aesthetic for public-facing pages */

/* Paper grain texture overlay */
.paper-grain {
    position: relative;
}
.paper-grain::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Torn paper edge effect */
.torn-edge {
    clip-path: polygon(
        0% 0%, 100% 0%, 100% 95%,
        98% 98%, 95% 94%, 92% 99%, 88% 94%, 84% 98%,
        80% 95%, 75% 99%, 71% 94%, 67% 98%, 63% 95%,
        58% 99%, 54% 94%, 50% 98%, 46% 95%, 41% 99%,
        37% 94%, 33% 98%, 29% 95%, 24% 99%, 20% 94%,
        16% 98%, 12% 95%, 7% 99%, 3% 94%, 0% 98%
    );
}

/* Torn top edge */
.torn-edge-top {
    clip-path: polygon(
        0% 5%, 3% 2%, 7% 6%, 12% 1%, 16% 5%, 20% 2%,
        24% 6%, 29% 1%, 33% 5%, 37% 2%, 41% 6%, 46% 1%,
        50% 5%, 54% 2%, 58% 6%, 63% 1%, 67% 5%, 71% 2%,
        75% 6%, 80% 1%, 84% 5%, 88% 2%, 92% 6%, 95% 1%,
        98% 5%, 100% 2%, 100% 100%, 0% 100%
    );
}

/* Perforation border */
.perforation-border-bottom {
    background-image: radial-gradient(circle, transparent 20%, #fdfbf7 20%);
    background-position: bottom;
    background-size: 12px 12px;
    background-repeat: repeat-x;
}

/* Luggage tag shape */
.luggage-tag {
    clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 100%, 0% 100%, 0% 20%);
}

/* Handwritten style */
.handwritten {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-style: italic;
}

/* Stamp effect */
.stamp {
    border: 3px solid currentColor;
    border-radius: 0.25rem;
    padding: 0.25rem 0.75rem;
    transform: rotate(-3deg);
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.1em;
    opacity: 0.85;
}

/* Pressable button shadow animation */
.btn-press {
    transition: transform 0.1s, box-shadow 0.1s;
}
.btn-press:hover {
    transform: translateY(2px);
}
.btn-press:active {
    transform: translateY(4px);
    box-shadow: none !important;
}

/* Playful nav link hover */
.nav-link-playful {
    transition: transform 0.2s, color 0.2s;
}
.nav-link-playful:hover {
    transform: rotate(1deg) scale(1.05);
}
.nav-link-playful:active {
    transform: translateY(1px);
}

/* Card hover with subtle rotation */
.card-craft {
    transition: transform 0.3s ease;
}
.card-craft:hover {
    transform: rotate(-1deg) translateY(-2px);
}

/* Sticker rotation variants */
.rotate-slight-left { transform: rotate(-2deg); }
.rotate-slight-right { transform: rotate(2deg); }
.rotate-tilt-left { transform: rotate(-3deg); }
.rotate-tilt-right { transform: rotate(3deg); }

/* Postcard photo frame */
.photo-frame {
    padding: 0.75rem;
    background: white;
    border: 2px solid #dcd6cc;
    border-radius: 0.75rem;
    box-shadow: 0 12px 0 0 #e2e8f0;
}

/* Dashed section divider */
.divider-dashed {
    border: none;
    border-top: 2px dashed #dcd6cc;
}

/* Feature icon circle */
.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Testimonial card styles */
.testimonial-card {
    padding: 2.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Price toggle active state */
.price-toggle-active {
    background-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 0 0 #1e40af;
}

/* Currency selector */
.currency-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 2px solid transparent;
    background: transparent;
    color: #6b7280;
    transition: all 0.2s ease;
}
.currency-btn:hover {
    background: rgba(59,130,246,0.06);
    color: #374151;
}
.currency-btn-active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 1px 4px rgba(59,130,246,0.3);
}
.currency-btn-active:hover {
    background: #2563eb;
    color: white;
}
.currency-btn-flag {
    font-size: 1rem;
    line-height: 1;
}

/* Footer rounded top */
.footer-rounded {
    border-radius: 2.5rem 2.5rem 0 0;
}

@media (prefers-reduced-motion: reduce) {
    .card-craft,
    .nav-link-playful,
    .btn-press {
        transition: none;
    }
    .card-craft:hover {
        transform: none;
    }
}
