/*!
 * Don Geppi Restaurant - Button System
 * Copyright (c) 2025 Manolo De Angelis - Mdaweb
 * All rights reserved.
 */

/* ============================================
   ARROW BUTTONS SYSTEM
   Sistema modulare di bottoni con frecce direzionali
   ============================================ */

a { color:#333333; text-decoration: none;}

/* Base button styles */
.arrow-button {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #5c5c5c;
    padding: 30px;
    transition: all 0.3s ease;
    font-family: 'Julius Sans One', sans-serif;
    width: fit-content; /* Il bottone è largo solo quanto il contenuto */
    margin: 0 auto; /* Centra il bottone orizzontalmente */
}

.arrow-button:hover {
    transform: translateY(-2px);
}

.arrow-button:hover .button-text {
    font-weight: 700; /* Testo in grassetto al hover */
}

.button-text {
    font-size: 14px;
    letter-spacing: 2px;
    transition: font-weight 0.2s ease; /* Transizione fluida per il grassetto */
    font-family: 'Julius Sans One', sans-serif;
}

/* Arrow base styles */
.arrow-icon {
    position: relative;
    width: 4rem;
    height: 4rem;
    transition: 150ms cubic-bezier(0.25, 0.25, 0.75, 0.75);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Arrow line (common for all directions) */
.arrow-icon:before {
    content: "";
    position: absolute;
    background-color: #5c5c5c;
}

/* Arrow head (common for all directions) */
.arrow-icon:after {
    content: "";
    position: absolute;
    border-style: solid;
}

/* ============================================
   DIRECTIONAL VARIATIONS
   ============================================ */

/* DOWN ARROW */
.arrow-button.arrow-down {
    flex-direction: column;
}

.arrow-button.arrow-down .button-text {
    margin-bottom: 8px;
}

.arrow-button.arrow-down .arrow-icon:before {
    height: 1.7rem;
    width: 1px;
}

.arrow-button.arrow-down .arrow-icon:after {
    border-width: 9px 2.5px 0 2.5px;
    border-color: #5c5c5c transparent transparent transparent;
    bottom: 18px;
}

.arrow-button.arrow-down:hover .arrow-icon {
    transform: translateY(3px);
}

/* UP ARROW */
.arrow-button.arrow-up {
    flex-direction: column;
}

.arrow-button.arrow-up .button-text {
    margin-top: 8px;
    order: 2;
}

.arrow-button.arrow-up .arrow-icon:before {
    height: 1.7rem;
    width: 1px;
}

.arrow-button.arrow-up .arrow-icon:after {
    border-width: 0 2.5px 9px 2.5px;
    border-color: transparent transparent #5c5c5c transparent;
    top: 18px;
}

.arrow-button.arrow-up:hover .arrow-icon {
    transform: translateY(-3px);
}

/* LEFT ARROW */
.arrow-button.arrow-left {
    flex-direction: row;
}

.arrow-button.arrow-left .button-text {
    margin-left: 8px;
    order: 2;
}

.arrow-button.arrow-left .arrow-icon:before {
    width: 1.7rem;
    height: 1px;
}

.arrow-button.arrow-left .arrow-icon:after {
    border-width: 2.5px 9px 2.5px 0;
    border-color: transparent #5c5c5c transparent transparent;
    left: 18px;
}

.arrow-button.arrow-left:hover .arrow-icon {
    transform: translateX(-3px);
}

/* RIGHT ARROW */
.arrow-button.arrow-right {
    flex-direction: row;
}

.arrow-button.arrow-right .button-text {
    margin-right: 8px;
}

.arrow-button.arrow-right .arrow-icon:before {
    width: 1.7rem;
    height: 1px;
}

.arrow-button.arrow-right .arrow-icon:after {
    border-width: 2.5px 0 2.5px 9px;
    border-color: transparent transparent transparent #5c5c5c;
    right: 18px;
}

.arrow-button.arrow-right:hover .arrow-icon {
    transform: translateX(3px);
}

/* ============================================
   STYLE MODIFIERS
   ============================================ */

/* BORDERED VERSION */
.arrow-button.bordered {
    border: 1px solid #5c5c5c;
    border-radius: 10px;
    padding: 20px 30px;
    transition: all 0.3s ease;
}

.arrow-button.bordered:hover {
    transform: none;
}

.arrow-button.bordered.arrow-right:hover .arrow-icon {
    transform: translateX(5px);
}

.arrow-button.bordered.arrow-left:hover .arrow-icon {
    transform: translateX(-5px);
}

.arrow-button.bordered.arrow-up:hover .arrow-icon {
    transform: translateY(-5px);
}

.arrow-button.bordered.arrow-down:hover .arrow-icon {
    transform: translateY(5px);
}

/* COMPACT VERSION (less vertical padding) */
.arrow-button.compact {
    padding: 15px 30px;
}

.arrow-button.compact.bordered {
    padding: 12px 30px;
}

/* ============================================
   COLOR VARIATIONS (optional)
   ============================================ */

/* Dark theme */
.arrow-button.dark {
    color: #333;
}

.arrow-button.dark .arrow-icon:before {
    background-color: #333;
}

.arrow-button.dark .arrow-icon:after {
    border-color: #333 transparent transparent transparent;
}

.arrow-button.dark.arrow-up .arrow-icon:after {
    border-color: transparent transparent #333 transparent;
}

.arrow-button.dark.arrow-left .arrow-icon:after {
    border-color: transparent #333 transparent transparent;
}

.arrow-button.dark.arrow-right .arrow-icon:after {
    border-color: transparent transparent transparent #333;
}

/* Light theme for dark backgrounds */
.arrow-button.light {
    color: #fff;
}

.arrow-button.light .arrow-icon:before {
    background-color: #fff;
}

.arrow-button.light .arrow-icon:after {
    border-color: #fff transparent transparent transparent;
}

.arrow-button.light.arrow-up .arrow-icon:after {
    border-color: transparent transparent #fff transparent;
}

.arrow-button.light.arrow-left .arrow-icon:after {
    border-color: transparent #fff transparent transparent;
}

.arrow-button.light.arrow-right .arrow-icon:after {
    border-color: transparent transparent transparent #fff;
}

.arrow-button.light.bordered {
    border-color: #fff;
}

.arrow-button.light.bordered:hover {
    background-color: rgba(255, 255, 255, 0.1);
}