/* Mindease Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', serif;
    background-color: #FFFBF5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Mute Button */
.btn-mute {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0;
    line-height: 1;
    width: 40px;
    height: 40px;
}

.btn-mute:hover {
    transform: scale(1.1);
}

.btn-mute:focus {
    outline: none;
}

.mute-icon {
    display: block;
    width: 100%;
    height: 100%;
}

.mute-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

/* Main Container */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    width: 100%;
    position: relative;
}

/* Cat Collection Container */
.cat-collection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}

.cat-collection .cat-doodle {
    pointer-events: auto;
}

/* Individual Cat Doodle */
.cat-doodle {
    position: absolute;
    object-fit: contain;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Dynamic sizing based on number of cats */
.cat-collection[data-count="1"] .cat-doodle { width: 80px; height: 80px; }
.cat-collection[data-count="2"] .cat-doodle { width: 75px; height: 75px; }
.cat-collection[data-count="3"] .cat-doodle { width: 70px; height: 70px; }
.cat-collection[data-count="4"] .cat-doodle { width: 65px; height: 65px; }
.cat-collection[data-count="5"] .cat-doodle { width: 60px; height: 60px; }
.cat-collection[data-count="6"] .cat-doodle { width: 55px; height: 55px; }
.cat-collection[data-count="7"] .cat-doodle { width: 50px; height: 50px; }
.cat-collection[data-count="8"] .cat-doodle { width: 48px; height: 48px; }
.cat-collection[data-count="9"] .cat-doodle { width: 46px; height: 46px; }
.cat-collection[data-count="10"] .cat-doodle { width: 44px; height: 44px; }
/* For 11+ cats */
.cat-collection:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]):not([data-count="5"]):not([data-count="6"]):not([data-count="7"]):not([data-count="8"]):not([data-count="9"]):not([data-count="10"]) .cat-doodle {
    width: 40px;
    height: 40px;
}

/* New cat animation - zoom in and settle (only for first appearance) */
.cat-doodle.new-cat {
    animation: zoomInAndSettle 1.5s ease-out;
}

@keyframes zoomInAndSettle {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Existing cats have no animation - they remain static */

/* Hover effect on cats */
.cat-doodle:hover {
    transform: translate(-50%, -50%) scale(1.2) !important;
    z-index: 10;
    filter: brightness(1.05);
}

/* Thought Overlay */
.thought-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.thought-card {
    background: white;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease;
}

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

/* Close Button */
.close-button {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #0F0E0E;
}

.close-button:hover {
    transform: scale(1.1);
    color: #747474;
}

.close-button:focus {
    outline: none;
}

/* Thought Text */
.thought-text {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    line-height: 1.8;
    color: #0F0E0E;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Reduce opacity of main container when overlay is active */
.container.overlay-active {
    opacity: 0.9;
}

body.overlay-active {
    overflow: hidden;
}


@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Feeling Button */
.feeling-button {
    background: transparent;
    color: #000000;
    border: none;
    padding: 0;
    font-size: 64px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    text-decoration: underline;
    text-underline-offset: 8px;
    text-decoration-thickness: 1px;
    position: relative;
    z-index: 1;
}

.feeling-button:hover {
    /* No opacity change on hover */
}

.feeling-button:active {
    transform: scale(0.98);
}

.feeling-button:focus {
    outline: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feeling-button {
        font-size: 56px;
    }
    
    .btn-mute {
        font-size: 28px;
        top: 25px;
        right: 25px;
    }
}

@media (max-width: 768px) {
    .feeling-button {
        font-size: 48px;
    }
    
    .btn-mute {
        top: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .container {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .feeling-button {
        font-size: 36px;
        text-underline-offset: 6px;
    }
    
    .btn-mute {
        top: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    .container {
        padding: 1rem;
    }
}
