/* Custom animations for dice rolls */
@keyframes roll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(0.9); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.dice-animation {
    animation: roll 0.4s ease-in-out;
}

/* Bento Grid styling */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .bento-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-container {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-item.large, .bento-item.wide, .bento-item.tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

.bento-item {
    background: white;
    border-radius: 1.5rem;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    position: relative;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.bento-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.bento-item.wide {
    grid-column: span 2;
}

.bento-item.tall {
    grid-row: span 2;
}

/* Unique Navigation */
.nav-floating {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .nav-floating {
        bottom: 1rem;
        padding: 0.5rem 1rem;
        gap: 1rem !important;
    }
    .nav-floating i {
        font-size: 1.1rem;
    }
}

/* Tool page responsiveness tweaks */
@media (max-width: 640px) {
    h1 { font-size: 2.25rem !important; }
    .dice-box { width: 150px !important; height: 150px !important; font-size: 6rem !important; }
    .rpg-dice-grid { gap: 0.75rem !important; grid-template-columns: repeat(2, 1fr) !important; }
    .coin { width: 150px !important; height: 150px !important; font-size: 3.5rem !important; }
    .oracle-sphere { width: 200px !important; height: 200px !important; }
    .oracle-inner { width: 100px !important; height: 100px !important; font-size: 0.75rem !important; }
    .input-group input { width: 80px !important; padding: 0.75rem !important; font-size: 1rem !important; }
    
    /* Global container padding adjustment for small screens */
    .container { padding-left: 1rem !important; padding-right: 1rem !important; }
    
    /* Adjust footer for mobile */
    footer .flex-col { text-align: center; }
    footer .text-right { text-align: center; margin-top: 1rem; }
}

