@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

.rtcl-user-note-inner {
    position: relative;
    background: linear-gradient(145deg, #2c1810 0%, #1a0f08 50%, #0d0704 100%);
    padding: 40px 50px;
    border-radius: 16px !important;
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 215, 0, 0.2),
        inset 0 -1px 0 rgba(139, 69, 19, 0.3) !important;
    border: 3px solid transparent !important;
    background-clip: padding-box;
    /*overflow: hidden;*/
    animation: gentleGlow 4s ease-in-out infinite alternate !important;
    font-family: 'Cormorant Garamond', serif;
    margin: 0px;
}

/*.rtcl-user-note-inner::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: -3px;*/
/*    left: -3px;*/
/*    right: -3px;*/
/*    bottom: -3px;*/
/*    background: linear-gradient(45deg, */
/*        #ffd700, #ffed4a, #f39c12, #e67e22, */
/*        #d35400, #a0522d, #8b4513, #654321);*/
/*    border-radius: 23px;*/
/*    z-index: -1;*/
/*    animation: borderShimmer 3s linear infinite;*/
/*}*/

.rtcl-user-note-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffd700' fill-opacity='0.05'%3E%3Cpath d='M30 30c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20zm15 0c0-11.046-8.954-20-20-20s-20 8.954-20 20 8.954 20 20 20 20-8.954 20-20z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    animation: textureAppear 2s ease-in-out 0.5s forwards;
}

/* Enhanced title styling */
.rtcl-user-note-inner h4 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 700;
    color: #ffd700 !important;
    text-align: center;
    margin: 0 !important;
    text-shadow: 
        0 0 20px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(255, 215, 0, 0.3),
        2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    transform: translateY(-20px);
    opacity: 0;
    z-index: 1;
    animation: titleSlideIn 1.2s ease-out 0.3s forwards;
}


/* Enhanced paragraph styling */
.rtcl-user-note-inner p {
    font-size: 1.1rem !important;
    font-weight: 400;
    color: #f4e4bc;
    text-align: center;
    line-height: 1.3;
    margin: 0 0 8px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
    position: relative;
    padding: 16px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    transform: translateY(20px);
    opacity: 0;
    animation: contentSlideIn 1.2s ease-out 0.6s forwards;
}

.rtcl-user-note-inner p::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 3rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    animation: quoteAppear 0.8s ease-out 1.2s forwards;
}

.rtcl-user-note-inner p::after {
    content: '"';
    position: absolute;
    bottom: -25px;
    right: 15px;
    font-size: 3rem;
    color: #d4af37;
    font-family: 'Playfair Display', serif;
    opacity: 0;
    animation: quoteAppear 0.8s ease-out 1.4s forwards;
}

/* Floating particles */
.royal-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffd700;
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 4s linear infinite;
    box-shadow: 0 0 6px #ffd700;
}

/* Hover effects */
.rtcl-user-note-inner:hover {
    transform: scale(1.02) !important;
    transition: transform 0.3s ease !important;
}

.rtcl-user-note-inner:hover h4 {
    text-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.4),
        2px 2px 4px rgba(0, 0, 0, 0.8) !important;
    transition: text-shadow 0.3s ease !important;
}

/* Keyframe animations */
@keyframes gentleGlow {
    0% {
        box-shadow: 
            0 25px 50px rgba(0, 0, 0, 0.8),
            inset 0 1px 0 rgba(255, 215, 0, 0.2),
            inset 0 -1px 0 rgba(139, 69, 19, 0.3);
    }
    100% {
        box-shadow: 
            0 30px 60px rgba(0, 0, 0, 0.9),
            inset 0 1px 0 rgba(255, 215, 0, 0.4),
            inset 0 -1px 0 rgba(139, 69, 19, 0.5),
            0 0 40px rgba(255, 215, 0, 0.1);
    }
}

@keyframes borderShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes sparkle {
    0% {
        text-shadow: 0 0 10px rgba(212, 175, 55, 0.8);
        transform: scale(1) rotate(0deg);
    }
    100% {
        text-shadow: 0 0 20px rgba(255, 215, 0, 1);
        transform: scale(1.1) rotate(5deg);
    }
}

@keyframes titleSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes contentSlideIn {
    to {
        transform: translateY(0);
        /*opacity: 1;*/
    }
}

@keyframes textureAppear {
    to { opacity: 1; }
}

@keyframes quoteAppear {
    to { opacity: 0.6; }
}

@keyframes cornerAppear {
    to {
        opacity: 1;
        transform: scale(1) rotate(var(--rotation, 0deg));
    }
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(var(--random-x, 0));
        opacity: 0;
    }
}

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .rtcl-user-note-inner {
        padding: 30px 35px;
        max-width: 90%;
        margin: 10px auto;
    }
    
    .rtcl-user-note-inner h4 {
        font-size: 1.8rem;
        gap: 10px;
    }
    
    .rtcl-user-note-inner p {
        font-size: 1.1rem;
        padding: 15px;
    }
    
    .corner-decoration {
        width: 30px;
        height: 30px;
    }
}