/* 
 * Modern Designer Credit CSS
 * For Yemen Union in Turkey - Kayseri Branch Website
 * Creates a stylish, modern designer credit in the footer
 */

/* Modern designer credit styles */
.designer-credit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary), #ff4757);
    padding: 8px 15px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
    transition: all 0.3s ease;
    margin: 15px 0;
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: floatAnimation 3s ease-in-out infinite;
    align-self: flex-start;
}

/* Floating animation */
@keyframes floatAnimation {
    0% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 5px 15px rgba(206, 17, 38, 0.3);
    }
    25% {
        box-shadow: 0 8px 20px rgba(206, 17, 38, 0.4);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
        box-shadow: 0 10px 25px rgba(206, 17, 38, 0.5);
    }
    75% {
        box-shadow: 0 8px 20px rgba(206, 17, 38, 0.4);
    }
    100% {
        transform: translateY(0) rotate(0deg);
        box-shadow: 0 5px 15px rgba(206, 17, 38, 0.3);
    }
}

/* Add a subtle animated gradient background */
.designer-credit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), #ff4757, #ff6b81, var(--primary));
    background-size: 300% 300%;
    opacity: 0.9;
    z-index: -1;
    transition: all 0.5s ease;
    animation: gradientAnimation 5s ease infinite;
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.designer-credit:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(206, 17, 38, 0.5);
    animation-play-state: paused;
}

.designer-credit:hover::before {
    animation: gradientAnimation 3s ease infinite;
    background-size: 200% 200%;
    opacity: 1;
}

.designer-credit span {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

.designer-credit .designer-name {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-top: 0;
    line-height: 1;
}

.designer-credit .designer-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.designer-credit:hover .designer-name::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Add a subtle icon */
.designer-credit .designer-icon {
    font-size: 1rem;
    margin-right: 5px;
    color: white;
    opacity: 0.9;
    transition: transform 0.3s ease;
}

.designer-credit:hover .designer-icon {
    transform: rotate(360deg);
    opacity: 1;
}

/* Footer bottom layout */
.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.designer-credit-container {
    flex: 0 0 auto;
    order: 1;
}

.copyright-container {
    flex: 1;
    text-align: right;
    order: 2;
    display: flex;
    justify-content: flex-end;
}

.copyright-container p {
    margin: 0;
    text-align: right;
}

/* RTL support */
html[dir="rtl"] .copyright-container {
    text-align: left;
    justify-content: flex-start;
}

html[dir="rtl"] .copyright-container p {
    text-align: left;
}

html[dir="rtl"] .designer-credit-container {
    order: 2;
}

html[dir="rtl"] .copyright-container {
    order: 1;
}

/* Responsive adjustments for screens less than 765px */
@media (max-width: 765px) {
    .footer-bottom-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .designer-credit-container {
        width: 100%;
        display: flex;
        justify-content: center;
        order: unset;
    }
    
    .copyright-container {
        width: 100%;
        display: flex;
        justify-content: center;
        order: unset;
    }
    
    .copyright-container p {
        text-align: center;
        width: 100%;
        margin: 10px auto;
    }
    
    .designer-credit {
        padding: 6px 12px;
        margin: 10px auto;
        align-self: center;
    }
    
    .designer-credit span {
        font-size: 0.8rem;
    }
    
    .designer-credit .designer-icon {
        font-size: 0.9rem;
    }
    
    html[dir="rtl"] .copyright-container p {
        text-align: center;
    }
}

/* Small screens */
@media (max-width: 480px) {
    .designer-credit {
        padding: 5px 10px;
        margin: 5px auto;
    }
}

/* Medium screens - ensure left/right layout is maintained */
@media (min-width: 775px) and (max-width: 992px) {
    .footer-bottom-content {
        padding: 0 15px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
    
    .designer-credit-container {
        flex: 0 0 auto;
        order: 1;
        display: flex;
        justify-content: flex-start;
    }
    
    .copyright-container {
        flex: 1;
        text-align: right;
        justify-content: flex-end;
        order: 2;
    }
    
    .copyright-container p {
        text-align: right;
    }
    
    /* RTL support */
    html[dir="rtl"] .designer-credit-container {
        order: 2;
        justify-content: flex-end;
    }
    
    html[dir="rtl"] .copyright-container {
        order: 1;
        text-align: left;
        justify-content: flex-start;
    }
    
    html[dir="rtl"] .copyright-container p {
        text-align: left;
    }
}
