/** Styling for lists of posts (feeds) and for individual posts.
  *
  * @author Scott Johnstone <scott@networksense.org>
  * @editor Michael Allan <mike@zelea.com>
  */
@import "../sidebar.css";
@import "../../BreadcrumbTrailV.css";
@import "../../StageTabber.css";


div.feed {
    overflow: hidden;
}

div.feedspacer {
    overflow: hidden;
}

/* Transform the rows into individual cards */
div.feed_tree_branch {
    /* Restore the white card look you liked */
    background: #ffffff !important;      /* White card base */
    background-image: none !important;   /* CRITICAL: This kills the gradient from theme_template.css */
    
    border: 1px solid #e5e7eb !important; /* Soft gray border */
    border-radius: 8px;                  /* Matches your sidebar radius */
    padding: 8px 15px !important;        /* Slightly reduced top/bottom padding */
    margin-bottom: 4px !important;       /* Reduced from 12px to 4px for tighter spacing */
    
    /* Subtle shadow to give it depth */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03) !important;
    
    /* Ensure it doesn't collapse with floats */
    overflow: hidden; 
    clear: both;
    transition: transform 0.1s ease;
}

/* Add a slight "lift" when you hover over a proposal */
div.feed_tree_branch:hover {
    border-color: #2563eb !important;   /* Brand blue border on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Ensure the voting area doesn't have its own background inside the card */
div.feed_tree_vote {
    margin-top: 2px !important;
    background: transparent !important;
}

.feed_pageturn , a {
    text-decoration: none;
}

#feed_pageturn_top , #feed_pageturn_bottom {
    float: right;
}

#feed_pageturn_top p , #feed_pageturn_bottom p {
    margin: 0;
}   

div.feed_tree_vote , div.feed_tree_fold , div.feed_tree_post_title {
    margin-right: 10px;
    float: left;
}

div.feed_tree_vote {
    float: left;
    width: 30px;
    margin-right: 10px;
    text-align: center;
}

div.feed_tree_vote td {
    width: 40px;
}

a.feed_expander {
    color: #2563eb !important;
    font-weight: bold !important;
    text-decoration: none !important;
}

a.feed_expander:hover {
    cursor: pointer;
}

p.feed_tree_post_title_text {
    margin-top: 0px !important;
    margin-bottom: 0px !important; /* Removed 2px margin */
    line-height: 1.2 !important;
}

p.feed_tree_post_title_info {
    margin-top: -2px !important;    /* Pulled up closer to title */
    margin-bottom: 0px !important;
    font-size: 11px !important;     /* Slightly smaller to fit tighter */
}

p.feed_tree_post_title_text a {
    color: #2563eb !important; /* Modern Blue */
    font-weight: 700;
}

p.feed_tree_post_title_text a:hover {
    text-decoration: underline;
}

p.feed_tree_post_title_info, 
span.feed_tree_post_title_info {
    color: #64748b !important;
    border-bottom: none !important; /* Removes the dotted line */
}

span.feed_tree_post_title_info {
    border-bottom: none !important; 
}

img.feed_vote_up_active , img.feed_vote_up_inactive {
    width: 23px;
    height: 12px;
    margin-top: 2px;
    margin-bottom: -2px;
}

img.feed_vote_up_active {
    background: url('../../img/vote_up_sprite_active.png') 0 0;
}

img.feed_vote_up_inactive {
    background: url('../../img/vote_up_sprite_inactive.png') 0 0;
}

img.feed_vote_up_active:hover {
    background: url('../../img/vote_up_sprite_active.png') -23px 0;
    cursor: pointer;
}

img.feed_vote_up_inactive:hover {
    background: url('../../img/vote_up_sprite_inactive.png') -23px 0;
    cursor: pointer;
}

p.feed_expander_p {
    margin: 0px;
}

p.feed_tree_post_links {
    margin-bottom: 4px; /* Reduced from 6px */
    font: normal 16px/18px Palatino Linotype, Palatino, FreeSerif, serif;
}

div.feed_tree_post_content p {
    margin-bottom: 10px; /* Reduced from 15px */
    margin-top: 10px;    /* Reduced from 15px */
    padding: 0px;
}

p.feed_tree_post_links {
    margin-bottom: 2px; /* Reduced from 3px */
    font: normal 14px/16px Palatino Linotype, Palatino, FreeSerif, serif;
}

p.feed_tree_post_links a {
    text-decoration: none;
}

p.feed_tree_post_links a:hover {
    text-decoration: underline;
}

p.feed_tree_post_links a:visited {
    text-decoration: none;
}

div.feed_tree_post_wrapper {
    overflow: hidden;
}

p#feed_noposts {
    font-style: italic;
}

div.feed_tree_vote, 
div.feed_tree_vote table, 
div.feed_tree_vote td, 
div.feed_tree_vote tr {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
}