/* Index Page Specific Styles */
/* Common form and output styles are in forms.css */

h3 {
    font-size: 1.2rem;
}

/* Preset select dropdown (index page only) */

#ytdl-form #preset-commands {
    flex: 1;
    max-width: 600px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 18px;
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    cursor: pointer;
}

#ytdl-form #preset-commands:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1), 0 2px 8px rgba(0,0,0,0.1);
}

#ytdl-form #preset-commands:hover {
    border-color: #c0c0c0;
}

#ytdl-form select {
    padding: 7px;
    font-size: 18px;
    max-width: 100%;
}

/* Index page specific: code blocks in description */

#description code {
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #000000;
    border: 1px solid #e0e0e0;
}

/* Feature area */
#feature {
    margin: 30px auto 60px auto;
    max-width: 95%;
    padding: 24px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#feature h3 {
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

#feature ul {
    line-height: 1.8;
}

#feature ul li {
    margin-bottom: 8px;
}

/* Latest release download area */
.latest-release {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 24px;
    margin-top: 35px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.latest-release h3 {
    margin-top: 0;
}

.latest-release p {
    margin-top: -10px;
}

/* Download links */
.download-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
    margin-left: -10px;
}

.download-links .btn {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    margin: 10px;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 220px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.download-links .btn:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.download-links .btn i {
    margin-right: 3px;
}

/* Donation grid container */
.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    color: black;
    text-align: center;
    width: 100%;
}

.btc, .eth, .usdt {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px 110px 16px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    position: relative;
}

.btc img, .eth img, .usdt img {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}


.btc:hover, .eth:hover, .usdt:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.address {
    max-width: 100%;
    width: 100%;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', monospace;
    word-break: break-all;
    overflow-wrap: break-word;
    word-wrap: break-word;
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
    margin: 8px 0;
    box-sizing: border-box;
}

/* Donation button */
.donate-button {
    display: inline-block;
    background: linear-gradient(135deg, #0070ba, #00a0e6);
    color: white;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 112, 186, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.donate-button:before {
    content: '💝';
    margin-right: 8px;
    font-size: 20px;
}

.donate-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 112, 186, 0.4);
    background: linear-gradient(135deg, #005aa0, #0090d6);
}

.donate-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(0, 112, 186, 0.3);
}

.donate-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.donate-button:hover::after {
    width: 300px;
    height: 300px;
}

.button-text {
    position: relative;
    z-index: 1;
}

/* Feature form responsive styles */
#feature form textarea {
    width: 100%;
    max-width: 600px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 100px;
}

#feature form textarea:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#feature form input[type="text"] {
    width: 100%;
    max-width: 160px;
    padding: 10px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

#feature form input[type="text"]:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

#feature form button {
    padding: 9px 15px;
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

#feature form button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

#feature form button:active {
    transform: translateY(0);
}

/* ============================================
   Responsive Styles - Index Page Specific
   ============================================ */

/* Small screen: preset select adjustments */
@media (max-width: 500px) {
    #ytdl-form #preset-commands {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
        font-size: 14px;
    }
}

/* Very small screen: preset select adjustments */
@media (max-width: 380px) {
    #ytdl-form #preset-commands {
        font-size: 13px;
        padding: 8px;
    }
}

/* Medium small screen: preset select wrap handling */
@media (max-width: 595px) and (min-width: 501px) {
    #ytdl-form .preset-row {
        flex-wrap: wrap;
    }

    #ytdl-form #preset-commands {
        width: 100%;
        flex: 1 1 100%;
        max-width: none;
    }
}

/* Mobile: preset select and feature area adjustments */
@media (max-width: 768px) {
    #ytdl-form #preset-commands {
        font-size: 16px;
    }

    #ytdl-form select {
        font-size: 16px;
        width: 100%;
    }

    #feature {
        margin-left: 15px;
        margin-right: 15px;
    }
}

/* Tablet: reduce gap for better spacing */
@media (max-width: 992px) {
    .grid-container {
        gap: 15px;
    }
}

/* Mobile: donation grid adjustments */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .btc, .eth, .usdt {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .address {
        width: 100%;
        max-width: 100%;
        font-size: 12px;
        padding: 6px 10px;
        box-sizing: border-box;
    }
}

/* Small screen: download and feature form adjustments */
@media (max-width: 576px) {
    .download-links .btn {
        width: 100%;
        justify-content: center;
    }

    #feature form textarea,
    #feature form button {
        max-width: 100%;
        width: 100%;
    }

    #feature form .form-group {
        text-align: left;
        display: block;
    }

    #captcha-image {
        margin-left: 0;
        margin-right: auto;
    }

    .captcha-input-row {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        text-align: left;
    }

    .captcha-input-row input[type="text"] {
        max-width: 100%;
        width: 100%;
        flex: none;
        margin-left: 0;
        margin-right: auto;
    }

    #refresh-captcha {
        width: auto;
        align-self: flex-start;
        margin-top: 8px;
        margin-left: 0;
    }

    #submit-suggestion {
        margin-left: 0;
        margin-right: auto;
    }
}

/* ============================================
   Captcha Styles
   ============================================ */

#captcha-image {
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    padding: 4px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 100px;
    height: auto;
}

.captcha-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.captcha-input-row input[type="text"] {
    flex: 1;
    max-width: 180px;
    padding: 8px 12px;
    font-size: 14px;
    width: auto;
}

#refresh-captcha {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    white-space: nowrap;
    flex-shrink: 0;
}

#refresh-captcha:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(76, 175, 80, 0.4);
}

#refresh-captcha:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(76, 175, 80, 0.3);
}

#submit-suggestion {
    padding: 8px 16px;
    font-size: 13px;
}
