/* Interactive Icons CSS */

.icon-container {
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.icon-container svg {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.icon-container:hover svg {
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Transformable Icon Styles */
.transform-icon {
    position: relative;
    display: inline-block;
    width: 24px;
    height: 24px;
}

.transform-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* First state (default) */
.transform-icon .icon-first {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.transform-icon .icon-second {
    opacity: 0;
    transform: rotate(180deg) scale(0.8);
}

/* Second state (active/clicked) */
.transform-icon.active .icon-first {
    opacity: 0;
    transform: rotate(-180deg) scale(0.8);
}

.transform-icon.active .icon-second {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

/* Specific Icon Animations */

/* Hamburger to X */
.hamburger-to-x .icon-first {
    transform-origin: center;
}

.hamburger-to-x .icon-second {
    transform-origin: center;
}

.hamburger-to-x.active .icon-first {
    transform: rotate(90deg) scale(0);
}

.hamburger-to-x.active .icon-second {
    transform: rotate(0deg) scale(1);
}

/* Play to Pause */
.play-to-pause .icon-first {
    transform-origin: center;
}

.play-to-pause .icon-second {
    transform-origin: center;
}

.play-to-pause.active .icon-first {
    transform: rotate(90deg) scale(0);
}

.play-to-pause.active .icon-second {
    transform: rotate(0deg) scale(1);
}

/* Plus to Minus */
.plus-to-minus .icon-first {
    transform-origin: center;
}

.plus-to-minus .icon-second {
    transform-origin: center;
}

.plus-to-minus.active .icon-first {
    transform: rotate(90deg) scale(0);
}

.plus-to-minus.active .icon-second {
    transform: rotate(0deg) scale(1);
}

/* Heart Animation */
.heart-animation .icon-first {
    transform-origin: center;
}

.heart-animation .icon-second {
    transform-origin: center;
    color: #e74c3c;
}

.heart-animation.active .icon-first {
    transform: scale(0) rotate(180deg);
}

.heart-animation.active .icon-second {
    transform: scale(1.2) rotate(0deg);
    animation: heartbeat 0.6s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
    100% { transform: scale(1.2); }
}

/* Star Animation */
.star-animation .icon-first {
    transform-origin: center;
}

.star-animation .icon-second {
    transform-origin: center;
    color: #f39c12;
}

.star-animation.active .icon-first {
    transform: scale(0) rotate(180deg);
}

.star-animation.active .icon-second {
    transform: scale(1.3) rotate(0deg);
    animation: starTwinkle 0.8s ease-in-out;
}

@keyframes starTwinkle {
    0% { transform: scale(1.3) rotate(0deg); }
    25% { transform: scale(1.1) rotate(90deg); }
    50% { transform: scale(1.5) rotate(180deg); }
    75% { transform: scale(1.2) rotate(270deg); }
    100% { transform: scale(1.3) rotate(360deg); }
}

/* Volume Animation */
.volume-animation .icon-first {
    transform-origin: center;
}

.volume-animation .icon-second {
    transform-origin: center;
    color: #e74c3c;
}

.volume-animation.active .icon-first {
    transform: scale(0) rotate(-90deg);
}

.volume-animation.active .icon-second {
    transform: scale(1.1) rotate(0deg);
}

/* Eye Animation */
.eye-animation .icon-first {
    transform-origin: center;
}

.eye-animation .icon-second {
    transform-origin: center;
}

.eye-animation.active .icon-first {
    transform: scale(0) rotate(180deg);
}

.eye-animation.active .icon-second {
    transform: scale(1.1) rotate(0deg);
}

/* Bookmark Animation */
.bookmark-animation .icon-first {
    transform-origin: center;
}

.bookmark-animation .icon-second {
    transform-origin: center;
    color: var(--primary-color);
}

.bookmark-animation.active .icon-first {
    transform: scale(0) rotate(-90deg);
}

.bookmark-animation.active .icon-second {
    transform: scale(1.1) rotate(0deg);
}

/* Search Animation */
.search-animation .icon-first {
    transform-origin: center;
}

.search-animation .icon-second {
    transform-origin: center;
    color: #e74c3c;
}

.search-animation.active .icon-first {
    transform: scale(0) rotate(180deg);
}

.search-animation.active .icon-second {
    transform: scale(1.1) rotate(0deg);
}

/* Size Variants */
.icon-small {
    width: 16px;
    height: 16px;
}

.icon-small svg {
    width: 16px;
    height: 16px;
}

.icon-medium {
    width: 24px;
    height: 24px;
}

.icon-medium svg {
    width: 24px;
    height: 24px;
}

.icon-large {
    width: 32px;
    height: 32px;
}

.icon-large svg {
    width: 32px;
    height: 32px;
}

.icon-xlarge {
    width: 48px;
    height: 48px;
}

.icon-xlarge svg {
    width: 48px;
    height: 48px;
}

/* Color Variants */
.icon-primary {
    color: var(--primary-color);
}

.icon-secondary {
    color: var(--secondary-color);
}

.icon-accent {
    color: var(--accent-color);
}

.icon-success {
    color: var(--success-color);
}

.icon-warning {
    color: var(--warning-color);
}

.icon-white {
    color: var(--white);
}

/* Button Styles with Icons */
.icon-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.icon-button:hover {
    background: var(--background-light);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.icon-button.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .icon-container svg {
        width: 20px;
        height: 20px;
    }
    
    .transform-icon {
        width: 20px;
        height: 20px;
    }
}




