/* =========================================
   RESET / GENERAL
========================================= */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    padding: 25px;

    background:
        radial-gradient(
            circle at top,
            #263449,
            #080b10 70%
        );

    color: white;

    font-family: "Racing Sans One", sans-serif;
    font-weight: 600;
    font-style: italic;
        

}


/* =========================================
   MAIN LAYOUT
========================================= */

.creator-container {

    width: 100%;

    max-width: 1800px;

    margin: auto;

    display: grid;

    grid-template-columns:
        360px
        minmax(700px, 1fr);

    gap: 25px;

    align-items: start;

}


/* =========================================
   EDITOR PANEL
========================================= */

.editor-panel {

    background:
        rgba(10, 15, 23, 0.97);

    border:
        1px solid
        rgba(255,255,255,0.15);

    /*border-radius: 8px;*/

    padding: 25px;
    padding-bottom: 40px;

    box-shadow:
        0 15px 40px
        rgba(0,0,0,0.4);
        
    margin-top: 20px;

}


.editor-header {

    padding-bottom: 20px;

    margin-bottom: 20px;

    border-bottom:
        1px solid
        rgba(255,255,255,0.15);

}


.editor-header h1 {

    margin: 0 0 8px 0;

    font-size: 22px;

    letter-spacing: 2px;

}


.editor-header p {

    margin: 0;

    color: #8995a7;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================
   EDITOR SECTIONS
========================================= */

.editor-section {

    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

}


.editor-section h2 {

    margin: 0;

    font-size: 14px;

    letter-spacing: 2px;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 15px;

}


.section-heading span {

    color: #7f8b9c;

    font-size: 11px;

}


/* =========================================
   FORM CONTROLS
========================================= */

.form-group {

    margin-bottom: 15px;

}


.form-group label {

    display: block;

    margin-bottom: 7px;

    color: #aeb8c7;

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.form-group input,
.form-group select {

    width: 100%;

    padding: 11px;

    background:
        #151c27;

    color: white;

    border:
        1px solid
        #3b4656;

    border-radius: 4px;

    font-size: 13px;

}


.form-group input:focus,
.form-group select:focus {

    outline: none;

    border-color:
        #72839b;

}


/* =========================================
   ATTACK / ABILITY EDITOR CARDS
========================================= */

.editor-entry {

    margin-bottom: 15px;

    padding: 15px;

    background:
        #111822;

    border:
        1px solid
        rgba(255,255,255,0.12);

    border-radius: 5px;

}


.entry-editor-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 12px;

}


.entry-editor-title {

    font-size: 12px;

    font-weight: bold;

    letter-spacing: 1px;

}


.remove-button {

    border: none;

    background: none;

    color: #aeb8c7;

    cursor: pointer;

    font-size: 11px;

}


.remove-button:hover {

    color: #ff6b6b;

}


.entry-form-group {

    margin-bottom: 10px;

}


.entry-form-group label {

    display: block;

    margin-bottom: 5px;

    color: #7f8b9c;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: 1px;

}


.entry-form-group input,
.entry-form-group textarea {

    width: 100%;

    padding: 9px;

    background:
        #0c1118;

    color: white;

    border:
        1px solid
        #303b4a;

    border-radius: 3px;

    font-size: 12px;
    
    font-family:
        Arial,
        Helvetica,
        sans-serif;

}


.entry-form-group textarea {

    min-height: 70px;

    resize: vertical;

}


.entry-form-group input:focus,
.entry-form-group textarea:focus {

    outline: none;

    border-color:
        #72839b;

}


/* =========================================
   BUTTONS
========================================= */

.add-button {

    width: 100%;

    padding: 11px;

    border:
        1px solid
        #3b4656;

    border-radius: 4px;

    background:
        #151c27;

    color: white;

    font-weight: bold;

    font-size: 11px;

    letter-spacing: 1px;

    cursor: pointer;

}


.add-button:hover {

    background:
        #202b3a;

}


.add-button:disabled {

    opacity: 0.35;

    cursor: not-allowed;

}


.reset-button {

    width: 100%;

    padding: 12px;

    border: none;

    border-radius: 4px;

    background:
        #9e2929;

    color: white;

    font-weight: bold;

    font-size: 11px;

    letter-spacing: 1px;

    cursor: pointer;
    
    margin-bottom: 15px;

}


.reset-button:hover {

    background:
        #c53535;

}


/* =========================================
   PREVIEW PANEL
========================================= */

.preview-panel {

    position: sticky;

    top: 25px;

}


.preview-label {

    margin-bottom: 10px;

    color: #7f8b9c;

    font-size: 11px;

    font-weight: bold;

    letter-spacing: 2px;

}


/* =========================================
   PROFILE / TEMPLATE CANVAS
========================================= */

.profile {

    position: relative;

    width: 100%;

    min-height: 700px;

    display: block;

    background-image:
        url("images/profile_template_1.png");

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    border:
        1px solid
        rgba(255,255,255,0.2);

    box-shadow:
        0 20px 60px
        rgba(0,0,0,0.6);

    overflow: hidden;

}


/* =========================================
   CHARACTER SECTION
========================================= */

.character-section {

    position: absolute;

    left: 5%;

    top: 5%;

    width: 30%;

    height: 90%;

    min-height: 0;

    background: transparent;

    border: none;

}


.character-image-container {

    position: absolute;

    left: 0;

    top: 0;

    width: 100%;

    height: 80%;

    bottom: auto;

    display: flex;

    justify-content: center;

    align-items: center;

    overflow: hidden;

    background: transparent;

}


.character-image-container img {

    max-width: 100%;

    max-height: 100%;

    object-fit: contain;

    display: none;
    
    /*transform: translateX(-20px) scale(1.4);
    
    transform: scale(1.4);*/
    
    -webkit-mask-image: linear-gradient(
        to bottom,
        black 75%,
        transparent 90%
    );
    
    margin-right: 100px;
    
    margin-top: 70px;


}


.image-placeholder {

    color:
        rgba(255,255,255,0.2);

    font-size: 35px;

    font-weight: bold;

    letter-spacing: 5px;

    background: transparent;

}


/* =========================================
   CHARACTER INFORMATION
========================================= */

.character-info {

    position: absolute;

    left: 0;

    bottom: 0;

    width: 100%;

    background: transparent;

}


.character-name {

    font-size: 40px;

    font-weight: 1400;

    text-transform: uppercase;

    letter-spacing: -2px;

    text-shadow:
        3px 3px 0 #000,
        -1px -1px 0 #000;

    margin-bottom: 15px;

    background: transparent;

}


.difficulty-label {

    display: block;

    margin-bottom: 5px;

    color: #aeb8c7;

    font-size: 11px;

    letter-spacing: 2px;

    background: transparent;

}


#difficultyStars {

    font-size: 20px;

    letter-spacing: 4px;

    background: transparent;
    
    color: #ffd400;

}


/* =========================================
   ATTACK / ABILITY COLUMNS
========================================= */

.ability-column {

    position: absolute;

    top: 5%;

    height: 84%;

    padding: 0;

    /*background: transparent;*/
    background-color: rgba(0, 0, 0, 0.0); 

    border: none;

    box-shadow: none;

}


/* Attacks */

.attacks-column {

    left: 36%;

    width: 29%;

}


/* Abilities */

.abilities-column {

    left: 67%;

    width: 29%;

}


/* =========================================
   COLUMN TITLES
========================================= */

.column-title {

    padding-bottom: 14px;

    margin-bottom: 10px;

    border-bottom:
        2px solid
        rgba(255,255,255,0.25);

    font-size: 22px;

    font-weight: bold;

    letter-spacing: 1px;

    background: transparent;
    
    font-family: "Racing Sans One", sans-serif;
    font-weight: 600;
    font-style: italic;
    margin-top: 0px;

}


/* =========================================
   PREVIEW ENTRIES
========================================= */

.preview-entry {

    display: flex;

    gap: 12px;

    padding: 10px 0;

    border-bottom:
        5px solid
        rgba(255,255,255,0.0);

    background: transparent;

}


.preview-key {

    flex-shrink: 0;

    width: 52px;

    height: 52px;

    display: flex;

    justify-content: center;

    align-items: center;

    background: transparent;

    border:
        1px solid
        rgba(255,255,255,0.25);

    font-size: 10px;

    font-weight: bold;
    
    color: #ffd45c;


}


.preview-content {

    min-width: 0;

    background: transparent;

}


.preview-name {

    margin-bottom: 5px;

    font-size: 13px;

    font-weight: bold;

    text-transform: uppercase;

    background: transparent;

}


.preview-description {

    color: #aeb8c7;

    font-size: 11px;

    line-height: 1.45;

    background: transparent;

}


.empty-preview {

    padding: 20px 0;

    color:
        rgba(255,255,255,0.25);

    font-size: 11px;

    line-height: 1.5;

    background: transparent;

}


/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 1100px) {

    .creator-container {

        grid-template-columns:
            320px
            minmax(600px, 1fr);

    }

}



@media (max-width: 850px) {

    body {

        padding: 10px;

    }


    .creator-container {

        display: block;

    }


    .editor-panel {

        margin-bottom: 20px;

    }


    .preview-panel {

        position: static;

    }


    .profile {

        min-width: 850px;

    }


    .preview-panel {

        overflow-x: auto;

    }

}

.image-controls {
    margin-top: 15px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px;
}

.image-control-group label {
    display: block;
    margin-bottom: 6px;
    color: #7f8b9c;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-control-row {
    display: grid;
    grid-template-columns: 36px 1fr 36px;
    height: 34px;
}

.image-control-button {
    border: 1px solid #3b4656;
    background: #151c27;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
}

.image-control-button:hover {
    background: #202b3a;
}

.image-control-row span {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #0c1118;
    border-top: 1px solid #3b4656;
    border-bottom: 1px solid #3b4656;
    color: #aeb8c7;
    font-size: 11px;
}

/* =========================================
   DESCRIPTION HIGHLIGHT COLORS
========================================= */

.description-red {
    color: #ff5c5c;
}

.description-blue {
    color: #5ca9ff;
}

.description-green {
    color: #5cff8a;
}

.description-yellow {
    color: #ffd45c;
}

/* =========================================
   FORMATTING INFO BUTTON
========================================= */

.info-button {
    display: inline-block;
    margin-left: 8px;
    padding: 0;
    border: none;
    background: none;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
}

.info-button:hover {
    color: #ffd400;
}

.export-button {
    width: 100%;
    margin-top: 10px;
    padding: 12px;

    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 4px;

    background: rgba(255,255,255,0.08);
    color: #ffd45c;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.export-button:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,212,92,0.6);
}

.export-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* =========================================
   CANVAS STYLE SELECTOR
========================================= */

.canvas-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.canvas-option {
    position: relative;

    padding: 3px;

    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 5px;

    background: rgba(0,0,0,0.25);

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color 0.15s ease,
        transform 0.15s ease;
}

.canvas-option img {
    display: block;

    width: 100%;
    height: 75px;

    object-fit: cover;
}


/* =========================================
   CANVAS COLORS
========================================= */

.canvas-option[data-template="1"] {
    background: #1769aa;
}

.canvas-option[data-template="2"] {
    background: #a83232;
}

.canvas-option[data-template="3"] {
    background: #7136a8;
}

.canvas-option[data-template="4"] {
    background: #c6a52b;
}


.canvas-option:hover {
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-2px);
}

.canvas-option.selected {
    border-color: #ffd45c;

    box-shadow:
        0 0 0 1px rgba(255,212,92,0.35);
}

.canvas-option span {
    position: absolute;

    bottom: 5px;
    right: 5px;

    min-width: 20px;
    height: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0,0,0,0.75);
    color: #ffffff;

    font-size: 11px;
    font-weight: bold;
}

.fan-disclaimer {
    position: absolute;
    left: 42px;
    max-width: 320px;
    font-size: 8px;
    line-height: 1.3;
    text-align: right;
    color: rgba(255, 255, 255, 0.55);
    pointer-events: none;
    margin-top: 10px;
}

.rivalscreator-watermark {
    position: absolute;
    right: 12px;
    bottom: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    pointer-events: none;
}


