/*
 * File:        mycv-buttons.css
 * Location:    /mycolecovision/css/
 * Site:        MyColecovision.com
 * Revision:    1.0
 * Date:        2026-05-04
 * Notes:       Initial creation. The "mycv-button" system - a red,
 *              3D-styled button used throughout the site for nav,
 *              section headers, and call-to-action elements. Modeled
 *              on odyssey2.info's "o2button" system.
 */

.mycv-button {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(to bottom, #ff5522 0%, #cc3300 50%, #aa2200 100%);
    border: 1px solid #661400;
    border-top-color: #ff7755;
    border-bottom-color: #441000;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.6);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.25),
        inset 0 -1px 0 rgba(0,0,0,0.4),
        0 1px 2px rgba(0,0,0,0.5);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease;
    line-height: 1.2;
    vertical-align: middle;
}

.mycv-button:hover,
.mycv-button:focus {
    background: linear-gradient(to bottom, #ff7744 0%, #ee4400 50%, #cc2200 100%);
    color: #fff;
    text-decoration: none;
}

.mycv-button:active {
    background: linear-gradient(to bottom, #aa2200 0%, #cc3300 50%, #ff5522 100%);
    box-shadow:
        inset 0 1px 3px rgba(0,0,0,0.5),
        0 1px 0 rgba(255,255,255,0.1);
}

/* Anchor children inherit color */
.mycv-button > a,
.mycv-button > a:visited {
    color: #fff;
    text-decoration: none;
    display: inline-block;
}
.mycv-button > a:hover {
    color: #fff;
    text-decoration: none;
}

/* Variants */
.mycv-button.red { /* default is red, but allow explicit */
    /* same as base */
}

.mycv-button.nohover {
    cursor: default;
}
.mycv-button.nohover:hover {
    background: linear-gradient(to bottom, #ff5522 0%, #cc3300 50%, #aa2200 100%);
}

.mycv-button.tiny {
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.mycv-button.large {
    padding: 10px 22px;
    font-size: 16px;
}

/* Caret indicator (for dropdowns) */
.mycv-button .caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-top: 5px solid #fff;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Sidebar section headers use this with .red and .nohover */
.mycv-button-bars-container .mycv-button {
    flex: 0 0 auto;
    font-size: 12px;
    padding: 5px 12px;
    letter-spacing: 1.5px;
}
