/* შერეკილები - Clean Minimalist Footer */

/* Clean Footer */
.footer-clean {
    background: linear-gradient(135deg, var(--header-footer-bg) 0%, rgba(23, 74, 67, 0.95) 100%);
    color: var(--text-secondary);
    padding: var(--spacing-3xl) 0 var(--spacing-lg);
    margin-top: var(--spacing-3xl);
    border-top: 3px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
}

/* Background with Specific Ornaments */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(223, 120, 17, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(223, 120, 17, 0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

/* Specific Ornaments: Georgian Flag, Math/Physics Formulas, Aircraft */
.footer-ornaments {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.ornament {
    position: absolute;
    font-size: 1.5rem;
    color: rgba(223, 120, 17, 0.15);
    font-family: 'Times New Roman', serif;
    font-weight: 300;
    animation: floatOrnament 15s ease-in-out infinite;
    user-select: none;
}

/* Georgian Flag */
.ornament.flag {
    top: 15%;
    left: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

/* Math and Physics Formulas */
.ornament.formula:nth-of-type(2) { /* E=mc² */
    top: 25%;
    right: 15%;
    animation-delay: -2s;
}

.ornament.formula:nth-of-type(3) { /* ∫f(x)dx */
    top: 60%;
    left: 5%;
    animation-delay: -4s;
}

.ornament.formula:nth-of-type(6) { /* F=ma */
    top: 40%;
    right: 8%;
    animation-delay: -6s;
}

.ornament.formula:nth-of-type(7) { /* π=3.14 */
    top: 70%;
    right: 25%;
    animation-delay: -8s;
}

.ornament.formula:nth-of-type(8) { /* ∇²φ=0 */
    top: 20%;
    left: 30%;
    animation-delay: -10s;
}

.ornament.formula:nth-of-type(9) { /* Δx·Δp≥ℏ/2 */
    top: 80%;
    left: 40%;
    animation-delay: -12s;
}

/* Aircraft */
.ornament.aircraft {
    top: 35%;
    left: 25%;
    font-size: 1.8rem;
    animation-delay: -3s;
    animation-duration: 20s;
}

/* Helicopter */
.ornament.helicopter {
    top: 55%;
    right: 35%;
    font-size: 1.8rem;
    animation-delay: -7s;
    animation-duration: 18s;
}

@keyframes floatOrnament {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg);
        opacity: 0.15;
    }
    25% { 
        transform: translateY(-10px) rotate(2deg);
        opacity: 0.25;
    }
    50% { 
        transform: translateY(-5px) rotate(-1deg);
        opacity: 0.2;
    }
    75% { 
        transform: translateY(-15px) rotate(1deg);
        opacity: 0.18;
    }
}

/* Main Footer Content */
.footer-main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: start;
    position: relative;
    z-index: 2;
    margin-bottom: var(--spacing-xl);
}

/* Footer Left - Logo */
.footer-left {
    display: flex;
    flex-direction: column;
}

.footer-logo h2 {
    font-family: var(--font-georgian);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(223, 120, 17, 0.3);
}

.footer-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    font-style: italic;
}

/* Footer Center - Contact Info */
.footer-center {
    display: flex;
    justify-content: center;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.info-item:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.info-item .icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Footer Right - Developer */
.footer-right {
    display: flex;
    justify-content: flex-end;
}

.footer-developer {
    text-align: right;
}

.footer-developer p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-sm);
}

.dev-link {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    background: rgba(223, 120, 17, 0.1);
    border: 1px solid rgba(223, 120, 17, 0.2);
    transition: all var(--transition-fast);
}

.dev-link:hover {
    color: var(--text-on-primary);
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(223, 120, 17, 0.4);
}

.dev-icon {
    font-size: 1.1rem;
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(180deg); }
}

/* Footer Bottom */
.footer-bottom {
    padding-top: var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0 calc(-1 * var(--spacing-lg));
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    backdrop-filter: blur(10px);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.footer-inspiration {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Mobile Cart Icon - Keep existing styles */
.mobile-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(223, 120, 17, 0.4);
    z-index: 1000;
    transition: all var(--transition-normal);
    text-decoration: none;
    border: 3px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.mobile-cart-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(223, 120, 17, 0.6);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.mobile-cart-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--error);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 50%;
    min-width: 20px;
    text-align: center;
    display: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid white;
}

.mobile-cart-count:not(:empty) {
    display: inline-block;
    animation: cartPulse 0.3s ease-out;
}

@keyframes cartPulse {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-clean {
        padding: var(--spacing-xl) 0 var(--spacing-md);
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
        text-align: center;
    }
    
    .footer-right {
        justify-content: center;
    }
    
    .footer-developer {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-sm);
        text-align: center;
    }
    
    /* Adjust ornaments for mobile */
    .ornament {
        font-size: 1.2rem;
    }
    
    .ornament.flag,
    .ornament.aircraft,
    .ornament.helicopter {
        font-size: 1.5rem;
    }
    
    /* Adjust mobile cart for tablet */
    .mobile-cart-icon {
        bottom: 15px;
        right: 15px;
        width: 55px;
        height: 55px;
    }
    
    .mobile-cart-icon img {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .footer-clean {
        padding: var(--spacing-lg) 0;
    }
    
    .footer-logo h2 {
        font-size: 1.75rem;
    }
    
    .footer-main {
        gap: var(--spacing-md);
    }
    
    .dev-link {
        flex-direction: column;
        gap: var(--spacing-xs);
        text-align: center;
        font-size: 0.85rem;
        padding: var(--spacing-xs);
    }
    
    /* Hide some ornaments on very small screens */
    .ornament:nth-child(n+6) {
        display: none;
    }
    
    /* Adjust mobile cart for phone */
    .mobile-cart-icon {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
    }
    
    .mobile-cart-icon img {
        width: 20px;
        height: 20px;
    }
}

/* Print Styles */
@media print {
    .footer-clean {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .footer-background,
    .footer-ornaments {
        display: none !important;
    }
    
    .mobile-cart-icon {
        display: none !important;
    }
    
    .dev-link {
        color: #0066cc !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .footer-clean {
        background: #000 !important;
        color: #fff !important;
    }
    
    .footer-logo h2 {
        color: #ffff00 !important;
    }
    
    .dev-link {
        background: #ffff00 !important;
        color: #000 !important;
    }
    
    .mobile-cart-icon {
        background: #ffff00 !important;
        border-color: #fff !important;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .ornament,
    .dev-icon,
    .mobile-cart-icon {
        animation: none !important;
        transition: none !important;
    }
    
    .info-item:hover,
    .dev-link:hover,
    .mobile-cart-icon:hover {
        transform: none !important;
    }
}