/* Dashboard Components CSS - Reusable styles for dashboard and other pages */

/* ===== CUSTOM ANIMATIONS ===== */

/* Floating animations for background elements */
@keyframes float-gentle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes float-reverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Fade and slide animations */
@keyframes fade-in-fast {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== ANIMATION CLASSES ===== */

.animate-float-gentle {
    animation: float-gentle 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: float-reverse 8s ease-in-out infinite;
}

.animate-fade-in-fast {
    animation: fade-in-fast 0.6s ease-out forwards;
}

.animate-slide-up {
    animation: slide-up 0.8s ease-out forwards;
    opacity: 0;
}

/* ===== BACKGROUND ELEMENTS ===== */

.dashboard-bg {
    min-height: 100vh;
    background: linear-gradient(135deg, rgb(250, 245, 255) 0%, rgb(253, 242, 248) 100%);
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
}

.dashboard-bg-elements {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.floating-shape-1 {
    position: absolute;
    top: 5rem;
    left: 2.5rem;
    width: 6rem;
    height: 6rem;
    background: linear-gradient(135deg, rgba(196, 181, 253, 0.1) 0%, rgba(251, 207, 232, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
}

.floating-shape-2 {
    position: absolute;
    bottom: 5rem;
    right: 2.5rem;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(135deg, rgba(147, 197, 253, 0.1) 0%, rgba(196, 181, 253, 0.1) 100%);
    border-radius: 50%;
    filter: blur(40px);
}

.grid-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.03;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,0.08) 1px, transparent 0);
    background-size: 50px 50px;
}

/* ===== CARD COMPONENTS ===== */

.dashboard-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 1);
    
}

.dashboard-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.02);
}

.dashboard-card.with-animation {
    opacity: 0;
}

/* ===== ALBUM CARDS ===== */

.album-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(229, 231, 235, 1);
    
}

/* .album-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: scale(1.02);
} */

.album-card.with-animation {
    opacity: 0;
}

.album-cover {
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
}

.album-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.album-card:hover .album-cover img {
    transform: scale(1.05);
}

.album-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
}

.album-card:hover .album-overlay {
    background: rgba(0, 0, 0, 0.2);
}

.album-overlay-light {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
}

.album-card:hover .album-overlay-light {
    background: rgba(0, 0, 0, 0.1);
}

.album-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.album-title-overlay h3 {
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.photo-count-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ===== GRADIENT BACKGROUNDS ===== */

.default-album-gradient {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgb(147, 51, 234) 0%, rgb(126, 34, 206) 50%, rgb(236, 72, 153) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-album-content {
    text-align: center;
}

.default-album-icon {
    width: 2rem;
    height: 2rem;
    color: white;
    margin: 0 auto 0.5rem;
}

.album-card:hover .default-album-icon {
    transform: scale(1.1);
}

.default-album-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== BUTTONS ===== */

.btn-gradient-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, rgb(236, 72, 153), rgb(147, 51, 234));
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transform: scale(1);
}

.btn-gradient-primary:hover {
    background: linear-gradient(to right, rgb(219, 39, 119), rgb(126, 34, 206));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.btn-gradient-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(to right, rgb(147, 51, 234), rgb(236, 72, 153));
    color: white;
    font-weight: 500;
    text-decoration: none;
    
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transform: scale(1);
}

.btn-gradient-secondary:hover {
    background: linear-gradient(to right, rgb(126, 34, 206), rgb(219, 39, 119));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

/* ===== NOTICE COMPONENTS ===== */

.guest-notice {
    background: linear-gradient(to right, rgb(255, 251, 235), rgb(255, 247, 237));
    border: 1px solid rgb(252, 211, 77);
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.guest-notice-icon {
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    background: rgb(254, 243, 199);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guest-notice-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: rgb(217, 119, 6);
}

.guest-notice-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: rgb(120, 53, 15);
    margin-bottom: 0.5rem;
}

.guest-notice-text {
    color: rgb(146, 64, 14);
    margin-bottom: 1rem;
}

.btn-notice-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(to right, rgb(245, 158, 11), rgb(251, 146, 60));
    color: white;
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transform: scale(1);
}

.btn-notice-primary:hover {
    background: linear-gradient(to right, rgb(217, 119, 6), rgb(234, 88, 12));
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    color: white;
    text-decoration: none;
}

.btn-notice-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid rgb(252, 211, 77);
    color: rgb(146, 64, 14);
    font-weight: 500;
    border-radius: 0.5rem;
    text-decoration: none;
    
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    transform: scale(1);
}

.btn-notice-secondary:hover {
    background: rgb(255, 251, 235);
    border-color: rgb(245, 158, 11);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
    color: rgb(146, 64, 14);
    text-decoration: none;
}

/* ===== EMPTY STATES ===== */

.empty-state {
    text-align: center;
    padding: 3rem 0;
}

.empty-state-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, rgb(243, 232, 255), rgb(251, 207, 232));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.empty-state-icon svg {
    width: 2rem;
    height: 2rem;
    color: rgb(168, 85, 247);
}

.empty-state-title {
    font-size: 1.125rem;
    font-weight: 500;
    color: rgb(17, 24, 39);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    color: rgb(107, 114, 128);
    margin-bottom: 1.5rem;
}

/* ===== UTILITY CLASSES ===== */

.text-gradient-primary {
    background: linear-gradient(to right, rgb(147, 51, 234) 0%, rgb(236, 72, 153) 50%, rgb(147, 51, 234) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.icon-purple {
    color: rgb(147, 51, 234);
}

.icon-pink {
    color: rgb(236, 72, 153);
}

/* ===== RESPONSIVE UTILITIES ===== */

@media (max-width: 640px) {
    .dashboard-bg {
        padding: 1rem;
    }
    
    .floating-shape-1,
    .floating-shape-2 {
        display: none;
    }
    
    .dashboard-card {
        padding: 1rem;
    }
}

/* ===== ANIMATION DELAYS ===== */

.delay-100 { animation-delay: 0.1s; }
.delay-150 { animation-delay: 0.15s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }