/* Main Container */
.ideafinder-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
}

/* Admin vs Frontend specific tweaks */
.ideafinder-frontend-mode {
    margin: 40px auto;
}

.ideafinder-title {
    text-align: center;
    margin-bottom: 20px;
}

/* Search Box */
.ideafinder-search-box {
    margin: 30px 0;
    text-align: center;
}

#ideafinder-keyword {
    width: 80%;
    max-width: 600px;
    padding: 15px 25px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 30px;
    outline: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: inline-block;
    /* Ensure centering works */
}

#ideafinder-keyword:focus {
    border-color: #2271b1;
    box-shadow: 0 6px 12px rgba(34, 113, 177, 0.2);
}

/* Grid Layout */
#ideafinder-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Cards */
.ideafinder-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e5e5;
    transition: transform 0.2s;
}

.ideafinder-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.ideafinder-card h2 {
    font-size: 1.25em;
    border-bottom: 2px solid #f0f0f1;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1d2327;
    font-weight: 600;
}

/* Links */
.link-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #f6f7f7;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3338;
    font-weight: 500;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.link-list a:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    transform: translateX(2px);
}

.link-list a .platform-name {
    margin-right: 5px;
}

.link-list a .external-icon {
    font-size: 0.85em;
    opacity: 0.7;
}

/* Footer */
.ideafinder-footer {
    margin-top: 40px;
    text-align: center;
    color: #646970;
    font-size: 0.95em;
    font-style: italic;
}

/* Responsive Tweaks */
@media (max-width: 600px) {
    #ideafinder-dashboard {
        grid-template-columns: 1fr;
    }

    #ideafinder-keyword {
        width: 100%;
        font-size: 16px;
    }
}