@import "fontawesome";

// main site colors
$altcolor: #990000;
$bluegrey: #363d52; // used in logo
$lightgrey: #CCCCCC;
$darkgrey: #333333;
$hover_row: rgba(155, 175, 235, 0.2);

// button colors
$button_back: #EEEEEE;
$button_border: #bbbbbb;
$button_shadow: #535353;
$text-shadow: #ffffff;

// calendar colors
$calendar_back: #FF0000;
$calendar_grad: #FF4444;

// bmark colors
$links: #003366;

@import "readable";

.icon {
    color: $altcolor;
    vertical-align: top;
    cursor: pointer;
    -webkit-font-smoothing: antialiased;
    vertical-align: bottom;
    font-size: 12px;
    padding: 0 5px;
}

em.icon {
    left: -99999px;
    position: absolute;
}

.navigation .icon {
    padding: 0;
}

@mixin cabin() {
    font-family: 'Cabin', sans-serif;
}

@mixin cabin_sketch() {
    font-family: 'Cabin Sketch',arial,helvetica,clean,sans-serif;
}

@mixin monospace() {
    font-family: Courier New, Courier, monospaced;
}

@mixin center() {
    text-align: center;
}

@mixin right() {
    text-align: right;
}

@mixin button_base {
    color: $darkgrey;
    background: $button_back;
    border: 1px solid $button_border;
    box-shadow: 1px 1px 0 0 $button_shadow;
}

@mixin button_base_hover {
   background: darken($button_back, 5%);
   -moz-box-shadow: 1px 1px 0 0 darken($button_shadow, 5%);
   -webkit-box-shadow: 1px 1px 0 0 darken($button_shadow, 5%);
   box-shadow: 1px 1px 0 0 darken($button_shadow, 5%);
   color: darken($darkgrey, 5%);
   cursor: pointer;
}


body {
    @include cabin;
}

a {
    color: $links;
    text-decoration: none;
}


pre {
    background: lightyellow none repeat scroll 0 0;
    border:1px inset orange;
    margin:10px;
    overflow:auto;
    padding:6px;
    text-align:left;
    white-space: pre-wrap;
}

body {
    margin-top: 0;
}

#body {
    margin: 1em;
}


#welcome {
    font-size: 1em;
    margin: 1em 4em;

    ul.features {
        list-style: none;

        li {
            font-size: 1.1em;
            font-style: italic;
            font-weight: bold;
            font-family: sans-serif;
        }
    }

    .signup {
        font-weight: .8em;
        float: right;
        width: 45%;
        input[type="email"]#email {
            width: 20em;
        }
    }
}

#new_user_welcome {
    font-size: larger;

    .icon {
        font-size: 32px;
        color: #000;
    }
}


.center {
    @include center;
}

.right {
    @include right;
}

.heading {
    width: 100%;

}

.logo {
    width: auto;
    display: inline;
}

.navigation {
    display: inline;
    float: right;

    span {
        margin: 0 .3em;
    }

    a {
        text-decoration: none;
    }
}

.logo {
    @include cabin_sketch;
    padding-left: .1em;
    font-size: 2em;
    text-decoration: none;
    color: $bluegrey;
    text-shadow: 1px 1px 0 $lightgrey;

    .alt_logo {
        color: $darkgrey;
        font-size: .6em;
        text-shadow: 2px 2px 2px $lightgrey;
        @include cabin;
    }
}

.footer {
    color: #666666;
    margin-top: 5em;
    font-size: .8em;
    margin-bottom: 1em;

    a {
        color: #666666;
        text-decoration: none;
    }

    .body {
        padding-right: 1em;
    }
}

.button {
    @include center;
    @include button_base;

    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    font: 12px arial,helvetica,clean,sans-serif;
    font-weight: bold;
    line-height: 2.0;
    padding: 2px 4px 3px;
    text-shadow: 0 1px 0 $text-shadow;
    text-decoration: none;

    &:hover {
        @include button_base_hover;
    }

    &.nav_button {
        padding: 8px 10px 9px;
        width: 150px;
        vertical-align: bottom;

        &:active {
            @include button_base_hover;
            color: black;
        }
    }

    .icon {
        color: $darkgrey;
        vertical-align: middle;
    }
}

.user {
    float: right;
    opacity: .5;
    display: inline-block;
    width: 9em;
    overflow: hidden;
    text-align: right;
    padding-right: 1em;
    &:hover {
        opacity: 1;
    }
}

.superblytagitems {
    li {
        margin: 3px 3px 0px 3px;
    }
}

a.button_minimal {
    text-decoration: none;
}

form {

    div {
        margin: .5em 0;
    }

    ul {
        margin-left: 0px;
    }

    li {
        list-style: none;
        margin-left: 0px;
        padding: .2em 0em;

        label {
            font-weight: bold;
        }
    }

    .button {
        font-weight: bold;
        color: $darkgrey;
    }

    &.bmark {
        input[type=text], &.bmark input[type="url"] {
            width: 35em;
            padding: 5px;
            border: 1px solid $darkgrey;
        }

        input[type=submit] {
            padding: 5px;
        }
    }

    .url {
        margin: 0px 0px 0px 0px;
        padding: 0px 0px 0px 0px;
        display: inline-block;
        overflow: hidden;
        width: 35em;
        vertical-align: bottom;
    }
}

.form {
    background-color: lighten($lightgrey, 10%);
    border: 1px solid $lightgrey;
    border-radius: 5px;
    margin: 1em;
    padding: .5em;
    display: block;

    input[type=text], input[type="url"],input[type="email"], input[type="password"], textarea {
        width: 35em;
        padding: 5px;
        border: 1px solid $darkgrey;
    }

    input[type=submit] {
        padding: 5px;
        min-width: 5em;
    }

    label {
        width: 8em;
        text-align: right;
        display: inline-block;
        padding-right: 1em;
        font-weight: normal;
        vertical-align: text-top;
    }

    .error {
        color: red;
    }

    .success {
        color: green;
    }

    li {
        padding: .5em;
    }

    .heading {
        font-size: larger;
        text-decoration: none;
        margin-bottom: .3em;
        color: black;

        .icon {
            color: black;
            font-size: 16px;
        }

        &:hover {
            cursor: hand;
        }
    }
}

fieldset {
    legend {
        font-size: .9em;
        font-weight: bold;
        border-bottom: 1px solid $darkgrey;
        margin-bottom: 2em;
    }
}


.controls {
    margin: .5em 0;
    padding: .3em;
    min-height: 2em;

    .add {
        width: 10em;
    }

    .icon {}
}


.data_list {
    .col_end {
        font-weight: bold;
        text-align: right;
    }

    .buttons {
        padding: .6em 0;
        vertical-align: top;
    }

    .bmark {
        border-top: 1px solid #CCC;
        clear: both;
        padding: .2em .2em 1em .2em;

        &:hover .url {
            color: $altcolor;
        }

        .actions {
            clear: right;
            float: right;
            padding-right: .3em;

            * {
                padding-left: .3em;
            }

            .readable {
                display: none;
            }
        }

        .description * {
            vertical-align: middle;
        }

        .tags {
            float: right;
        }
    }
}

.calendar {
    -moz-border-radius: 5px;
    border-radius: 5px;
    margin: 0px .4em;
    width: 4em;

    h2 {
        background-color: $calendar_back;
        background-image: -webkit-gradient( radial, 50% 50%, 0, 50% 50%, 40, from($calendar_grad), to($calendar_back));
        background-image:-moz-radial-gradient(circle, $calendar_grad, $calendar_back);
        background-image:radial-gradient(circle, $calendar_grad, $calendar_back);
        color: white;
        font-size: .9em;
        font-weight: bold;
        text-align: left;
        padding: .1em .2em;
        border: 1px solid $darkgrey;
        border-bottom-color: $darkgrey;
        margin: 0px;
        -webkit-border-top-right-radius: 2px;
        -webkit-border-top-left-radius: 2px;
        -moz-border-radius-topright: 2px;
        -moz-border-radius-topleft: 2px;
        border-top-right-radius: 2px;
        border-top-left-radius: 2px;
    }

    div {
        background-color: $lightgrey;
        color: black;
        font-size: 1.3em;
        text-align: center;
        padding: .1em .2em;
        border: 1px solid $darkgrey;
        border-top:none;
        -webkit-border-bottom-right-radius: 2px;
        -webkit-border-bottom-left-radius: 2px;
        -moz-border-radius-bottomright: 2px;
        -moz-border-radius-bottomleft: 2px;
        border-bottom-right-radius: 2px;
        border-bottom-left-radius: 2px;
    }
}

.bmark {

    a {
        font-size: 1.1em;
        text-decoration: none;
        color: $links;
    }

    &:hover {
        background-color: $hover_row;

        .url, .url * {
            opacity: 1;
        }

        .icon {
            opacity: 1;
        }
    }

    .icon {
        opacity: .7;
    }

    .days-ago {
        color: $altcolor;
        font-size: .8em;
    }

    .url {
        padding: .3em 0 0 .3em;
    }

    .url, .url * {
        color: $altcolor;
        line-height: 1.3;
        opacity: .7;
        overflow: hidden;
        white-space:nowrap;
    }

    .tags {
        padding: .3em;
        padding-left: 2em;
        font-size: .8em;
        text-align: right;
        max-width: 50%;

        .tag {
            padding: .2em .4em .2em .4em;
            background: lighten($lightgrey, 10%);
            color: $altcolor;
            opacity: .7;
            text-decoration: none;
            margin-bottom: .2em;
            display: inline-block;

            &:hover {
                opacity: 1;
            }
        }
    }
}

.note {
    border: 1px solid $darkgrey;
    background: $lightgrey;
    padding: .5em;
    margin-top: .5em;
    max-width: 40em;
}

.search {
    .body {
        padding-left: 2em;
    }

    .title {
        margin-left: 1.3em;
        font-size: 1.5em;
        border-bottom: 1px solid $darkgrey;
        padding-bottom: .1em;
        font-weight: normal;
    }
}

#search {
    height: 2em;
    vertical-align: middle;
}

.filter_control {
    display: inline-block;
    vertical-align: middle;
}

.fullpage {
    @include center;

    .note {
        margin: auto;
    }
}


.tabs {
    @include button_base;
    position: relative;
    margin: 10px 0 0 0;
    padding: 10px 10px 0 10px;
    border-radius: 5px;
    height: 2em;

    li {
        position: relative;
        list-style: none;
        display: inline;
        height: 1.5em;
        padding: .3em 1.5em;
        color: #333;
        text-align: center;
        text-shadow: 0 1px 0 white;

        a {
            text-decoration: none;
            color: $darkgrey;
        }

        &.selected {
            background-color: white;
            border: 1px solid $lightgrey;
        }

        &:hover {
            background-color: $lightgrey;
            -webkit-transition-duration: .33s;
            -webkit-transition-property: background-color;
        }
    }
}

    .clearfix:after {
    content: "";
    display: block;
    height: 0;
    line-height: 0;
    clear: both;
    visibility: hidden;
    overflow: hidden;
}
.clearfix { *display: inline-block }


.prev_tag {
    &:hover {
        cursor: hand;
    }

    padding-left: .5em;
}

.yui3-taglistentry-holder {
    padding: 5px;
    padding-bottom: 1px;
    width: 564px;
    line-height: 1;
    display: block;
    border: 1px solid #999;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    overflow: hidden;
    list-style: none;
}
.yui3-taglistentry-holder li {
    float: left;
    margin: 0 4px 4px 0;
}
.yui3-taglistentry-holder li input {
    height: 15px;
    border: none;
    width: auto;
    outline: none;
    font-size: 100%;
    line-height: 1;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    display: inline-block;
    line-height: 1;
    margin-bottom: 10px;
    background: transparent;
}
.yui3-taglistentry-item {
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    background: #f2f2f2;
    padding: 4px;
}
.yui3-taglistentry-holder li.yui3-taglistentry-item span {
    margin: 0 2px;
    vertical-align: middle;
}
.yui3-taglistentry-text { padding-right: 5px }
.yui3-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    overflow: hidden;
    text-indent: -1000px;
    cursor: pointer;
}
.yui3-icon-close { background: url(minus-circle.png) no-repeat 50% 50%; }
.yui3-icon-edit { background: url(edit.png) no-repeat 50% 50%; }


.yui3-bookie-tagcontrol {

    ul {
        background: #FFF;
        border: 1px solid $lightgrey;
        margin: 0;
        min-height: 21px;
        padding: .2em;
        width: 25em;
        float: left;
        cursor: text;
    }

    li {
        cursor: pointer;
        background-color: $button_back;
        border-radius: 3px;
        box-shadow: 1px 1px 0 0 lighten($button_shadow, 20%);
        display: inline-block;
        list-style: none;
        margin: 1px 2px;
        -moz-border-radius: 3px;
        padding: 2px 3px;
        -webkit-border-radius: 3px;

        &.yui3-bookie-tagcontrol-item-input {
            background: #FFF;
            box-shadow: none;
            border: none;
            cursor: auto;
            width: auto;
        }

        input {
            &:focus {
                outline: none;
            }
            border: none;
            width: 100%;
        }

        .yui3-aclist-item {
            display: block;
            margin: 1px 2px;
            padding: 2px 3px;
            border-radius: 0;
            -moz-border-radius: 0px;
            -webkit-border-radius: 0px;
            box-shadow: none;
            margin: 1px 2px;
            padding: 2px 3px;
        }
    }

    input[type="submit"] {
        width: 5em;
        min-height: 28px;
        margin-left: .3em;
    }
}


form ul .yui3-bookie-tagcontrol {
    display: inline-block;

    ul {
        width: 34em;
        display: inline-block;
        border: 1px solid #000;
        float: none;
    }
}


.yui3-bookie-indicator {
    background-color: rgb(255,255,255);
    /* for css3 browsers we can limit opacity via alpha channel */
    background-color: rgba(255,255,255,0.6);
    position: absolute;
    z-index: 999;
}

.yui3-bookie-indicator-content {
    text-align: center;
}

.yui3-bookie-indicator img {
    margin-top: 8em;
}

.yui3-bookie-indicator-hidden {
    visibility: hidden;
}

@import "stats";
