/**
 * Luxury Micro-interactions CSS
 * Enhanced form and button animations for PMU Artist Ivona Belianská
 * Adds subtle gold accent animations and elegant interactions
 */

/* Import kaligrafické písmo - quill and ink style */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&family=Mrs+Saint+Delafield&family=Pinyon+Script&family=Tangerine:wght@400;700&display=swap');

/* Písmo štýl quill and ink - alternatívy v prípade potreby */
.quill-script {
    font-family: 'Pinyon Script', 'Mrs Saint Delafield', 'Tangerine', cursive;
    font-weight: 400;
    line-height: 1.2;
}

.calligraphy-title {
    font-family: 'Mrs Saint Delafield', 'Pinyon Script', 'Tangerine', cursive;
    font-weight: 400;
    font-size: 4rem;
    line-height: 1.0;
    letter-spacing: 0.02em;
    color: var(--primary-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.elegant-script {
    font-family: 'Tangerine', 'Pinyon Script', cursive;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 1.0;
}

/* Form Elements Glow Effects */
.form-floating {
    position: relative;
    margin-bottom: 0;
}

.form-control:focus,
.form-select:focus {
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.input-glow {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        rgba(212, 175, 55, 0) 0%, 
        rgba(212, 175, 55, 1) 50%, 
        rgba(212, 175, 55, 0) 100%);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    z-index: 2;
}

.form-group {
    position: relative;
    margin-bottom: 1rem;
}

.form-group:hover {
    transform: translateY(-1px);
}

/* Luxury Checkbox */
.luxury-checkbox .form-check-input {
    width: 1.2em;
    height: 1.2em;
    border: 1px solid #ccc;
    cursor: pointer;
}

.luxury-checkbox .form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.luxury-checkbox .form-check-input:checked:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.luxury-checkbox .form-check-label {
    cursor: pointer;
    padding-left: 0.5rem;
}

/* Button animations & effects */
.btn-primary, 
.btn-outline-light,
.btn-success {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-primary:hover, 
.btn-outline-light:hover,
.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:active, 
.btn-outline-light:active,
.btn-success:active {
    transform: translateY(1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    opacity: 0.5;
    z-index: 1;
    animation: shimmer 2s infinite;
    pointer-events: none;
}

/* Background logo */
.background-logo-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0.02;
    pointer-events: none;
    z-index: -1;
    background-image: url('../images/logo-alternative-white.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 70% auto;
}

/* Animation keyframes */
@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form Validation Effects */
.shake-invalid {
    animation: shakeInvalid 0.5s;
    border-color: #dc3545 !important;
}

@keyframes shakeInvalid {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Form Success Message */
.form-success-msg {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    z-index: 9999;
    animation: slideIn 0.3s forwards;
}

.form-success-msg i {
    margin-right: 10px;
    font-size: 1.2em;
}

.form-success-msg.fade-out {
    animation: fadeOut 0.3s forwards;
}

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

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Loading button state */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-top-color: white;
    border-radius: 50%;
    animation: button-loading-spinner 0.6s linear infinite;
}

@keyframes button-loading-spinner {
    from {
        transform: rotate(0turn);
    }
    to {
        transform: rotate(1turn);
    }
}

/* Form Floating Labels Enhanced */
.form-floating > .form-control,
.form-floating > .form-select {
    padding: 1rem 0.75rem;
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label,
.form-floating > .form-select:focus ~ label,
.form-floating > .form-select:not(:placeholder-shown) ~ label {
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
    color: var(--primary-color);
}

.form-floating > label {
    padding: 1rem 0.75rem;
}