/* Minimal public styles to complement Tailwind CSS */

/* Override theme styles that might conflict with the roadmap layout. */
.agilepath-roadmap-container h3,
.agilepath-roadmap-container h4 {
    margin-bottom: 0 !important;
}

/* Single Roadmap Item Comment Form Styling */
.agilepath-single-item-container .comment-form-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db; /* gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.agilepath-single-item-container .form-submit input[type="submit"] {
    background-color: #3b82f6 !important; /* blue-500 */
    color: white !important;
    font-weight: bold !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important; /* rounded-lg */
    border: none !important;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
    transition: background-color 0.2s ease-in-out;
}

.agilepath-single-item-container .form-submit input[type="submit"]:hover {
    background-color: #2563eb !important; /* blue-600 */
}

.agilepath-single-item-container .comment-reply-title {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* gray-800 */
    margin-bottom: 1rem;
}

/* Custom styles for the comments area on single item page */
.agilepath-single-item-container #comments {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-top: 20px !important;
    margin-bottom: 2em !important;
    padding-top: 1.5em !important;
}

/* Card Hover Elevation & Glow */
.agilepath-item-box {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid #f3f4f6 !important;
}

.agilepath-item-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.1), 0 4px 6px -2px rgba(59, 130, 246, 0.05) !important;
    border-color: #bfdbfe !important;
}

/* Glassmorphic Description Popup */
.agilepath-stage-description-popup {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(229, 231, 235, 0.5) !important;
}

/* Upvote POP & "+1" Floating Bubble Animation */
.agilepath-plus-one {
    font-family: inherit;
    pointer-events: none;
    animation: agilepath-fade-up 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

@keyframes agilepath-fade-up {
    0% {
        opacity: 1;
        transform: translateY(0) scale(0.85);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(1.25);
    }
}

/* Accordion Rotatable Icon Transition */
.agilepath-accordion-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.rotate-180 {
    transform: rotate(180deg);
}

/* Fix search box icon padding & placement */
#agilepath-frontend-search {
    padding-left: 2.75rem !important;
}
.agilepath-roadmap-header .dashicons-search {
    position: absolute !important;
    left: 0.75rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 18px !important;
    width: 18px !important;
    height: 18px !important;
    line-height: 18px !important;
    margin: 0 !important;
    color: #9ca3af !important;
}

/* Style the comment cancel button explicitly to resist theme overrides */
.agilepath-comment-cancel {
    background-color: #f3f4f6 !important;
    color: #4b5563 !important;
    border: 1px solid #d1d5db !important;
    padding: 0.5rem 1rem !important;
    border-radius: 0.5rem !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.25rem !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer !important;
}

.agilepath-comment-cancel:hover {
    background-color: #4b5563 !important;
    color: #ffffff !important;
    border-color: #4b5563 !important;
}
