@charset "utf-8";

/* Golf Theme Common Button Components */

/* Base Button Styles */
.btn-common {
    display: inline-block;
    padding: 0 30px;
    height: 45px;
    line-height: 45px;
    font-weight: bold;
    font-size: 1.083em;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    vertical-align: middle;
    box-sizing: border-box;
}

/* Primary Button (Submit style) - .more_btn과 정확히 동일한 스타일 적용 */
.btn-primary,
#start-round-btn,
#round-btn,
#quick-input-btn,
.more_btn {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    padding: 10px;
    color: #fff;
    opacity: 0.9;
    background: #188b52;
    border-radius: 60px;
    font-size: 15px;
    font-weight: 400;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary:hover,
#start-round-btn:hover,
#round-btn:hover,
#quick-input-btn:hover,
.more_btn:hover {
    background: #156b42;
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Secondary Button (Cancel style) */
.btn-secondary {
    background: #fff;
    color: #333;
    border: 1px solid #dcdcdc;
}

.btn-secondary:hover {
    background: #f8f8f8;
    border-color: #bbb;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-secondary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Add Button (for adding items) */
.btn-add {
    background: #f8f9fa;
    color: var(--theme, #188b52);
    border: 1px solid var(--theme, #188b52);
    font-size: 0.95em;
    padding: 8px 16px;
    height: auto;
    line-height: 1.4;
    border-radius: 5px;
}

.btn-add:hover {
    background: var(--theme, #188b52);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(24, 139, 82, 0.2);
}

.btn-add:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(24, 139, 82, 0.2);
}

/* Remove Button */
.btn-remove {
    background: #dc3545;
    color: #fff;
    border: 1px solid #dc3545;
    font-size: 0.9em;
    padding: 6px 12px;
    height: auto;
    line-height: 1.4;
    border-radius: 3px;
}

.btn-remove:hover {
    background: #c82333;
    border-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}

.btn-remove:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(220, 53, 69, 0.2);
}

/* Size Variations */
.btn-sm {
    padding: 0 20px;
    height: 35px;
    line-height: 35px;
    font-size: 0.95em;
}

.btn-lg {
    padding: 0 40px;
    height: 55px;
    line-height: 55px;
    font-size: 1.2em;
}

/* Width Variations */
.btn-full {
    width: 100%;
}

.btn-half {
    width: 49%;
}

/* Button Group */
.btn-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.btn-group .btn-common {
    flex: 1;
}

/* Disabled State */
.btn-common:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.btn-common:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Focus States for Accessibility */
.btn-common:focus {
    outline: 2px solid var(--theme, #188b52);
    outline-offset: 2px;
}

/* Icon Support */
.btn-common i {
    margin-right: 8px;
    font-size: 0.9em;
}

.btn-common i.icon-only {
    margin-right: 0;
}

/* Responsive Design */
@media (max-width: 480px) {
    .btn-common {
        padding: 0 20px;
        height: 42px;
        line-height: 42px;
        font-size: 1em;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-half {
        width: 100%;
    }
}

/* Loading State */
.btn-common.loading {
    position: relative;
    color: transparent;
}

.btn-common.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin 0.8s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}