/*
 * JBC Raid Bot-1 UI Styles
 * These styles define the modern interface used by the canbaskin_giris_formu shortcode.
 */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@700;900&family=Plus+Jakarta+Sans:wght@400;500;700&display=swap');

/* Variables */
:root {
    --color-primary: #30DEC3;
    --color-secondary: #F5B923;
    --color-background: #000000;
    --color-dark-accent: #1B2322;
    --color-text: #FFFFFF;
    --color-border: #1B2322;
    /* NEW OPACITY VALUE: 15% Opacity (0.15) -> 85% Transparency */
    --opacity-main-bg: 0.15; 
    --opacity-low: 0.3;
}

/* ---------------------------------------------------- */
/* BACKGROUND AND MAIN CONTAINER STYLES (UPDATED) */
/* ---------------------------------------------------- */

/* Set background to pure black and add hazy colors */
body {
    background-color: var(--color-background);
    /* Radial-Gradients create hazy light and shadow effects. */
    background-image: 
        /* Top left hazy yellow */
        radial-gradient(circle at 10% 10%, rgba(245, 185, 35, 0.15) 0%, transparent 40%), 
        /* Middle dark green */
        radial-gradient(circle at 80% 90%, rgba(48, 222, 195, 0.1) 0%, transparent 35%),
        /* Darker shadow in the center */
        radial-gradient(circle at 50% 50%, rgba(27, 35, 34, 0.5) 0%, transparent 60%);
    color: var(--color-text);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Main form container (wraps the entire form) */
.canbaskin-form-container {
    max-width: 900px;
    margin: 50px auto;
    padding: 30px;
    /* MAIN TRANSPARENCY SETTING: 85% Transparent (0.15 Opacity) */
    background-color: rgba(0, 0, 0, var(--opacity-main-bg)); 
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(rgba(0, 0, 0, 0.8)); 
    box-sizing: border-box;
    border: 1px solid rgba(48, 222, 195, 0.1); 
}

/* ---------------------------------------------------- */
/* NEW TOP HEADER STYLE */
/* ---------------------------------------------------- */

.main-form-header {
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 900;
    font-size: 32px;
    text-align: center;
    margin-bottom: 30px;
    padding: 0;
    line-height: 1.2;
    
    /* LINEAR GRADIENT EFFECT */
    background: linear-gradient(90deg, #F5B923 0%, #30DEC3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(48, 222, 195, 0.3), 0 0 10px rgba(245, 185, 35, 0.3);
}

/* ---------------------------------------------------- */
/* FORM ELEMENTS AND COLUMNS (OPACITY ADJUSTED) */
/* ---------------------------------------------------- */

/* My Account Page Columns */
.canbaskin-col {
    flex: 1;
    padding: 20px;
    /* Columns should conform to the general form transparency, less opaque */
    background-color: rgba(0, 0, 0, var(--opacity-main-bg)); 
    border-radius: 8px;
    box-shadow: none;
}

/* Input Fields */
.text-input, .text-input select {
    box-sizing: border-box;
    width: 100%;
    height: 50px;
    padding: 10px 15px;
    /* Inputs should be slightly more opaque ( less transparent) for readability */
    background: rgba(0, 0, 0, var(--opacity-low)); 
    border: 1px solid var(--color-border);
    border-radius: 6px;
    color: var(--color-text);
    font-size: 16px;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.canbaskin-editable[readonly], .canbaskin-editable:disabled {
    /* Read-only fields have the same opacity as inputs */
    background-color: rgba(0, 0, 0, var(--opacity-low));
    border-color: rgba(255, 255, 255, 0.1);
}

/* Secondary Action Buttons (REGISTER/RESET) - Background should reflect the form */
.action-button {
    /* RESET/REGISTER button */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 40px;
    height: 40px;
    background: rgba(0, 0, 0, var(--opacity-low)); 
    border: 1px solid var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
    text-transform: uppercase;
    transition: background 0.3s, color 0.3s;
}
.action-button:hover {
    background: var(--color-primary);
    color: #000000;
}


/* Other fixed styles */

/* Headings */
.canbaskin-form-container h3, .canbaskin-form-container h2 {
    color: var(--color-primary);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-weight: 700;
    margin-top: 0;
}
.canbaskin-form-container h3 {
    font-size: 28px;
    padding-bottom: 10px;
    margin-bottom: 25px;
    text-align: center;
}
.canbaskin-form-container h4 {
    color: var(--color-text);
    font-weight: 700;
    font-size: 16px;
    margin-top: 30px;
    margin-bottom: 15px;
}

/* Divider Line */
.divider {
    width: 100%;
    height: 0px;
    border-top: 1px solid var(--color-border);
    margin: 10px 0;
}

/* Login Section Header */
.login-section .section-title {
    text-align: center;
    margin-bottom: 25px;
}
.login-section .section-title h2 {
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    padding: 0;
}

/* Input Groups and Labels */
.input-group {
    display: flex;
    flex-direction: column;
    width: 80%;
    margin: 0 auto 20px auto;
}
.input-group label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--color-text);
    margin-bottom: 5px;
}

.text-input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Main Button Style (LOGIN/Update) */
.login-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 30px;
    height: 40px;
    background: var(--color-primary);
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    color: #000000;
    text-transform: uppercase;
    border: none;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 5px 10px rgba(48, 222, 195, 0.5);
    margin-top: 10px;
}
.login-button:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 7px 15px rgba(245, 185, 35, 0.7);
}

/* Flex structure for Secondary Action Buttons */
.auth-actions {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin: 30px 0;
}
.action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
.action-group p {
    font-weight: 700;
    font-size: 14px;
    color: var(--color-text);
    margin: 0;
}

/* SMALL BUTTONS */
.action-button.small-button {
    font-size: 14px;
    padding: 8px 18px;
    height: auto;
    width: auto;
}


/* Success/Error Messages */
.canbaskin-form-container div.canbaskin-success {
    padding: 12px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    background-color: #30DEC3; 
    border: 1px solid #000000;
    color: #000000;
}
.canbaskin-form-container div.canbaskin-error {
    padding: 12px 20px;
    margin-bottom: 25px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    background-color: #F5B923; 
    border: 1px solid #000000;
    color: #000000;
}

/* My Account Page Raid List */
.canbaskin-grid-container {
    display: flex;
    gap: 30px;
}

.canbaskin-col-divider {
    border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.canbaskin-baskin-list ul {
    list-style: none;
    padding: 0;
}
.canbaskin-baskin-list li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    font-size: 14px;
    justify-content: center;
}

#joined-raids-list .canbaskin-baskin-list li {
    justify-content: flex-start;
}

.canbaskin-baskin-list .icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}
.canbaskin-baskin-list .check {
    color: var(--color-primary);
}
.canbaskin-baskin-list a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    word-break: break-word;
    flex-grow: 1;
}
.canbaskin-baskin-list a:hover {
    text-decoration: underline;
    color: var(--color-primary);
}
.canbaskin-baskin-list li > div {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}


/* Language Switcher */
.language-switcher {
    text-align: center;
    margin-top: 30px;
}
.language-switcher h4 {
    margin-bottom: 10px;
    font-size: 14px;
}
.language-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    color: var(--color-text);
}
.language-list a {
    color: var(--color-primary);
    text-decoration: none;
    margin: 0 5px;
    white-space: nowrap;
}
.language-list a:hover {
    text-decoration: underline;
}


/* Responsive Adjustments */
@media (max-width: 768px) {
    .canbaskin-grid-container {
        flex-direction: column;
        gap: 20px;
    }
    .canbaskin-col-divider {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
    }
    .input-group {
        width: 100%;
    }
    .auth-actions {
        flex-direction: column;
        gap: 20px;
    }
    .action-group {
        width: 100%;
    }
}