/* Custom Caves Page Styles */
/* This file contains styles specific to the custom caves page */

/* Copy of button styles from styles.css */
.custom-caves-page .corner-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 10px;
    max-width: 300px; /* Increase or decrease this value */
}

.custom-caves-page .corner-btn {
    background: rgba(79, 195, 247, 0.2);
    border: 2px solid #4fc3f7;
    border-radius: 6px;
    padding: 12px 20px;
    color: #4fc3f7;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.custom-caves-page .corner-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(79, 195, 247, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.5s, height 0.5s;
}

.custom-caves-page .corner-btn:hover::before {
    width: 400px;
    height: 400px;
    max-width: 400px; /* Increase or decrease this value */
    max-height: 400px; /* Increase or decrease this value */
}

.custom-caves-page .corner-btn:hover {
    background: rgba(79, 195, 247, 0.3);
    box-shadow: 
        0 0 25px rgba(79, 195, 247, 0.7),
        0 0 50px rgba(79, 195, 247, 0.5),
        inset 0 0 25px rgba(79, 195, 247, 0.2);
    transform: translateY(-3px);
    border-color: #81c784;
    max-width: 400px; /* Increase or decrease this value */
    max-height: 400px; /* Increase or decrease this value */
}

.custom-caves-page .corner-btn:active {
    transform: scale(0.96) translateY(0);
}

.custom-caves-page .corner-btn > * {
    position: relative;
    z-index: 1;
}

/* Responsive Design for Custom Caves Page */
@media (max-width: 768px) {
    .custom-caves-page .container {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 0 10px;
    }
    
    .custom-caves-page .left-column .section,
    .custom-caves-page .right-column .section {
        max-width: 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .custom-caves-page .section {
        padding: 15px;
    }
    
    .custom-caves-page .corner-buttons {
        grid-template-columns: 1fr;
        max-width: 100%;
        gap: 12px;
        margin-top: 12px;
    }
    
    .custom-caves-page .corner-btn {
        min-width: 0;
        width: 100%;
        padding: 14px 18px;
        font-size: 15px;
        min-height: 48px;
        touch-action: manipulation;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .custom-caves-page .command-text {
        font-size: 0.85em;
        min-height: 300px !important;
        max-height: 400px !important;
        line-height: 1.5;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    
    .custom-caves-content {
        max-width: 100%;
        max-height: none;
    }
    
    .custom-caves-page .form-group {
        margin-bottom: 16px;
    }
    
    .custom-caves-page .text-input,
    .custom-caves-page .number-input,
    .custom-caves-page .select-input {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 14px;
        min-height: 48px;
        touch-action: manipulation;
    }
}

@media (max-width: 480px) {
    .custom-caves-page .section {
        padding: 12px;
    }
    
    .custom-caves-page .corner-btn {
        padding: 12px 16px;
        font-size: 14px;
        min-height: 44px;
    }
    
    .custom-caves-page .command-text {
        font-size: 0.8em;
        min-height: 250px !important;
        max-height: 350px !important;
        padding: 10px;
    }
    
    .custom-caves-page .text-input,
    .custom-caves-page .number-input,
    .custom-caves-page .select-input {
        padding: 12px;
        font-size: 16px;
        min-height: 44px;
    }
}

/* Section box size - controls the size of the section container */
/* NOTE: This is CSS height, NOT related to the "height" input field */
.custom-caves-page .section {
    background: rgba(26, 47, 74, 0.8);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 10px;
    padding: 15px; /* Space inside the section */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
    width: 100%;
    /* Edit these to change section size: */
    max-width: 2000px; /* Maximum width of the section */
    min-width: 200px;
    /* min-height: 200px; */ /* Uncomment to set minimum height */
    /* max-height: 500px; */ /* Uncomment to set maximum height */
}

/* Main content area for custom caves */
.custom-caves-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 400px; /* Increase or decrease this value */
    /* max-height: 400px; */ /* Removed to prevent content from being cut off */
}

/* Generated Command Section - specific height control */
/* Target the section that contains the command-output div */
.custom-caves-page .right-column .section {
    /* Edit these to change ONLY the Generated Command section height: */
    /* min-height: 800px; */ /* Uncomment and set minimum height */
    /* max-height: 800px; */ /* Uncomment and set maximum height */
    width: 100%;
}

/* Command text box - the box where the command is displayed */
.custom-caves-page .command-text {
    /* Edit these to change the height of the command text box: */
    min-height: 700px; /* Minimum height of the command text area */
    max-height: 700px; /* Maximum height of the command text area */
    overflow-y: auto; /* Add scrollbar if content exceeds max-height */
}

/* Command output container */
.custom-caves-page .command-output {
    /* Edit these if you want to control the entire command output container: */
    /* min-height: 250px; */
    /* max-height: 650px; */
    display: block;
}

/* Add any custom caves specific styles here */

