/**
 * Golf Handicap & Slope - Frontend Styles
 * 
 * This file contains all styles that were previously inline in template files.
 * Refactored to comply with WordPress coding standards.
 *
 * @package golf-handicap-slope
 * @since 2.1.2
 */

/* ==========================================================================
   Calculator Styles
   ========================================================================== */

/* Main calculator wrapper */
.ghs-calculator-wrapper {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin: 0 auto;
    max-width: 650px;
}

/* Calculator form */
.ghs-calculator-form {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-bottom: 0;
}

/* Field containers */
.ghs-calculator-field {
    line-height: 0;
}

.ghs-calculator-field.ghs-field-handicap {
    flex: 0 0 120px;
}

.ghs-calculator-field.ghs-field-tee {
    flex: 1;
}

/* Labels */
.ghs-calculator-label {
    display: block;
    font-weight: bold;
    margin: 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.2;
}

/* Input wrappers */
.ghs-calculator-input-wrapper {
    height: 38px;
    margin-top: 0;
}

/* Input and select styles */
.ghs-calculator-input,
.ghs-calculator-select {
    width: 100%;
    height: 38px;
    box-sizing: border-box;
    padding: 0 8px;
    margin-top: -1px;
    color: #000 !important;
    background-color: #fff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #000 !important;
    border: 1px solid #ccc;
}

.ghs-calculator-select {
    -webkit-appearance: menulist !important;
    appearance: menulist !important;
}

/* Option styles */
.ghs-calculator-option {
    color: #000 !important;
    background-color: #fff !important;
    opacity: 1 !important;
    -webkit-text-fill-color: #000 !important;
}

/* Button wrapper */
.ghs-calculator-button-wrapper {
    flex: 0 0 auto;
    display: flex;
    margin-bottom: 20px;
    margin-top: 12px;
}

/* Button styles */
.ghs-calculator-button {
    height: 42px;
    padding: 8px 20px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

/* Result container */
.ghs-calculator-result {
    display: none;
    margin-top: 15px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left-width: 4px;
    border-left-style: solid;
}

/* Result text */
.ghs-calculator-result-text {
    font-size: 16px;
}

/* Mobile responsive styles for calculator */
@media (max-width: 768px) {
    .ghs-calculator-form {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    .ghs-calculator-field {
        flex: none !important;
        width: 100% !important;
    }
    
    .ghs-calculator-button-wrapper {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        align-self: stretch !important;
    }
    
    .ghs-calculator-button {
        width: 100% !important;
    }
}

/* ==========================================================================
   Table Styles
   ========================================================================== */

/* Table wrapper states */
.ghs-table-wrapper-hidden {
    display: none;
}

/* Responsive styles */
@media (max-width: 768px) {
    /* Add responsive styles here */
}

/* ==========================================================================
   Admin Styles
   ========================================================================== */

/* Hidden admin elements */
.ghs-admin-hidden {
    display: none;
}

/* Editor placeholder */
.ghs-editor-placeholder {
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
}

/* Admin edit form */
.ghs-admin-edit-form {
    display: none;
}

/* Admin dialog hidden */
.ghs-admin-dialog-hidden {
    display: none;
}
