/* Post Notes Pro - Frontend Styles */
.post-notes-container {
    margin: 3rem 0;
    padding: 0;
    perspective: 1000px;
}

.post-notes-box {
    position: relative;
    border-radius: 20px;
    padding: 32px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform: translateY(0);
    animation: fadeInUp 0.8s ease-out;
}

.post-notes-box[data-hover-3d="true"]:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 32px 80px rgba(0, 0, 0, 0.2),
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.post-notes-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    border-radius: 20px;
    pointer-events: none;
}

.post-notes-box::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.post-notes-box[data-hover-3d="true"]:hover::after {
    opacity: 1;
}

/* Gradient Styles */
.post-notes-gradient-blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

.post-notes-gradient-purple {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 50%, #d299c2 100%);
}

.post-notes-gradient-green {
    background: linear-gradient(135deg, #42e695 0%, #3bb2b8 50%, #2d9cdb 100%);
}

.post-notes-gradient-orange {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%);
}

.post-notes-gradient-pink {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 50%, #ff8a80 100%);
}

.post-notes-glass-dark {
    background: linear-gradient(322deg, rgba(30, 30, 30, 0.9) 0%, rgba(50, 50, 50, 10) 10%, rgba(20, 20, 20, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-notes-neon-cyber {
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    border: 2px solid #00ffff;
}

.post-notes-neon-cyber[data-neon-pulse="true"] {
    animation: neonPulse 3s ease-in-out infinite alternate;
}

.post-notes-box {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.post-notes-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post-notes-icon[data-shimmer="true"]::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.post-notes-box[data-hover-3d="true"]:hover .post-notes-icon[data-shimmer="true"]::before {
    animation: shimmer 2s ease-in-out infinite;
}

.post-notes-icon svg {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.post-notes-neon-cyber .post-notes-icon {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    color: #00ffff;
}

.post-notes-content {
    flex: 1;
    color: white;
    position: relative;
}

.post-notes-title {
    margin: 0 0 16px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
}

.post-notes-title::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    transition: width 0.4s ease;
}

.post-notes-box[data-hover-3d="true"]:hover .post-notes-title::after {
    width: 100%;
}

.post-notes-neon-cyber .post-notes-title {
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Font size options */
.post-notes-text {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease-out 0.3s both;
}

.post-notes-box[data-font-size="small"] .post-notes-text {
    font-size: 0.9em;
}

.post-notes-box[data-font-size="normal"] .post-notes-text {
    font-size: 1em;
}

.post-notes-box[data-font-size="large"] .post-notes-text {
    font-size: 1.1em;
}

.post-notes-box[data-font-size="xlarge"] .post-notes-text {
    font-size: 1.2em;
}

/* Inherit font family */
.post-notes-box[data-inherit-font="true"] .post-notes-text {
    font-family: inherit;
}

.post-notes-neon-cyber .post-notes-text {
    color: rgba(0, 255, 255, 0.9);
}

.post-notes-text p {
    margin: 0 0 16px 0;
    transition: all 0.3s ease;
}

.post-notes-box[data-hover-3d="true"] .post-notes-text p:hover {
    transform: translateX(4px);
}

.post-notes-text p:last-child {
    margin-bottom: 0;
}

.post-notes-text ul,
.post-notes-text ol {
    margin: 0 0 16px 24px;
    padding: 0;
}

.post-notes-text li {
    margin-bottom: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.post-notes-box[data-hover-3d="true"] .post-notes-text li:hover {
    transform: translateX(4px);
}

.post-notes-text li::marker {
    color: rgba(255, 255, 255, 0.7);
}

.post-notes-text a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.post-notes-text a:hover {
    color: white;
    border-bottom-color: white;
    transform: translateY(-2px);
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.post-notes-text strong {
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-notes-text em {
    font-style: italic;
}

/* Floating particles effect */
.post-notes-box[data-particles="true"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.5;
}

/* Keyframe animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-10px) rotate(1deg); }
    66% { transform: translateY(-5px) rotate(-1deg); }
}

@keyframes neonPulse {
    0% { 
        box-shadow: 
            0 0 20px rgba(0, 255, 255, 0.3),
            0 0 40px rgba(0, 255, 255, 0.1),
            inset 0 0 20px rgba(0, 255, 255, 0.05);
    }
    100% { 
        box-shadow: 
            0 0 30px rgba(0, 255, 255, 0.5),
            0 0 60px rgba(0, 255, 255, 0.2),
            inset 0 0 30px rgba(0, 255, 255, 0.1);
    }
}

/* Interactive hover effects */
.post-notes-box[data-hover-3d="true"]:hover .post-notes-content {
    animation: contentGlow 0.6s ease-out;
}

@keyframes contentGlow {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.1); }
    100% { filter: brightness(1); }
}

/* Responsive design */
@media (max-width: 768px) {
    .post-notes-box {
        padding: 24px;
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .post-notes-icon {
        align-self: center;
        width: 70px;
        height: 70px;
    }
    
    .post-notes-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .post-notes-title {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .post-notes-text {
        font-size: 1rem !important;
        line-height: 1.6;
    }

    .post-notes-box[data-hover-3d="true"]:hover {
        transform: translateY(-4px) scale(1.01);
    }
}

@media (max-width: 480px) {
    .post-notes-container {
        margin: 2rem 0;
    }
    
    .post-notes-box {
        padding: 20px;
        border-radius: 16px;
    }
    
    .post-notes-title {
        font-size: 1.2rem;
    }
    
    .post-notes-text {
        font-size: 0.95rem !important;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .post-notes-glass-dark {
        background: linear-gradient(135deg, 
            rgba(15, 15, 15, 0.95) 0%, 
            rgba(25, 25, 25, 0.9) 50%, 
            rgba(10, 10, 10, 0.98) 100%);
        border: 1px solid rgba(255, 255, 255, 0.15);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .post-notes-box {
        border: 2px solid rgba(255, 255, 255, 0.5);
    }
    
    .post-notes-text {
        color: white;
        text-shadow: 0 0 4px rgba(0, 0, 0, 0.8);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .post-notes-box,
    .post-notes-icon,
    .post-notes-title::after,
    .post-notes-text p,
    .post-notes-text li,
    .post-notes-text a {
        transition: none;
        animation: none;
    }
    
    .post-notes-box:hover {
        transform: none;
    }
}