/* Copyright (C) YOOtheme GmbH, http://www.gnu.org/licenses/gpl.html GNU/GPL */

/*
 * Menus Style Sheet - Defines base styles for various menus
 * Supported: Mega Drop-Down Menu, Sidebar/Accordion Menu and Line Menu
 */


/* Menu Helpers
----------------------------------------------------------------------------------------------------*/

.menu,
.menu ul {
    margin: 0px;
    padding: 0px;
    list-style: none;
}

.menu a,
.menu span { display: block; }
.menu a { text-decoration: none; }


/* Mega Drop-Down Menu
----------------------------------------------------------------------------------------------------*/

.menu-dropdown li { position: relative; }

/* Level 1 */
.menu-dropdown,
.menu-dropdown .level1,
.menu-dropdown .level1 > span { float: left; }

.menu-dropdown a.level1 > span,
.menu-dropdown span.level1 > span {
    height: 30px;
    padding: 0 10px;
    line-height: 30px;
}

/* Drop-Down */
.menu-dropdown .dropdown {
    display: none;
    position: absolute;
    top: 30px;
    left: 0;
    z-index: 100;
    width: 300px; /* Default */
}

.menu-dropdown li:hover .dropdown,
.menu-dropdown li.remain .dropdown { display: block; }

.menu-dropdown li:hover .dropdown.flip,
.menu-dropdown li.remain .dropdown.flip {
    left: auto;
    right: 0;
}

.menu-dropdown .dropdown-bg > div { overflow: hidden; }

.menu-dropdown .stack .column { width: 100%; }

/* Multi Columns, Default */
.menu-dropdown .columns2 { width: 600px; }
.menu-dropdown .columns3 { width: 900px; }
.menu-dropdown .columns4 { width: 1200px; }

.menu-dropdown .column { float: left; }

/* Level 2 */
.menu-dropdown a.level2 > span,
.menu-dropdown span.level2 > span {
    padding: 7px 0;
    line-height: 21px;
    overflow: hidden;
}

/* Level 3 */
.menu-dropdown ul.level3 { padding-bottom: 10px; }

.menu-dropdown li.level3 { /* Must be set in li for IE7 */
    font-size: 11px;
    line-height: 17px;
}

/* Icons */
.menu-dropdown span.icon {
    display: block;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    float: left;
}

.menu-dropdown .level1 .level1 span.icon {
    width: 30px;
    height: 30px;
    margin-left: -5px;
}
.menu-dropdown .level1 .level1 span.icon + span,
.menu-dropdown .level1 .level1 span.icon + span + span { margin-left: 25px; }

.menu-dropdown li.level2 .level2 span.icon {
    width: 35px;
    height: 35px;
    margin-top: -7px;
    margin-bottom: -7px;
}
.menu-dropdown li.level2.hassubtitle .level2 span.icon { margin-top: -4px; }

.menu-dropdown li.level2 .level2 span.icon { margin-right: 5px; }
.menu-dropdown li.level2 .level2 span.icon + span,
.menu-dropdown li.level2 .level2 span.icon + span + span { margin-left: 40px; }

/* Subtitles */
.menu-dropdown span.title { line-height: 18px; }

.menu-dropdown span.subtitle {
    margin-top: -1px;
    font-size: 9px;
    line-height: 10px;
    text-indent: 1px;
}

.menu-dropdown li.level2 .level2 span.title { line-height: 15px; }
.menu-dropdown li.level2 .level2 span.subtitle { line-height: 14px; }


/* Sidebar/Accordion Menu
----------------------------------------------------------------------------------------------------*/

/* Accordion */
.menu-sidebar li.parent span.level1 > span { cursor: pointer; }

/* Level 1 */
.menu-sidebar a.level1 > span,
.menu-sidebar span.level1 > span {
    padding: 5px 0;
    line-height: 20px;
}

/* Remove Subtitles */
.menu-sidebar span.title { display: inline; }
.menu-sidebar span.subtitle { display: none; }

/* Level 2-4 */
.menu-sidebar ul.level2 { padding-bottom: 10px; }
.menu-sidebar li.level1:last-child ul.level2 { padding-bottom: 0; }

.menu-sidebar .level2 a > span {
    font-size: 11px;
    line-height: 17px;
}

/* Icons */
.menu-sidebar span.icon {
    display: inline-block;
    height: 30px;
    width: 30px;
    margin: -5px 5px -5px 0;
    background-repeat: no-repeat;
    background-position: 50% 50%;
    vertical-align: middle;
}


/* Line Menu
----------------------------------------------------------------------------------------------------*/

/* Level 1 */
.menu-line,
.menu-line li,
.menu-line li a { display: inline-block; }


/* Mega Drop-Down Menu
----------------------------------------------------------------------------------------------------*/

/* Level 1 */
.menu-dropdown,
.menu-dropdown li.level1 {
    margin-left: 0px;
}

.menu-dropdown a.level1,
.menu-dropdown span.level1 {
    font-weight:400;
    color: #333333;
    height: 53px;
    padding-top: 20px;
    line-height: 53px;
    border-bottom: 1px solid transparent;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Set Active */
.menu-dropdown li.active .level1 {
    position: relative;
    color: #626262;
    border-bottom: 1px solid #008fff;
}

/* Set Hover */
.menu-dropdown li.level1:hover .level1,
.menu-dropdown li.remain .level1 {
    color: #008fff;
    border-bottom: 1px solid transparent;
    border-bottom-color: #008fff;
}

/* Drop-Down */
.menu-dropdown .dropdown {
    top: 85px;
}

.menu-dropdown .dropdown-bg > div {
    color: #ababab;
    background: #fff;
    border-radius: 2px;
    border: 1px solid #ddd;
}

.menu-dropdown li.level1.parent:hover:after,
.menu-dropdown li.remain.parent:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border-width: 6px;
    border-style: solid;
    border-color: #008fff transparent transparent transparent;
    top: 74px;
    left: 43%;
    z-index: 99;
}


/* Level 2 */
.menu-dropdown li.level2 {
    border-top: 1px solid #ddd;
}
.menu-dropdown li.level2:first-child { border: none; }

.menu-dropdown a.level2,
.menu-dropdown span.level2 {
    color: #333333;
    padding: 0 5px;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Set Hover */
.menu-dropdown a.level2:hover {
    padding: 0 10px;
    color: #fff !important;
    background: #018fff;
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Set Current */
.menu-dropdown a.current.level2 { font-weight: bold; }

/* Level 3 */
.menu-dropdown li.level3 {
    margin: 0 5px;
}
.menu-dropdown li.level3:first-child { border: none; }

.menu-dropdown a.level3,
.menu-dropdown span.level3 {
    color: #333333;
    padding-left: 15px;
    background-position: 0;
    background-repeat: no-repeat;
    background-image: url(../../images/theme/level3.png);
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Set Hover */
.menu-dropdown a.level3:hover {
    color: #fff !important;
    padding-left: 15px;
    background: #018fff;
    background-position: 0;
    background-repeat: no-repeat;
    background-image: url(../../images/theme/level3.png);
    -moz-transition: all 0.3s ease-in-out;
    -webkit-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    -ms-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

/* Set Current */
.menu-dropdown a.current.level3 { font-weight: bold; }


/* Sidebar/Accordion Menu
----------------------------------------------------------------------------------------------------*/

/* Link */
.menu-sidebar a,
.menu-sidebar li > span { color: #444; }

/* Hover */
.menu-sidebar a:hover,
.menu-sidebar li > span:hover { color: #018fff; transition: all 0.3s ease-in-out 0s; }

/* Current */
.menu-sidebar a.current { font-weight: bold; }

/* Level 1 */
.menu-sidebar li.level1 { border-top: 1px solid #ddd; }
.menu-sidebar li.level1:first-child { border-top: none; }

.menu-sidebar li.parent .level1 > span { background: url(../images/menu_sidebar_parent.png) 100% 0 no-repeat; }
.menu-sidebar li.parent.active .level1 > span { background-position: 100% -30px; }

/* Level 2-4 */
.menu-sidebar a.level2,
.menu-sidebar span.level2 {
    padding-left: 15px;
    background-position: 0;
    background-repeat: no-repeat;
    background-image: url(../images/sidebar-level.png);
}
.menu-sidebar ul.level2 ul {
    padding-left: 10px;
}


/* Line Menu
----------------------------------------------------------------------------------------------------*/

.menu-line li {
    margin-left: 7px;
    padding-left: 8px;
    background: url(../images/menu_line_item.png) 0 50% no-repeat;
}

.menu-line li:first-child {
    margin-left: 0;
    padding-left: 0;
    background: none;
}
